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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x652018]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0
push 0
push 0
push 4
push 0x10
push dword [esi + 0x2c]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x74], esi
call fcn.0045436a
mov dword [esp + 0x18], eax
test byte [eax + 2], 1
je 0x51ffda
mov eax, dword [ebx + 0x13c]
test eax, eax
je 0x51ffcb
mov eax, dword [eax + 0x28]
test eax, eax
jne 0x51ffd5
mov eax, dword [ebx + 0x138]
test eax, eax
je 0x51ffda
or word [eax + 2], 1
mov eax, dword [esi + 0x28]
xor ecx, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x24], ecx
cmp dword [eax], 6
mov dword [esp + 0x40], eax
jne 0x520003
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x40], eax
mov ecx, dword [eax]
sub ecx, 0
je 0x5209ed
dec ecx
je 0x520141
sub ecx, 7
je 0x52004f
cmp byte [ebx + 0x88], 0
je 0x5209ed
add eax, 0xc
push eax
push 0x77d5
push dword [ebx + 0x1c]
call 0x3cd1da
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call 0x59f19b
mov esp, ebp
pop ebp
ret 4
mov esi, dword [eax + 0x20]
test esi, esi
je 0x5209ed
cmp dword [esi], 1
jne 0x5209ed
add esi, 0x1c
lea edi, [esp + 0x68]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
lea ecx, [eax + 0x1c]
mov dword [esp + 0x38], ecx
mov ecx, dword [ecx]
push 0
test ecx, ecx
je 0x5200b9
push 0x500
push ecx
mov ecx, ebx
call fcn.005220ca
mov dword [esp + 0x10], eax
mov dword [esp + 0x60], eax
test byte [eax + 2], 1
jne 0x520164
cmp word [eax], 0x5c
jne 0x5200ad
mov ecx, dword [eax + 0x28]
cmp byte [ecx], 0x1a
je 0x5200ca
push 0
push eax
mov ecx, ebx
call fcn.0046ad4a
jmp 0x5200c6
push 0
add eax, 0xc
mov ecx, ebx
push eax
call fcn.004636ca
mov dword [esp + 0x10], eax
test byte [eax + 2], 1
jne 0x520164
cmp word [eax], 0x5c
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x20], ecx
jne 0x520133
mov ecx, dword [eax + 0x28]
call 0x3db02a
test al, al
je 0x52011d
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x28]
cmp byte [eax], 0x24
jne 0x52012d
lea eax, [ecx + 4]
mov ecx, ebx
push eax
push 0x7d62
call fcn.00421dba
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call 0x59f19b
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x28]
cmp byte [ecx], 0x1a
jne 0x520133
mov dword [esp + 0x20], ecx
xor eax, eax
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x20]
mov dword [esp + 0x24], 2
jmp 0x520166
add eax, 0x1c
lea edi, [esp + 0x68]
mov esi, eax
mov dword [esp + 0x38], eax
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call 0x400b8a
mov esi, eax
mov eax, dword [esp + 0x10]
jmp 0x520166
xor esi, esi
cmp byte [esp + 0x71], 0
jne 0x5209ed
test eax, eax
je 0x52017f
test byte [eax + 2], 1
jne 0x5209ed
mov eax, dword [esp + 0x18]
test byte [eax + 2], 1
jne 0x5209ed
mov edi, dword [esp + 0x5c]
cmp dword [edi], 0x9a
jne 0x5201c6
movsx ecx, word [eax]
cmp ecx, 0x6c
je 0x5201b6
cmp ecx, 0x6d
je 0x5201b6
cmp ecx, 0x33
jne 0x5201c6
mov ecx, 0x8000
or word [eax + 2], cx
jmp 0x5201c6
add eax, 4
mov ecx, ebx
push eax
push 0xa556
call fcn.00421dba
mov ecx, esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
call 0x400a8a
test al, al
jne 0x520208
mov ecx, esi
call 0x3e9b4a
test al, al
jne 0x520208
mov al, byte [esi]
cmp al, 0x1a
je 0x520208
cmp al, 0x24
jne 0x52098b
mov dword [esp + 0x20], esi
jmp 0x520222
mov ecx, esi
call 0x3c4d7a
mov ecx, eax
call 0x3dad4a
mov dword [esp + 0x28], eax
test eax, eax
je 0x52098b
push 0
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x38]
mov byte [esp + 0x2b], 0
push eax
lea eax, [esp + 0x2f]
mov ecx, ebx
push eax
lea eax, [esp + 0x88]
push eax
push dword [esp + 0x28]
call fcn.00462a0a
push eax
mov eax, dword [esp + 0x40]
mov ecx, ebx
push 0
or eax, 0x41000
push eax
push dword [esp + 0x44]
push dword [esp + 0x50]
push dword [esp + 0x94]
call 0x3fcc9a
mov ecx, eax
call 0x400dda
mov dword [esp + 0x24], eax
mov ecx, ebx
lea eax, [esp + 0x2c]
push eax
push esi
call 0x3fef0a
cmp byte [esp + 0x1f], 0
jne 0x520816
mov eax, dword [esp + 0x24]
test eax, eax
je 0x52098b
cmp byte [eax], 0xc
jne 0x52098b
cmp dword [edi], 0x99
jne 0x5202b5
mov eax, dword [eax + 0x80]
jmp 0x5202bb
mov eax, dword [eax + 0x84]
mov ecx, eax
mov dword [esp + 0x20], eax
call 0x3fbb0a
test byte [eax + 1], 8
jne 0x5203f7
mov eax, dword [esp + 0x10]
xor cl, cl
mov byte [esp + 0x17], cl
test eax, eax
jne 0x5203e5
mov eax, dword [esp + 0x60]
test eax, eax
je 0x5203a1
cmp word [eax], 0x5c
mov byte [esp + 0x28], cl
jne 0x5203bf
mov ecx, dword [eax + 0x28]
call 0x3c4c9a
test al, al
je 0x52034c
mov ecx, dword [esp + 0x60]
lea eax, [esp + 0x28]
push eax
mov ecx, dword [ecx + 0x28]
call 0x3c4cda
push eax
mov ecx, ebx
call fcn.004735aa
test eax, eax
je 0x52034c
push dword [esp + 0x28]
mov ecx, ebx
push 0
push 0x110
push eax
mov eax, dword [esp + 0x48]
push dword [esp + 0x70]
mov eax, dword [eax]
add eax, 0xc
push eax
call fcn.0047378a
mov dword [esp + 0x10], eax
jmp 0x520350
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5203bf
push eax
mov ecx, ebx
call fcn.00462a0a
mov edx, eax
mov eax, dword [esp + 0x24]
movzx ecx, byte [eax]
test byte [ecx + ecx*2 + 0x405210], 4
je 0x520397
lea ecx, [esp + 0x17]
push ecx
push edx
push 0
push 0x1002
lea ecx, [esp + 0x84]
push ecx
push dword [esp + 0x40]
mov ecx, eax
call 0x400dda
push eax
mov ecx, ebx
call 0x3fc52a
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x5203e1
jmp 0x5203bf
mov ecx, dword [esp + 0x24]
call 0x3e0b8a
push eax
push esi
mov ecx, ebx
mov dword [esp + 0x40], eax
call 0x41e47a
test al, al
jne 0x5203bf
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
mov ecx, ebx
mov edx, dword [ebx]
add eax, 0xc
push 0
push 1
push 0
push esi
push eax
call dword [edx + 0x28]
mov dword [esp + 0x10], eax
test eax, eax
je 0x520816
mov cl, byte [esp + 0x17]
test byte [eax + 2], 1
jne 0x520816
test cl, cl
jne 0x520816
mov eax, dword [esp + 0x20]
cmp eax, dword [ebx + 0x14c]
jne 0x520469
mov ecx, eax
call 0x3fbb0a
test byte [eax + 1], 8
jne 0x520438
mov eax, dword [esp + 0x10]
test eax, eax
je 0x520438
cmp word [eax], 0x5c
jne 0x520469
mov ecx, dword [eax + 0x28]
movzx eax, byte [ecx]
test byte [eax + eax*2 + 0x405210], 0x80
je 0x520469
mov eax, dword [ecx + 0x5c]
shr eax, 8
test al, 1
je 0x520469
cmp dword [edi], 0x99
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0xc]
jne 0x52044e
mov eax, dword [eax + 0x788]
jmp 0x520454
mov eax, dword [eax + 0x94c]
push dword [esp + 0x68]
mov ecx, ebx
push eax
lea eax, [edi + 4]
push eax
push 0xa40e
call fcn.0042243a
mov ecx, esi
call fcn.00482e9a
test al, al
jne 0x5208e5
push 0
push 0x20
push dword [esp + 0x34]
lea eax, [esp + 0x80]
mov ecx, ebx
push dword [esp + 0x1c]
push dword [esp + 0x7c]
push dword [esp + 0x34]
push eax
call fcn.00462a8a
mov esi, dword [esp + 0x24]
mov dword [esp + 0x40], eax
test byte [esi + 0x90], 8
je 0x520831
lea eax, [esp + 0x74]
mov ecx, ebx
push eax
push dword [esp + 0x24]
call fcn.00421cba
mov ecx, dword [ebx + 0x210]
mov eax, dword [ecx]
push dword [eax + 0x10]
lea eax, [ecx + 0x568]
push eax
lea ecx, [esp + 0x40]
call fcn.00402cea
cmp dword [esp + 0x38], 1
jne 0x52077c
mov ecx, dword [esp + 0x3c]
call 0x3da5aa
cmp eax, 6
jne 0x52077c
mov eax, dword [ebx + 0x14]
lea ecx, [edi + 4]
mov dword [esp + 0x48], eax
mov eax, dword [ecx]
mov dword [esp + 0x4c], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x50], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x54], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x38], ecx
mov ecx, esi
mov dword [esp + 0x58], eax
call 0x3e909a
mov esi, dword [esp + 0x2c]
lea edx, [ebx + 0x6c]
sub esp, 0x10
mov ecx, esp
mov byte [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], 0
mov ecx, eax
call fcn.0041f37a
push 0
push eax
push 0
push 0x10
push dword [edi + 0x2c]
mov ecx, ebx
call fcn.0052207a
cmp dword [edi], 0x99
mov dword [esp + 0x28], eax
jne 0x5206af
push 0
push 1
push 0
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], 0
push eax
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
push dword [esp + 0x24]
call fcn.0047271a
push 0
push 0x20
push dword [esp + 0x34]
lea eax, [esp + 0x80]
mov ecx, ebx
push dword [esp + 0x1c]
push dword [esp + 0x7c]
push dword [esp + 0x34]
push eax
call fcn.00462a8a
push 0
push 0x20
push dword [esp + 0x34]
mov dword [esp + 0x24], eax
mov ecx, ebx
push dword [esp + 0x4c]
mov eax, dword [esp + 0x34]
push dword [esp + 0x7c]
push dword [eax + 0x84]
lea eax, [esp + 0x8c]
push eax
call fcn.00462a8a
mov edx, dword [esp + 0x30]
mov ebx, eax
mov ecx, dword [edx + 0xc]
mov edx, dword [edx + 0x210]
mov ecx, dword [ecx + 0xc]
mov esi, dword [ecx + 0x1fc]
mov ecx, dword [edx]
push dword [ecx + 0x10]
lea ecx, [edx + 0x568]
push ecx
lea ecx, [esp + 0x68]
call fcn.00402cea
mov edi, dword [esp + 0x60]
lea ecx, [esp + 0x48]
push dword [esp + 0x38]
dec edi
neg edi
push esi
sbb edi, edi
not edi
and edi, dword [esp + 0x6c]
call 0x4e2b8a
push edi
lea ecx, [esp + 0x4c]
mov esi, eax
call fcn.004e304a
push ecx
lea ecx, [esp + 0x50]
push ecx
push esi
push eax
lea ecx, [esp + 0x58]
call 0x4e425a
push dword [esp + 0x28]
lea ecx, [esp + 0x4c]
mov esi, eax
call 0x4e2f9a
push eax
push ecx
push 0
push ecx
push ebx
lea ecx, [esp + 0x5c]
call 0x4e2f9a
add esp, 4
lea ecx, [esp + 0x54]
push eax
call 0x4e48ea
add esp, 4
push eax
push 0
push ecx
push dword [esp + 0x28]
lea ecx, [esp + 0x5c]
call 0x4e2f9a
add esp, 4
lea ecx, [esp + 0x54]
push eax
call 0x4e48ea
push eax
lea eax, [esp + 0x54]
push 3
push eax
call fcn.004e25aa
mov ebx, dword [esp + 0x44]
add esp, 0x14
jmp 0x520751
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x210]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x200]
mov eax, dword [ecx]
push dword [eax + 0x10]
lea eax, [ecx + 0x568]
push eax
lea ecx, [esp + 0x38]
call fcn.00402cea
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0x48]
push dword [esp + 0x38]
dec edi
neg edi
push esi
sbb edi, edi
not edi
and edi, dword [esp + 0x3c]
call 0x4e2b8a
push edi
lea ecx, [esp + 0x4c]
mov esi, eax
call fcn.004e304a
push ecx
lea ecx, [esp + 0x50]
push ecx
push esi
push eax
lea ecx, [esp + 0x58]
call 0x4e425a
push dword [esp + 0x28]
lea ecx, [esp + 0x4c]
mov esi, eax
call 0x4e2f9a
push eax
push ecx
push 0
push ecx
push dword [esp + 0x50]
lea ecx, [esp + 0x5c]
call 0x4e2f9a
add esp, 4
lea ecx, [esp + 0x54]
push eax
call 0x4e48ea
add esp, 4
push eax
lea eax, [esp + 0x50]
push 2
push eax
call fcn.004e25aa
add esp, 0x10
lea ecx, [esp + 0x4c]
push ecx
push eax
push esi
lea ecx, [esp + 0x54]
call 0x4e40da
push 0
push 0
push 0
push 0
push 0x20
push eax
mov ecx, ebx
call fcn.0045436a
mov edi, dword [esp + 0x5c]
jmp 0x520900
cmp byte [ebx + 0x88], 0
lea eax, [edi + 4]
mov dword [esp + 0x30], eax
je 0x520816
mov edi, dword [ebx + 0x1c]
mov esi, dword [ebx + 0x210]
test edi, edi
je 0x520816
mov eax, dword [esi]
lea ecx, [esp + 0x40]
push dword [eax + 0x10]
lea eax, [esi + 0x568]
push eax
call fcn.00402cea
cmp dword [esp + 0x40], 0
mov ecx, esi
push 0x45
jne 0x5207f0
call fcn.0040179a
push eax
push dword [esp + 0x34]
push 0x7532
push edi
call 0x3cd1da
add esp, 0x10
mov ecx, ebx
call fcn.0042854a
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call 0x59f19b
mov esp, ebp
pop ebp
ret 4
call fcn.0040174a
push eax
push ecx
push 0x45
mov ecx, esi
call fcn.004013fa
add esp, 4
push eax
push dword [esp + 0x38]
push 0x7760
push edi
call 0x3cd1da
add esp, 0x14
mov ecx, ebx
call fcn.0042854a
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call 0x59f19b
mov esp, ebp
pop ebp
ret 4
mov edi, dword [esp + 0x18]
lea ecx, [ebx + 0x24]
push 0x30
add edi, 4
call fcn.0053ac4a
mov esi, eax
mov eax, 0x27
mov word [esi], ax
mov eax, dword [esp + 0x18]
mov cx, word [eax + 2]
and cx, 1
mov dword [esi + 0x24], eax
or word [esi + 2], cx
mov ecx, 0x65e308
mov eax, dword [edi]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
mov dword [esi + 8], eax
mov eax, dword [edi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x10], eax
mov dword [esi + 0x1c], 0x65e308
call 0x3db1ea
push edi
push 0
push esi
push 0x65e308
push 0x4f
mov ecx, ebx
mov dword [esi + 0x14], eax
call fcn.004731ba
mov edi, dword [esp + 0x5c]
lea edx, [esp + 0x30]
push 0
push 0
push 0
push 0
push 0
push edx
push eax
push 0
push dword [esp + 0x60]
lea ecx, [edi + 4]
mov dword [esp + 0x54], 0
push ecx
mov ecx, ebx
call fcn.0046844a
mov dword [esp + 0x18], eax
test byte [eax + 2], 1
jne 0x520904
push 0
push 0
push dword [esp + 0x38]
mov ecx, ebx
push eax
call fcn.0046a6aa
jmp 0x520900
mov eax, dword [esp + 0x18]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x70]
push ecx
push edi
push eax
push dword [esp + 0x38]
mov ecx, ebx
call fcn.00520a0a
mov dword [esp + 0x18], eax
movzx esi, word [edi + 0x20]
lea ecx, [ebx + 0x24]
push 0x30
call fcn.0053ac4a
mov edx, eax
mov eax, 0x1e
mov word [edx], ax
mov ecx, dword [edi + 4]
mov dword [edx + 4], ecx
mov ecx, dword [edi + 8]
mov dword [edx + 8], ecx
lea ecx, [edx + 0x18]
mov eax, dword [edi + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [edx + 0x10], eax
mov word [edx + 0x20], si
mov eax, dword [ebx + 0x1d8]
mov dword [edx + 0x24], eax
mov eax, dword [ebx + 0x12c]
mov dword [edx + 0x14], eax
mov dword [ecx], 0
mov eax, dword [ebx + 0x10c]
mov dword [edx + 0x1c], eax
mov eax, dword [ebx + 0x128]
mov dword [eax], edx
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x128], ecx
mov dword [ebx + 0x12c], edx
mov dword [edx + 0x28], eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call 0x59f19b
mov esp, ebp
pop ebp
ret 4
cmp byte [esi], 0x1a
jne 0x5209d7
mov eax, dword [ebx + 0xc]
mov ecx, dword [esi + 4]
mov edi, dword [eax + 0xc]
mov edx, dword [edi + 0x8c]
call 0x3cc63a
test al, al
je 0x5209d7
push dword [edi + 0x45c]
lea eax, [esp + 0x78]
mov ecx, ebx
push dword [esp + 0x6c]
push eax
push 0x77d4
call fcn.0042243a
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call 0x59f19b
mov esp, ebp
pop ebp
ret 4
push esi
push dword [esp + 0x6c]
lea eax, [esp + 0x7c]
mov ecx, ebx
push eax
push 0x77d4
call fcn.004225aa
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call 0x59f19b
mov esp, ebp
pop ebp
ret 4