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

Disassembly:
sub esp, 0x80
push ebx
push ebp
push esi
push edi
mov edi, dword [0x607334]
lea eax, [esp + 0x2c]
push eax
mov esi, ecx
call edi
lea ecx, [esp + 0x3c]
push ecx
call edi
lea edx, [esp + 0x4c]
push edx
call edi
lea eax, [esp + 0x5c]
push eax
call edi
lea ecx, [esp + 0x70]
push ecx
call edi
xor ebp, ebp
xor edx, edx
cmp dword [esi + 0xc0], ebp
mov dword [esp + 0x14], ebp
setne dl
xor ebx, ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], edx
cmp dword [0x7cf648], ebp
je 0x520e54
mov ecx, dword [esi + 4]
cmp ecx, ebp
je 0x520e34
call fcn.005218d0
mov eax, dword [esi + 8]
mov ecx, dword [0x7cf648]
push eax
call fcn.00519060
test eax, eax
je 0x520e54
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x80
ret
mov ecx, dword [esi + 4]
mov dword [esi + 8], ebp
cmp ecx, ebp
je 0x520e72
call fcn.00521900
lea ecx, [esi + 0x94]
push ecx
mov ecx, dword [esi + 4]
call fcn.00521750
lea edx, [esi + 0x94]
push edx
call edi
lea eax, [esp + 0x3c]
push eax
call edi
lea ecx, [esp + 0x4c]
push ecx
call edi
lea edx, [esp + 0x6c]
push 0x24
push edx
call fcn.004ffbf0
fldz
mov ecx, dword [0x7cf648]
fstp dword [esp + 0x88]
fld dword [0x60e130]
add esp, 8
fstp dword [esp + 0x84]
call fcn.00516cb0
mov ecx, dword [esi + 4]
neg eax
sbb eax, eax
neg eax
mov dword [esp + 0x8c], eax
cmp ecx, ebp
je 0x520efb
lea eax, [esp + 0x3c]
push eax
call fcn.005237b0
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov edi, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
jmp 0x520efd
xor edi, edi
cmp dword [esp + 0x10], ebp
je 0x520f3e
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x70]
push eax
push ebp
mov ecx, esi
call fcn.00520b50
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x14], eax
call dword [0x60743c]
lea edx, [esp + 0x70]
mov ebx, eax
push edx
neg ebx
lea eax, [esp + 0x50]
push eax
mov ecx, edx
sbb ebx, ebx
push ecx
inc ebx
call dword [0x607448]
cmp edi, ebp
jne 0x520f4a
cmp ebx, ebp
je 0x52115e
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [0x607448]
mov eax, dword [0x7ae284]
movzx edx, word [eax + 0x56f0]
movzx eax, word [eax + 0x56f2]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], edx
push ecx
lea edx, [esp + 0x20]
mov dword [esp + 0x2c], eax
push edx
mov eax, ecx
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call dword [0x607444]
mov ecx, dword [esi + 4]
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
cmp ecx, ebp
je 0x520fdd
call fcn.005217c0
mov ecx, dword [0x7cf648]
push ebp
call fcn.005186f0
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [0x7cf648]
cmp ecx, ebp
je 0x521013
fld1
sub esp, 8
fstp dword [esp + 4]
sub eax, edi
fldz
sub edx, ebx
fstp dword [esp]
push eax
push edx
push edi
push ebx
call fcn.00518310
mov ecx, dword [0x7cf648]
call fcn.00516cc0
mov ecx, dword [0x7cf648]
cmp dword [esp + 0x10], ebp
je 0x52102e
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x70]
push edx
push 1
mov ecx, esi
call fcn.00520b50
jmp 0x521048
cmp ecx, ebp
je 0x521048
push ebp
call fcn.005186f0
mov ecx, dword [0x7cf648]
push 0xff000000
call fcn.00516ed0
xor edi, edi
lea ebx, [ebx]
cmp dword [esp + 0x10], ebp
je 0x521074
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x70]
push ecx
push 2
mov ecx, esi
mov dword [esp + 0x94], edi
call fcn.00520b50
mov ebx, eax
jmp 0x521076
xor ebx, ebx
mov ecx, dword [esi + 4]
cmp ecx, ebp
je 0x5210ac
fld dword [esp + 0x84]
sub esp, 8
fstp dword [esp + 4]
lea edx, [esp + 0x24]
fld dword [esp + 0x88]
fstp dword [esp]
push edx
call fcn.00526370
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
cmp dword [esp + 0x10], ebp
je 0x5210cc
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x70]
push ecx
push 3
mov ecx, esi
mov dword [esp + 0x94], edi
call fcn.00520b50
inc edi
cmp ebx, ebp
jne 0x521050
cmp dword [esp + 0x10], ebp
je 0x521101
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x70]
push eax
push 4
mov ecx, esi
call fcn.00520b50
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x70]
push edx
push 5
mov ecx, esi
call fcn.00520b50
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x60]
push ecx
mov edx, eax
push edx
call dword [0x607448]
mov ecx, dword [0x7cf648]
lea eax, [esp + 0x2c]
push eax
call fcn.00516d40
test eax, eax
je 0x521134
mov ecx, dword [esi + 4]
cmp ecx, ebp
je 0x521134
call fcn.00522de0
cmp dword [esi + 4], ebp
je 0x52115e
fld1
mov ecx, dword [0x7cf648]
sub esp, 8
fstp dword [esp + 4]
fldz
fstp dword [esp]
push ebp
push ebp
push ebp
push ebp
call fcn.00518310
mov ecx, dword [esi + 4]
call fcn.005217e0
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret