Function at 0x51a1d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x704200]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], esi
cmp edi, 0xffffffff
jne 0x51a204
mov edi, dword [ecx + 0x40]
mov dword [esp + 0x10], edi
push edi
call fcn.00519620
test al, al
je 0x51a367
lea edx, [edi + edi*8]
shl edx, 3
mov dword [esp + 0x14], edx
add edx, dword [ecx + 0x3c]
mov eax, dword [edx]
mov edi, dword [edx + 4]
cmp eax, 5
jne 0x51a37c
mov ecx, esi
call fcn.00541aa0
mov ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], ecx
cmp eax, 4
jne 0x51a28f
push esi
push 0xffffffffffffffff
push 0x14d
push edi
call dword [0x5fd6c8]
test eax, eax
jns 0x51a4a2
push esi
push 0
push 0x143
push edi
call dword [0x5fd6c8]
push esi
push 0xffffffffffffffff
push 0x14d
push edi
call dword [0x5fd6c8]
shr eax, 0x1f
xor al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0041e465
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 2
jne 0x51a2bf
test ecx, ecx
jne 0x51a268
push ecx
push 0xffffffffffffffff
push 0x14e
push edi
call dword [0x5fd6c8]
test eax, eax
setne al
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0041e465
mov esp, ebp
pop ebp
ret 0xc
test al, 1
mov eax, dword [0x5fd6c8]
jne 0x51a2dd
push 0
push 0
push 0x14b
push edi
call eax
mov eax, dword [0x5fd6c8]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x51a481
push 1
xorps xmm0, xmm0
lea ecx, [esp + 0x24]
push 0x621ae8
push esi
movaps xmmword [esp + 0x2c], xmm0
movq qword [esp + 0x3c], xmm0
call fcn.00542100
xor edx, edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x74], edx
call fcn.00542070
test eax, eax
je 0x51a460
nop dword [eax + eax]
push edx
lea ecx, [esp + 0x24]
call fcn.00542080
push eax
push 0
push 0x143
push edi
call dword [0x5fd6c8]
cmp eax, 0xffffffff
je 0x51a35e
cmp eax, 0xfffffffe
je 0x51a35e
mov edx, dword [esp + 0x74]
lea ecx, [esp + 0x20]
inc edx
mov dword [esp + 0x74], edx
call fcn.00542070
cmp edx, eax
jb 0x51a320
jmp 0x51a460
lea ecx, [esp + 0x20]
call fcn.005420e0
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0041e465
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 6
jne 0x51a4b7
mov ecx, esi
call fcn.00541aa0
mov ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], ecx
cmp eax, 2
je 0x51a294
test al, 1
mov eax, dword [0x5fd6c8]
jne 0x51a3bc
push 0
push 0
push 0x14b
push edi
call eax
mov eax, dword [0x5fd6c8]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x51a481
xorps xmm0, xmm0
mov dword [esp + 0x64], 0
push 1
push 0x621ae8
push esi
lea ecx, [esp + 0x2c]
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x60], xmm0
movlpd qword [esp + 0x68], xmm0
mov dword [esp + 0x50], 1
mov dword [esp + 0x54], 0xffffffff
movaps xmmword [esp + 0x2c], xmm0
movq qword [esp + 0x3c], xmm0
call fcn.00542100
xor edx, edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x74], edx
call fcn.00542070
test eax, eax
je 0x51a460
push edx
lea ecx, [esp + 0x24]
call fcn.00542080
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x44]
push eax
push 0
push 0x40b
push edi
call dword [0x5fd6c8]
lea ecx, [esp + 0x20]
cmp eax, 0xffffffff
je 0x51a362
mov edx, dword [esp + 0x74]
inc edx
mov dword [esp + 0x74], edx
call fcn.00542070
cmp edx, eax
jb 0x51a420
cmp dword [ebp + 0x10], 0
jne 0x51a476
push 0
push 0
push 0x14e
push edi
call dword [0x5fd6c8]
lea ecx, [esp + 0x20]
call fcn.005420e0
jmp 0x51a48d
push 0
push 0xffffffffffffffff
push 0x14e
push edi
call eax
test byte [ebp + 0x10], 2
je 0x51a4a2
push esi
push 0xffffffffffffffff
push 0x14d
push edi
call dword [0x5fd6c8]
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0041e465
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 0x10
je 0x51a806
cmp eax, 0x11
je 0x51a806
cmp eax, 0x17
jne 0x51a62b
cmp dword [ebp + 0x10], 0
movzx eax, word [edx + 0x44]
movzx edx, word [edx + 0x46]
mov dword [esp + 0x74], eax
mov dword [esp + 0x18], edx
jne 0x51a567
test eax, eax
jne 0x51a541
lea esi, [ecx + 0x120]
push esi
push dword [esp + 0x14]
call fcn.00519c20
mov eax, dword [esp + 0xc]
mov ecx, eax
push 0xffffffffffffffff
push 0x10000001
push 0x14
push 0x28
push dword [eax + 0x124]
push dword [esi]
push 0
call fcn.0051dd30
mov dword [esp + 0x74], eax
test eax, eax
je 0x51a367
mov esi, dword [esp + 0xc]
lea edx, [eax + eax*8]
mov ecx, dword [esi + 0x3c]
mov esi, dword [esp + 0x1c]
mov dword [ecx + edx*8], 0x18
mov ecx, dword [esp + 0xc]
push 0
push esi
push eax
call fcn.0051a1d0
mov esi, dword [esp + 0xc]
mov byte [esp + 0xb], al
mov eax, dword [esp + 0x74]
mov ecx, dword [esi + 0x3c]
lea edx, [eax + eax*8]
push dword [ecx + edx*8 + 4]
push 1
jmp 0x51a5ea
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x51a5c9
lea esi, [ecx + 0x120]
push esi
push dword [esp + 0x14]
call fcn.00519c20
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push 0x10000001
push 0x14
mov eax, dword [ecx + 0x128]
add eax, dword [esi]
push 0x28
push dword [ecx + 0x124]
push eax
push 0
call fcn.0051dd30
mov dword [esp + 0x18], eax
test eax, eax
je 0x51a367
mov esi, dword [esp + 0xc]
lea edx, [eax + eax*8]
mov ecx, dword [esi + 0x3c]
mov esi, dword [esp + 0x1c]
mov dword [ecx + edx*8], 0x18
mov ecx, dword [esp + 0xc]
push 0
push esi
push eax
call fcn.0051a1d0
mov esi, dword [esp + 0xc]
mov byte [esp + 0xb], al
mov eax, dword [esp + 0x18]
lea ecx, [eax + eax*8]
mov eax, dword [esi + 0x3c]
push dword [eax + ecx*8 + 4]
push 0
push 0x420
push edi
call dword [0x5fd6c8]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
movzx ecx, ax
mov eax, dword [esp + 0x74]
movzx eax, ax
shl ecx, 0x10
or ecx, eax
mov eax, dword [esi + 0x3c]
mov dword [edx + eax + 0x44], ecx
mov al, byte [esp + 0xb]
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0041e465
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 0x18
jne 0x51a6d4
push edi
call dword [0x5fd6dc]
mov edx, eax
mov dword [esp + 0x1c], edx
test edx, edx
je 0x51a688
lea eax, [esp + 0x74]
mov ecx, esi
push eax
call fcn.00541aa0
push eax
push esi
push edx
call dword [0x5fd210]
test eax, eax
je 0x51a67d
mov eax, dword [esp + 0x78]
push 0x1a
add eax, 2
push eax
mov eax, dword [esp + 0x7c]
add eax, 0xa
push eax
push 0
push 0
push 0
push edi
call dword [0x5fd6d4]
push dword [esp + 0x1c]
push edi
call dword [0x5fd6e8]
mov ecx, dword [esp + 0xc]
push esi
push 0
push 0xc
push dword [esp + 0x1c]
call fcn.0051c470
test eax, eax
setne cl
mov byte [esp + 0xb], cl
test eax, eax
je 0x51a6bf
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x3c]
mov ecx, dword [edx + ecx + 4]
call fcn.00539ef0
mov cl, byte [esp + 0xb]
mov al, cl
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0041e465
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
cmp edx, 1
jne 0x51a722
cmp eax, 9
jne 0x51a722
push edi
call dword [0x5fd7e0]
mov ecx, dword [0x5fd6c8]
test eax, eax
je 0x51a702
push eax
push eax
push 0xb1
push edi
call ecx
mov ecx, dword [0x5fd6c8]
push esi
push 0
push 0xc2
push edi
call ecx
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0041e465
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 0xe
jne 0x51a768
push 0
push edx
push 0x182
push edi
call dword [0x5fd6c8]
cmp eax, 0xffffffff
je 0x51a367
push esi
push dword [ebp + 0x10]
push 0x181
push edi
call dword [0x5fd6c8]
cmp eax, 0xffffffff
setne al
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0041e465
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 0x1c
jne 0x51a7d6
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x20
push eax
push dword [esp + 0x14]
mov dword [esp + 0x2c], 2
push 0x440
push edi
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], 0
call dword [0x5fd6c8]
test eax, eax
setne al
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0041e465
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 8
jne 0x51a68c
push esi
push 0
push 0x1032
push edi
call dword [0x5fd6c8]
test eax, eax
setne al
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0041e465
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0x30
push eax
push 0
push dword [esp + 0x18]
mov dword [esp + 0x54], 0x40
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
push dword [edx + 8]
call dword [0x5fd81c]
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
xor ecx, esp
call fcn.0041e465
mov esp, ebp
pop ebp
ret 0xc