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

Disassembly:
sub esp, 0x80
push ebx
push ebp
push esi
push edi
mov edi, dword [0x608334]
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 [0x7d0648], ebp
je 0x521924
mov ecx, dword [esi + 4]
cmp ecx, ebp
je 0x521904
call fcn.005223a0
mov eax, dword [esi + 8]
mov ecx, dword [0x7d0648]
push eax
call fcn.00519c80
test eax, eax
je 0x521924
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 0x521942
call fcn.005223d0
lea ecx, [esi + 0x94]
push ecx
mov ecx, dword [esi + 4]
call fcn.00522220
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.00500830
fldz
mov ecx, dword [0x7d0648]
fstp dword [esp + 0x88]
fld dword [0x60f130]
add esp, 8
fstp dword [esp + 0x84]
call fcn.00517940
mov ecx, dword [esi + 4]
neg eax
sbb eax, eax
neg eax
mov dword [esp + 0x8c], eax
cmp ecx, ebp
je 0x5219cb
lea eax, [esp + 0x3c]
push eax
call fcn.005242e0
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 0x5219cd
xor edi, edi
cmp dword [esp + 0x10], ebp
je 0x521a0e
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x70]
push eax
push ebp
mov ecx, esi
call fcn.00521620
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x14], eax
call dword [0x6083ac]
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 [0x60844c]
cmp edi, ebp
jne 0x521a1a
cmp ebx, ebp
je 0x521c2e
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [0x60844c]
mov eax, dword [0x7af284]
movzx edx, word [eax + 0x6c30]
movzx eax, word [eax + 0x6c32]
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 [0x608448]
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 0x521aad
call fcn.00522290
mov ecx, dword [0x7d0648]
push ebp
call fcn.005192c0
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [0x7d0648]
cmp ecx, ebp
je 0x521ae3
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.00518fa0
mov ecx, dword [0x7d0648]
call fcn.00517950
mov ecx, dword [0x7d0648]
cmp dword [esp + 0x10], ebp
je 0x521afe
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x70]
push edx
push 1
mov ecx, esi
call fcn.00521620
jmp 0x521b18
cmp ecx, ebp
je 0x521b18
push ebp
call fcn.005192c0
mov ecx, dword [0x7d0648]
push 0xff000000
call fcn.00517b60
xor edi, edi
lea ebx, [ebx]
cmp dword [esp + 0x10], ebp
je 0x521b44
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x70]
push ecx
push 2
mov ecx, esi
mov dword [esp + 0x94], edi
call fcn.00521620
mov ebx, eax
jmp 0x521b46
xor ebx, ebx
mov ecx, dword [esi + 4]
cmp ecx, ebp
je 0x521b7c
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.00526ea0
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 0x521b9c
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x70]
push ecx
push 3
mov ecx, esi
mov dword [esp + 0x94], edi
call fcn.00521620
inc edi
cmp ebx, ebp
jne 0x521b20
cmp dword [esp + 0x10], ebp
je 0x521bd1
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x70]
push eax
push 4
mov ecx, esi
call fcn.00521620
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x70]
push edx
push 5
mov ecx, esi
call fcn.00521620
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x60]
push ecx
mov edx, eax
push edx
call dword [0x60844c]
mov ecx, dword [0x7d0648]
lea eax, [esp + 0x2c]
push eax
call fcn.005179d0
test eax, eax
je 0x521c04
mov ecx, dword [esi + 4]
cmp ecx, ebp
je 0x521c04
call fcn.00523930
cmp dword [esi + 4], ebp
je 0x521c2e
fld1
mov ecx, dword [0x7d0648]
sub esp, 8
fstp dword [esp + 4]
fldz
fstp dword [esp]
push ebp
push ebp
push ebp
push ebp
call fcn.00518fa0
mov ecx, dword [esi + 4]
call fcn.005222b0
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret