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

Disassembly:
push 0xffffffffffffffff
push 0x597a9c
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov ebp, ecx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], 0
mov byte [esp + 0x74], 0
mov byte [esp + 0x9c], 1
mov eax, dword [ebp + 0x20]
mov esi, dword [eax]
cmp esi, eax
je 0x51b7f4
jmp 0x51b4e0
cmp dword [esp + 0x70], 0x10
lea eax, [esp + 0x5c]
mov dword [esp + 0x6c], 0
lea ecx, [esi + 0x10]
cmovae eax, dword [esp + 0x5c]
mov byte [eax], 0
lea eax, [esp + 0x74]
cmp dword [esp + 0x88], 0x10
mov dword [esp + 0x84], 0
cmovae eax, dword [esp + 0x74]
mov byte [eax], 0
cmp dword [ecx + 0x14], 8
jb 0x51b523
mov ecx, dword [ecx]
mov edx, dword [esi + 0x20]
lea eax, [esp + 0x5c]
push eax
call fcn.004b1140
lea ecx, [esi + 0x28]
add esp, 4
cmp dword [ecx + 0x14], 8
jb 0x51b53e
mov ecx, dword [ecx]
mov edx, dword [esi + 0x38]
lea eax, [esp + 0x74]
push eax
call fcn.004b1140
mov eax, dword [esp + 0x70]
lea edi, [esp + 0x60]
add esp, 4
lea edx, [esp + 0x5c]
cmp dword [esp + 0x70], 0x10
mov ecx, ebx
cmovae edi, dword [esp + 0x5c]
cmovae edx, dword [esp + 0x5c]
add eax, edi
push eax
push edx
call fcn.004f74a0
mov edi, eax
lea ecx, [esp + 0x74]
mov eax, dword [esp + 0x3c]
and eax, 0xffffff04
or eax, 4
mov dword [esp + 0x3c], eax
or eax, 0x100
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x88], 0x10
mov edx, dword [esp + 0x84]
cmovae ecx, dword [esp + 0x74]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
call fcn.004f53a0
mov ebx, eax
mov dword [esp + 0x34], ebx
mov byte [esp + 0x9c], 2
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
call fcn.004f6040
mov byte [esp + 0x9c], 3
mov ecx, edi
call fcn.004f6f10
push eax
mov ecx, edi
call fcn.004f6fc0
mov edi, eax
mov byte [esp + 0x9c], 4
movsx edx, byte [edi + 8]
mov cl, byte [esp + 0x1c]
mov byte [edi + 8], cl
mov ecx, dword [esp + 0x1c]
mov eax, ecx
xor eax, edx
and eax, 0xff
xor ecx, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi]
mov eax, dword [esp + 0x14]
mov edx, dword [edi + 4]
mov dword [edi], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
mov ecx, dword [edi + 8]
xor eax, ecx
mov edx, ecx
and eax, 0x100
shr edx, 8
xor eax, ecx
and edx, 1
mov dword [edi + 8], eax
mov eax, dword [esp + 0x1c]
shl edx, 8
xor edx, eax
and edx, 0x100
xor eax, edx
mov dword [esp + 0x1c], eax
mov ecx, dword [edi + 0xc]
mov eax, dword [esp + 0x20]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
mov ecx, dword [edi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + 0x14]
mov dword [edi + 0x14], eax
mov dword [esp + 0x28], ecx
mov byte [esp + 0x9c], 2
movsx eax, byte [esp + 0x1c]
cmp eax, 4
je 0x51b6f0
add eax, 0xfffffffa
cmp eax, 1
ja 0x51b706
mov edi, dword [esp + 0x14]
mov dword [esp + 0x54], edi
test edi, edi
je 0x51b706
mov byte [esp + 0x9c], 6
mov ecx, edi
mov eax, dword [edi]
push eax
push dword [eax]
lea eax, [esp + 0x60]
push eax
call fcn.004f8e60
mov byte [esp + 0x9c], 2
push dword [edi]
call fcn.00564de3
add esp, 4
push edi
call fcn.00564de3
jmp 0x51b703
test dword [esp + 0x1c], 0x100
je 0x51b706
push dword [esp + 0x14]
call fcn.00564df7
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x51b72a
push 0x4f5a90
push dword [eax - 4]
lea edi, [eax - 4]
push 4
push eax
call fcn.00564e2f
push edi
call fcn.0056503c
add esp, 4
xorps xmm0, xmm0
movlpd qword [esp + 0x14], xmm0
mov byte [esp + 0x9c], 1
movsx eax, byte [esp + 0x3c]
cmp eax, 4
je 0x51b788
add eax, 0xfffffffa
cmp eax, 1
ja 0x51b79b
mov dword [esp + 0x54], ebx
test ebx, ebx
je 0x51b79b
mov byte [esp + 0x9c], 0xa
mov ecx, ebx
mov eax, dword [ebx]
push eax
push dword [eax]
lea eax, [esp + 0x58]
push eax
call fcn.004f8e60
mov byte [esp + 0x9c], 1
push dword [ebx]
call fcn.00564de3
add esp, 4
push ebx
call fcn.00564de3
jmp 0x51b798
test dword [esp + 0x2c], 0x100
je 0x51b79b
push ebx
call fcn.00564df7
add esp, 4
cmp byte [esi + 0xd], 0
xorps xmm0, xmm0
movlpd qword [esp + 0x34], xmm0
jne 0x51b7e7
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x51b7cc
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x51b7e7
lea ecx, [ecx]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x51b7c0
jmp 0x51b7e7
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x51b7e5
cmp esi, dword [eax + 8]
jne 0x51b7e5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x51b7d5
mov esi, eax
mov ebx, dword [esp + 0x30]
cmp esi, dword [ebp + 0x20]
jne 0x51b4e0
mov eax, dword [ebp + 0x28]
mov esi, dword [eax]
cmp esi, eax
je 0x51bad7
cmp dword [esp + 0x70], 0x10
lea eax, [esp + 0x5c]
mov dword [esp + 0x6c], 0
cmovae eax, dword [esp + 0x5c]
mov byte [eax], 0
lea eax, [esp + 0x74]
cmp dword [esp + 0x88], 0x10
mov dword [esp + 0x84], 0
cmovae eax, dword [esp + 0x74]
mov byte [eax], 0
cmp dword [esi + 0x1c], 8
jb 0x51b844
mov ecx, dword [esi + 8]
jmp 0x51b847
lea ecx, [esi + 8]
mov edx, dword [esi + 0x18]
lea eax, [esp + 0x5c]
push eax
call fcn.004b1140
lea ecx, [esi + 0x20]
add esp, 4
cmp dword [ecx + 0x14], 8
jb 0x51b862
mov ecx, dword [ecx]
mov edx, dword [esi + 0x30]
lea eax, [esp + 0x74]
push eax
call fcn.004b1140
mov eax, dword [esp + 0x70]
lea edi, [esp + 0x60]
add esp, 4
lea edx, [esp + 0x5c]
cmp dword [esp + 0x70], 0x10
mov ecx, ebx
cmovae edi, dword [esp + 0x5c]
cmovae edx, dword [esp + 0x5c]
add eax, edi
push eax
push edx
call fcn.004f74a0
mov edi, eax
lea ecx, [esp + 0x74]
mov eax, dword [esp + 0x3c]
and eax, 0xffffff04
or eax, 4
mov dword [esp + 0x3c], eax
or eax, 0x100
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x88], 0x10
mov edx, dword [esp + 0x84]
cmovae ecx, dword [esp + 0x74]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
call fcn.004f53a0
mov ebx, eax
mov dword [esp + 0x34], ebx
mov byte [esp + 0x9c], 0xd
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
call fcn.004f6040
mov byte [esp + 0x9c], 0xe
mov ecx, edi
call fcn.004f6f10
push eax
mov ecx, edi
call fcn.004f6fc0
mov edi, eax
mov byte [esp + 0x9c], 0xf
movsx edx, byte [edi + 8]
mov cl, byte [esp + 0x1c]
mov byte [edi + 8], cl
mov ecx, dword [esp + 0x1c]
mov eax, ecx
xor eax, edx
and eax, 0xff
xor ecx, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi]
mov eax, dword [esp + 0x14]
mov edx, dword [edi + 4]
mov dword [edi], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
mov ecx, dword [edi + 8]
xor eax, ecx
mov edx, ecx
and eax, 0x100
shr edx, 8
xor eax, ecx
and edx, 1
mov dword [edi + 8], eax
mov eax, dword [esp + 0x1c]
shl edx, 8
xor edx, eax
and edx, 0x100
xor eax, edx
mov dword [esp + 0x1c], eax
mov ecx, dword [edi + 0xc]
mov eax, dword [esp + 0x20]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
mov ecx, dword [edi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + 0x14]
mov dword [edi + 0x14], eax
mov dword [esp + 0x28], ecx
mov byte [esp + 0x9c], 0xd
movsx eax, byte [esp + 0x1c]
cmp eax, 4
je 0x51ba14
add eax, 0xfffffffa
cmp eax, 1
ja 0x51ba2a
mov edi, dword [esp + 0x14]
mov dword [esp + 0x50], edi
test edi, edi
je 0x51ba2a
mov byte [esp + 0x9c], 0x11
mov ecx, edi
mov eax, dword [edi]
push eax
push dword [eax]
lea eax, [esp + 0x60]
push eax
call fcn.004f8e60
mov byte [esp + 0x9c], 0xd
push dword [edi]
call fcn.00564de3
add esp, 4
push edi
call fcn.00564de3
jmp 0x51ba27
test dword [esp + 0x1c], 0x100
je 0x51ba2a
push dword [esp + 0x14]
call fcn.00564df7
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x51ba4e
push 0x4f5a90
push dword [eax - 4]
lea edi, [eax - 4]
push 4
push eax
call fcn.00564e2f
push edi
call fcn.0056503c
add esp, 4
xorps xmm0, xmm0
movlpd qword [esp + 0x14], xmm0
mov byte [esp + 0x9c], 1
movsx eax, byte [esp + 0x3c]
cmp eax, 4
je 0x51baac
add eax, 0xfffffffa
cmp eax, 1
ja 0x51babf
mov dword [esp + 0x50], ebx
test ebx, ebx
je 0x51babf
mov byte [esp + 0x9c], 0x15
mov ecx, ebx
mov eax, dword [ebx]
push eax
push dword [eax]
lea eax, [esp + 0x5c]
push eax
call fcn.004f8e60
mov byte [esp + 0x9c], 1
push dword [ebx]
call fcn.00564de3
add esp, 4
push ebx
call fcn.00564de3
jmp 0x51babc
test dword [esp + 0x2c], 0x100
je 0x51babf
push ebx
call fcn.00564df7
add esp, 4
mov esi, dword [esi]
xorps xmm0, xmm0
mov ebx, dword [esp + 0x30]
movlpd qword [esp + 0x34], xmm0
cmp esi, dword [ebp + 0x28]
jne 0x51b801
mov byte [esp + 0x9c], 0
cmp dword [esp + 0x88], 0x10
jb 0x51baf5
push dword [esp + 0x74]
call fcn.00564de3
add esp, 4
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], 0
mov byte [esp + 0x74], 0
mov dword [esp + 0x9c], 0xffffffff
cmp dword [esp + 0x70], 0x10
jb 0x51bb2e
push dword [esp + 0x5c]
call fcn.00564de3
add esp, 4
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00564de8
add esp, 0x8c
ret 4