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

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx]
test eax, eax
push ebp
push esi
je 0x52dc9f
push eax
call fcn.0057832c
add esp, 4
mov dword [ebx], 0
mov eax, dword [edi]
test eax, eax
mov dword [esp + 0x10], eax
je 0x52dd05
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x52dcb0
sub eax, edx
sar eax, 1
mov esi, eax
xor ecx, ecx
lea ebp, [esi + 1]
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0057740a
add esp, 4
lea ecx, [ebp + ebp]
push ecx
push 0
push eax
mov dword [ebx], eax
call fcn.00580260
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx]
add esp, 0xc
lea edx, [esi + esi]
push edx
push eax
push ecx
call fcn.0057e7b0
add esp, 0xc
mov eax, dword [edi + 8]
test eax, eax
je 0x52dd4f
mov edx, dword [edi + 0xc]
sub edx, eax
sar edx, 2
je 0x52dd4f
test eax, eax
je 0x52dd24
mov ecx, dword [edi + 0xc]
sub ecx, eax
sar ecx, 2
jne 0x52dd29
call fcn.00578ff3
mov edx, dword [edi + 8]
cmp dword [edx], 0
je 0x52dd4f
mov eax, edx
test eax, eax
je 0x52dd41
mov ecx, dword [edi + 0xc]
sub ecx, eax
sar ecx, 2
jne 0x52dd46
call fcn.00578ff3
mov edx, dword [edi + 8]
mov eax, dword [edx]
mov eax, dword [eax]
jmp 0x52dd54
mov eax, 0xff00ff
mov dword [ebx + 4], eax
mov ecx, dword [edi + 0x30]
mov edx, dword [edi + 0x2c]
mov eax, dword [edi + 0x28]
push ecx
mov ecx, dword [edi + 0x24]
push edx
mov edx, dword [edi + 0x20]
push eax
mov eax, dword [edi + 0x1c]
push ecx
mov ecx, dword [edi + 0x18]
push edx
push eax
mov eax, dword [edi + 0x14]
push ecx
lea esi, [ebx + 8]
call fcn.0052c6a0
mov edx, dword [edi + 0x58]
mov eax, dword [edi + 0x54]
mov ecx, dword [edi + 0x50]
push edx
mov edx, dword [edi + 0x4c]
push eax
mov eax, dword [edi + 0x48]
push ecx
mov ecx, dword [edi + 0x44]
push edx
mov edx, dword [edi + 0x40]
push eax
mov eax, dword [edi + 0x3c]
push ecx
push edx
lea esi, [ebx + 0x30]
call fcn.0052c6a0
mov eax, dword [edi + 0x68]
test eax, eax
je 0x52dded
mov ecx, dword [edi + 0x6c]
sub ecx, eax
sar ecx, 2
je 0x52dded
test eax, eax
je 0x52ddc4
mov edx, dword [edi + 0x6c]
sub edx, eax
sar edx, 2
jne 0x52ddc9
call fcn.00578ff3
mov eax, dword [edi + 0x68]
cmp dword [eax], 0
je 0x52dded
test eax, eax
je 0x52dddf
mov ecx, dword [edi + 0x6c]
sub ecx, eax
sar ecx, 2
jne 0x52dde4
call fcn.00578ff3
mov edx, dword [edi + 0x68]
mov eax, dword [edx]
mov eax, dword [eax]
jmp 0x52ddf2
mov eax, 0xff00ff
mov dword [ebx + 0x58], eax
mov ecx, dword [edi + 0x74]
lea eax, [ebx + 0x60]
mov dword [ebx + 0x5c], ecx
lea ebp, [edi + 0x78]
mov dword [esp + 0x14], eax
call fcn.00444740
xor esi, esi
mov eax, ebp
mov dword [esp + 0x10], esi
call fcn.00548180
test eax, eax
jle 0x52de65
jmp 0x52de24
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x52de37
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x52de3c
call fcn.00578ff3
mov edx, dword [ebp + 4]
lea ebx, [edx + esi*4]
mov esi, dword [esp + 0x14]
call fcn.004446c0
mov esi, dword [esp + 0x10]
add esi, 1
mov eax, ebp
mov dword [esp + 0x10], esi
call fcn.00548180
cmp esi, eax
jl 0x52de20
mov ebx, dword [esp + 0x1c]
lea eax, [ebx + 0x70]
lea ebp, [edi + 0x88]
mov dword [esp + 0x14], eax
call fcn.00444740
xor esi, esi
mov eax, ebp
mov dword [esp + 0x10], esi
call fcn.00548180
test eax, eax
jle 0x52ded5
jmp 0x52de94
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x52dea7
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x52deac
call fcn.00578ff3
mov eax, dword [ebp + 4]
lea ebx, [eax + esi*4]
mov esi, dword [esp + 0x14]
call fcn.004446c0
mov esi, dword [esp + 0x10]
add esi, 1
mov eax, ebp
mov dword [esp + 0x10], esi
call fcn.00548180
cmp esi, eax
jl 0x52de90
mov ebx, dword [esp + 0x1c]
fld qword [edi + 0x98]
pop esi
fstp qword [ebx + 0x80]
pop ebp
fld qword [edi + 0xa0]
mov eax, 1
fstp qword [ebx + 0x88]
fld qword [edi + 0xa8]
fstp qword [ebx + 0x90]
pop ebx
add esp, 0xc
ret 4