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

Disassembly:
push 0xffffffffffffffff
push 0x597c92
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x130], eax
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x144]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x98], eax
mov ecx, dword [esp + 0x154]
mov dword [esp + 0x11c], 0
mov dword [esp + 0x120], 0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x120], 0xf
mov dword [esp + 0x11c], 0
mov byte [esp + 0x10c], 0
mov dword [esp + 0x14c], 0
mov dword [esp + 0x134], 0
mov dword [esp + 0x138], 0
mov dword [esp + 0x138], 0xf
mov dword [esp + 0x134], 0
mov byte [esp + 0x124], 0
mov byte [esp + 0x14c], 1
mov dword [esp + 0x104], 0
mov dword [esp + 0x108], 0
mov dword [esp + 0x108], 0xf
mov dword [esp + 0x104], 0
mov byte [esp + 0xf4], 0
mov byte [esp + 0x14c], 2
mov eax, dword [eax + 0x30]
mov esi, dword [eax]
mov dword [esp + 0x30], esi
cmp esi, eax
je 0x51c83f
mov eax, dword [esp + 0x98]
lea esp, [esp]
cmp dword [esi + 0x18], 0
lea ecx, [esi + 8]
mov dword [esp + 0x9c], ecx
je 0x51c830
lea eax, [ecx + 0x18]
mov dword [esp + 0xa8], eax
lea eax, [ecx + 0x24]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov dword [esp + 0xa0], eax
mov eax, 0x2aaaaaab
imul ecx
mov eax, dword [esp + 0xa8]
sar edx, 2
mov edi, edx
shr edi, 0x1f
mov ecx, dword [eax + 4]
add edi, edx
sub ecx, dword [eax]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
jne 0x51c829
cmp dword [esp + 0x120], 0x10
lea eax, [esp + 0x10c]
mov dword [esp + 0x11c], 0
cmovae eax, dword [esp + 0x10c]
mov byte [eax], 0
mov eax, dword [esp + 0x9c]
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
jb 0x51bd2a
mov eax, dword [eax]
lea ecx, [esp + 0x10c]
push ecx
mov ecx, eax
call fcn.004b1140
xorps xmm0, xmm0
add esp, 4
movdqu xmmword [esp + 0xdc], xmm0
movq qword [esp + 0xec], xmm0
psrldq xmm0, 8
movd eax, xmm0
mov dword [esp + 0xe4], eax
and eax, 0xffffff00
mov dword [esp + 0xe4], eax
and eax, 0xfffffeff
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0
mov dword [esp + 0xf0], 0
mov byte [esp + 0x14c], 8
xor ecx, ecx
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x94], ecx
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x51c334
mov esi, dword [esp + 0xa8]
xor edi, edi
mov dword [esp + 0x9c], edi
mov edi, edi
cmp dword [esp + 0x138], 0x10
lea eax, [esp + 0x124]
mov dword [esp + 0x134], 0
cmovae eax, dword [esp + 0x124]
mov byte [eax], 0
lea eax, [esp + 0xf4]
cmp dword [esp + 0x108], 0x10
mov dword [esp + 0x104], 0
cmovae eax, dword [esp + 0xf4]
mov byte [eax], 0
mov ecx, dword [esi]
add ecx, edi
cmp dword [ecx + 0x14], 8
mov edx, dword [ecx + 0x10]
jb 0x51be39
mov ecx, dword [ecx]
lea eax, [esp + 0x124]
push eax
call fcn.004b1140
mov eax, dword [esp + 0xa4]
add esp, 4
mov ecx, dword [eax]
add ecx, edi
cmp dword [ecx + 0x14], 8
mov edx, dword [ecx + 0x10]
jb 0x51be5f
mov ecx, dword [ecx]
lea eax, [esp + 0xf4]
push eax
call fcn.004b1140
add esp, 4
cmp dword [esp + 0x134], 0
je 0x51c2fc
xorps xmm0, xmm0
movdqu xmmword [esp + 0xac], xmm0
movq qword [esp + 0xbc], xmm0
psrldq xmm0, 8
movd eax, xmm0
mov dword [esp + 0xb4], eax
and eax, 0xffffff00
mov dword [esp + 0xb4], eax
and eax, 0xfffffeff
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov byte [esp + 0x14c], 0xe
lea ecx, [esp + 0xf4]
mov byte [esp + 0x54], 4
mov eax, dword [esp + 0x54]
or eax, 0x100
mov dword [esp + 0x54], eax
cmp dword [esp + 0x108], 0x10
mov edx, dword [esp + 0x104]
cmovae ecx, dword [esp + 0xf4]
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
call fcn.004f53a0
mov dword [esp + 0x4c], eax
mov byte [esp + 0x14c], 0xf
lea eax, [esp + 0x124]
cmp dword [esp + 0x138], 0x10
lea edi, [esp + 0x124]
lea ecx, [esp + 0xac]
cmovae eax, dword [esp + 0x124]
cmovae edi, dword [esp + 0x124]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x134]
add eax, dword [esp + 0xa4]
push eax
push edi
call fcn.004f74a0
mov edi, eax
mov byte [esp + 0x14c], 0x10
movsx edx, byte [edi + 8]
mov cl, byte [esp + 0x54]
mov eax, dword [esp + 0x54]
mov byte [edi + 8], cl
mov ecx, eax
xor ecx, edx
and ecx, 0xff
xor eax, ecx
mov dword [esp + 0x54], eax
mov edx, dword [edi]
mov ecx, dword [edi + 4]
mov eax, dword [esp + 0x4c]
mov dword [edi], eax
mov eax, dword [esp + 0x50]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xa8], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], 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 + 0x54]
shl edx, 8
xor edx, eax
and edx, 0x100
xor eax, edx
mov dword [esp + 0x54], eax
mov ecx, dword [edi + 0xc]
mov dword [esp + 0xa4], ecx
mov dword [edi + 0xc], 0
mov eax, dword [edi + 0x10]
mov dword [edi + 0x10], 0
mov dword [esp + 0x5c], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x58], ecx
mov dword [edi + 0x14], 0
mov dword [esp + 0x60], eax
mov byte [esp + 0x14c], 0xe
movsx eax, byte [esp + 0x54]
cmp eax, 4
je 0x51c08f
add eax, 0xfffffffa
cmp eax, 1
ja 0x51c0af
mov edi, dword [esp + 0xa8]
mov dword [esp + 0xa8], edi
test edi, edi
je 0x51c0af
mov byte [esp + 0x14c], 0x12
mov ecx, edi
mov eax, dword [edi]
push eax
push dword [eax]
lea eax, [esp + 0x18]
push eax
call fcn.004f8e60
mov byte [esp + 0x14c], 0xe
push dword [edi]
call fcn.00564de3
add esp, 4
push edi
call fcn.00564de3
jmp 0x51c0a5
test dword [esp + 0x54], 0x100
je 0x51c0af
push dword [esp + 0xa8]
call fcn.00564df7
mov ecx, dword [esp + 0xa8]
add esp, 4
test ecx, ecx
je 0x51c0cf
push 0x4f5a90
push dword [ecx - 4]
lea edi, [ecx - 4]
push 4
push ecx
call fcn.00564e2f
push edi
call fcn.0056503c
add esp, 4
lea eax, [esp + 0xac]
xorps xmm0, xmm0
push eax
lea ecx, [esp + 0x38]
movlpd qword [esp + 0x50], xmm0
call fcn.004f6040
mov byte [esp + 0x14c], 0x15
lea ecx, [esp + 0xdc]
call fcn.004f6f10
push eax
lea ecx, [esp + 0xe0]
call fcn.004f6fc0
mov edi, eax
mov byte [esp + 0x14c], 0x16
movsx edx, byte [edi + 8]
mov cl, byte [esp + 0x3c]
mov byte [edi + 8], cl
mov eax, dword [esp + 0x3c]
xor edx, eax
and edx, 0xff
xor eax, edx
mov dword [esp + 0x3c], eax
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x34]
mov dword [edi], eax
mov eax, dword [esp + 0x38]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], ecx
mov ecx, dword [edi + 8]
xor eax, ecx
mov edx, ecx
and eax, 0x100
xor eax, ecx
shr edx, 8
mov dword [edi + 8], eax
and edx, 1
mov eax, dword [esp + 0x3c]
shl edx, 8
xor edx, eax
and edx, 0x100
xor eax, edx
mov dword [esp + 0x3c], eax
mov ecx, dword [edi + 0xc]
mov eax, dword [esp + 0x40]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x40], ecx
mov ecx, dword [edi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x44], ecx
mov ecx, dword [edi + 0x14]
mov dword [edi + 0x14], eax
mov dword [esp + 0x48], ecx
mov byte [esp + 0x14c], 0xe
movsx eax, byte [esp + 0x3c]
cmp eax, 4
je 0x51c201
add eax, 0xfffffffa
cmp eax, 1
ja 0x51c217
mov edi, dword [esp + 0x34]
mov dword [esp + 0xa4], edi
test edi, edi
je 0x51c217
mov byte [esp + 0x14c], 0x18
mov ecx, edi
mov eax, dword [edi]
push eax
push dword [eax]
lea eax, [esp + 0x2c]
push eax
call fcn.004f8e60
mov byte [esp + 0x14c], 0xe
push dword [edi]
call fcn.00564de3
add esp, 4
push edi
call fcn.00564de3
jmp 0x51c214
test dword [esp + 0x3c], 0x100
je 0x51c217
push dword [esp + 0x34]
call fcn.00564df7
add esp, 4
mov eax, dword [esp + 0x40]
test eax, eax
je 0x51c23b
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 + 0x34], xmm0
mov byte [esp + 0x14c], 8
movsx eax, byte [esp + 0xb4]
cmp eax, 4
je 0x51c2a6
add eax, 0xfffffffa
cmp eax, 1
ja 0x51c2c2
mov edi, dword [esp + 0xac]
mov dword [esp + 0xa4], edi
test edi, edi
je 0x51c2c2
mov byte [esp + 0x14c], 0x1c
mov ecx, edi
mov eax, dword [edi]
push eax
push dword [eax]
lea eax, [esp + 0x28]
push eax
call fcn.004f8e60
mov byte [esp + 0x14c], 8
push dword [edi]
call fcn.00564de3
add esp, 4
push edi
call fcn.00564de3
jmp 0x51c2bf
test dword [esp + 0xb4], 0x100
je 0x51c2c2
push dword [esp + 0xac]
call fcn.00564df7
add esp, 4
mov eax, dword [esp + 0xb8]
test eax, eax
je 0x51c2e9
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
mov edi, dword [esp + 0x9c]
xorps xmm0, xmm0
movlpd qword [esp + 0xac], xmm0
mov ecx, dword [esi + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [esi]
add edi, 0x18
inc dword [esp + 0x94]
imul ecx
mov dword [esp + 0x9c], edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x94], eax
jb 0x51bde0
mov esi, dword [esp + 0x30]
xorps xmm0, xmm0
movdqu xmmword [esp + 0xc4], xmm0
movq qword [esp + 0xd4], xmm0
psrldq xmm0, 8
movd eax, xmm0
mov dword [esp + 0xcc], eax
and eax, 0xffffff00
mov dword [esp + 0xcc], eax
and eax, 0xfffffeff
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov byte [esp + 0x14c], 0x24
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0x68]
call fcn.004f6040
mov byte [esp + 0x14c], 0x25
lea edi, [esp + 0x10c]
cmp dword [esp + 0x120], 0x10
lea edx, [esp + 0x10c]
mov eax, dword [esp + 0x11c]
lea ecx, [esp + 0xc4]
cmovae edi, dword [esp + 0x10c]
cmovae edx, dword [esp + 0x10c]
add eax, edi
push eax
push edx
call fcn.004f74a0
mov edi, eax
mov byte [esp + 0x14c], 0x26
movsx edx, byte [edi + 8]
mov cl, byte [esp + 0x6c]
mov byte [edi + 8], cl
mov eax, dword [esp + 0x6c]
xor edx, eax
and edx, 0xff
xor eax, edx
mov dword [esp + 0x6c], eax
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x64]
mov dword [edi], eax
mov eax, dword [esp + 0x68]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x68], edx
mov dword [esp + 0x64], ecx
mov ecx, dword [edi + 8]
xor eax, ecx
mov edx, ecx
and eax, 0x100
xor eax, ecx
shr edx, 8
mov dword [edi + 8], eax
and edx, 1
mov eax, dword [esp + 0x6c]
shl edx, 8
xor edx, eax
and edx, 0x100
xor eax, edx
mov dword [esp + 0x6c], eax
mov ecx, dword [edi + 0xc]
mov eax, dword [esp + 0x70]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x70], ecx
mov ecx, dword [edi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x74], ecx
mov ecx, dword [edi + 0x14]
mov dword [edi + 0x14], eax
mov dword [esp + 0x78], ecx
mov byte [esp + 0x14c], 0x24
movsx eax, byte [esp + 0x6c]
cmp eax, 4
je 0x51c4e7
add eax, 0xfffffffa
cmp eax, 1
ja 0x51c4fd
mov edi, dword [esp + 0x64]
mov dword [esp + 0xa0], edi
test edi, edi
je 0x51c4fd
mov byte [esp + 0x14c], 0x28
mov ecx, edi
mov eax, dword [edi]
push eax
push dword [eax]
lea eax, [esp + 0x20]
push eax
call fcn.004f8e60
mov byte [esp + 0x14c], 0x24
push dword [edi]
call fcn.00564de3
add esp, 4
push edi
call fcn.00564de3
jmp 0x51c4fa
test dword [esp + 0x6c], 0x100
je 0x51c4fd
push dword [esp + 0x64]
call fcn.00564df7
add esp, 4
mov eax, dword [esp + 0x70]
test eax, eax
je 0x51c521
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
lea eax, [esp + 0xc4]
xorps xmm0, xmm0
push eax
lea ecx, [esp + 0x80]
movlpd qword [esp + 0x68], xmm0
call fcn.004f6040
mov byte [esp + 0x14c], 0x2b
mov ecx, dword [esp + 0x2c]
call fcn.004f6f10
mov ecx, dword [esp + 0x2c]
push eax
call fcn.004f6fc0
mov edi, eax
mov byte [esp + 0x14c], 0x2c
movsx edx, byte [edi + 8]
mov cl, byte [esp + 0x84]
mov byte [edi + 8], cl
mov ecx, dword [esp + 0x84]
mov eax, ecx
xor eax, edx
and eax, 0xff
xor ecx, eax
mov dword [esp + 0x84], ecx
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x7c]
mov dword [edi], eax
mov eax, dword [esp + 0x80]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x80], edx
mov dword [esp + 0x7c], ecx
mov ecx, dword [edi + 8]
xor eax, ecx
mov edx, ecx
and eax, 0x100
xor eax, ecx
shr edx, 8
mov dword [edi + 8], eax
and edx, 1
mov eax, dword [esp + 0x84]
shl edx, 8
xor edx, eax
and edx, 0x100
xor eax, edx
mov dword [esp + 0x84], eax
mov ecx, dword [edi + 0xc]
mov eax, dword [esp + 0x88]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x88], ecx
mov ecx, dword [edi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x8c], ecx
mov ecx, dword [edi + 0x14]
mov dword [edi + 0x14], eax
mov dword [esp + 0x90], ecx
mov byte [esp + 0x14c], 0x24
movsx eax, byte [esp + 0x84]
cmp eax, 4
je 0x51c67e
add eax, 0xfffffffa
cmp eax, 1
ja 0x51c697
mov edi, dword [esp + 0x7c]
mov dword [esp + 0xa0], edi
test edi, edi
je 0x51c697
mov byte [esp + 0x14c], 0x2e
mov ecx, edi
mov eax, dword [edi]
push eax
push dword [eax]
lea eax, [esp + 0x30]
push eax
call fcn.004f8e60
mov byte [esp + 0x14c], 0x24
push dword [edi]
call fcn.00564de3
add esp, 4
push edi
call fcn.00564de3
jmp 0x51c694
test dword [esp + 0x84], 0x100
je 0x51c697
push dword [esp + 0x7c]
call fcn.00564df7
add esp, 4
mov eax, dword [esp + 0x88]
test eax, eax
je 0x51c6be
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 + 0x7c], xmm0
mov byte [esp + 0x14c], 8
movsx eax, byte [esp + 0xcc]
cmp eax, 4
je 0x51c729
add eax, 0xfffffffa
cmp eax, 1
ja 0x51c745
mov edi, dword [esp + 0xc4]
mov dword [esp + 0xa0], edi
test edi, edi
je 0x51c745
mov byte [esp + 0x14c], 0x32
mov ecx, edi
mov eax, dword [edi]
push eax
push dword [eax]
lea eax, [esp + 0x1c]
push eax
call fcn.004f8e60
mov byte [esp + 0x14c], 8
push dword [edi]
call fcn.00564de3
add esp, 4
push edi
call fcn.00564de3
jmp 0x51c742
test dword [esp + 0xcc], 0x100
je 0x51c745
push dword [esp + 0xc4]
call fcn.00564df7
add esp, 4
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x51c76c
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 + 0xc4], xmm0
mov byte [esp + 0x14c], 2
movsx eax, byte [esp + 0xe4]
cmp eax, 4
je 0x51c7da
add eax, 0xfffffffa
cmp eax, 1
ja 0x51c7f6
mov edi, dword [esp + 0xdc]
mov dword [esp + 0xa0], edi
test edi, edi
je 0x51c7f6
mov byte [esp + 0x14c], 0x36
mov ecx, edi
mov eax, dword [edi]
push eax
push dword [eax]
lea eax, [esp + 0x24]
push eax
call fcn.004f8e60
mov byte [esp + 0x14c], 2
push dword [edi]
call fcn.00564de3
add esp, 4
push edi
call fcn.00564de3
jmp 0x51c7f3
test dword [esp + 0xe4], 0x100
je 0x51c7f6
push dword [esp + 0xdc]
call fcn.00564df7
add esp, 4
mov eax, dword [esp + 0xe8]
test eax, eax
je 0x51c81d
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 + 0xdc], xmm0
mov eax, dword [esp + 0x98]
mov esi, dword [esi]
mov dword [esp + 0x30], esi
cmp esi, dword [eax + 0x30]
jne 0x51bc90
mov byte [esp + 0x14c], 1
cmp dword [esp + 0x108], 0x10
jb 0x51c860
push dword [esp + 0xf4]
call fcn.00564de3
add esp, 4
mov dword [esp + 0x108], 0xf
mov dword [esp + 0x104], 0
mov byte [esp + 0xf4], 0
mov byte [esp + 0x14c], 0
cmp dword [esp + 0x138], 0x10
jb 0x51c89f
push dword [esp + 0x124]
call fcn.00564de3
add esp, 4
mov dword [esp + 0x138], 0xf
mov dword [esp + 0x134], 0
mov byte [esp + 0x124], 0
mov dword [esp + 0x14c], 0xffffffff
cmp dword [esp + 0x120], 0x10
jb 0x51c8e1
push dword [esp + 0x10c]
call fcn.00564de3
add esp, 4
mov dword [esp + 0x120], 0xf
mov dword [esp + 0x11c], 0
mov byte [esp + 0x10c], 0
mov ecx, dword [esp + 0x144]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00564de8
add esp, 0x144
ret 4