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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x52d787
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x52d787
lea ecx, [esp + 0xb0]
call fcn.0064dc20
mov ecx, edi
call fcn.004da3c0
cmp eax, 2
mov dword [esp + 0x14], eax
jl 0x52d787
mov ecx, esi
call fcn.004da3c0
cmp eax, 2
mov dword [esp + 0x10], eax
jl 0x52d787
mov eax, dword [esp + 0x14]
mov ebx, 1
cmp eax, ebx
mov dword [esp + 0xc], ebx
jle 0x52d77a
jmp 0x52d584
mov ebx, dword [esp + 0xc]
lea eax, [ebx - 1]
lea ecx, [esp + 0x98]
push eax
push ecx
mov ecx, edi
call fcn.005309b0
lea edx, [esp + 0x50]
push ebx
push edx
mov ecx, edi
call fcn.005309b0
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x5c]
mov ebx, 1
cmp eax, ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], ecx
jle 0x52d765
lea edx, [ebx - 1]
lea eax, [esp + 0x80]
push edx
push eax
mov ecx, esi
call fcn.005309b0
lea ecx, [esp + 0x68]
push ebx
push ecx
mov ecx, esi
call fcn.005309b0
mov ecx, dword [esp + 0x74]
lea edx, [esp + 0x48]
push 1
lea eax, [esp + 0x44]
push edx
mov edx, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0xa0]
push eax
mov eax, dword [esp + 0xa0]
push ecx
mov ecx, dword [esp + 0xa0]
push edx
mov edx, dword [esp + 0xa0]
push eax
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x68]
push edx
push eax
push ecx
call fcn.004648a0
add esp, 0x4c
cmp eax, 1
jne 0x52d758
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push 0
push 0
push edx
mov edx, dword [esp + 0x4c]
push eax
push ecx
push edx
lea ecx, [esp + 0xc8]
call fcn.0064dd00
sub esp, 0x18
lea eax, [esp + 0xc8]
mov ecx, esp
push eax
call fcn.0064dc70
mov ecx, dword [ebp + 0x10]
call fcn.00472bf0
mov edi, dword [edi]
sub esp, 0x18
lea edx, [esp + 0xc8]
mov ecx, esp
push edx
call fcn.0064dc70
mov ecx, dword [ebp + 8]
call dword [edi + 0xa0]
mov ecx, dword [ebp + 0x14]
push 0xffffffffffffffff
fstp qword [esp + 0x1c]
mov edi, dword [ecx + 8]
lea eax, [edi + 1]
push eax
call fcn.00473440
mov ecx, dword [ebp + 0x14]
sub esp, 0x18
fld qword [esp + 0x30]
mov edx, dword [ecx + 4]
lea eax, [esp + 0xc8]
mov ecx, esp
push eax
fstp qword [edx + edi*8]
mov edi, dword [esi]
call fcn.0064dc70
mov ecx, esi
call dword [edi + 0xa0]
mov ecx, dword [ebp + 0x18]
push 0xffffffffffffffff
fstp qword [esp + 0x1c]
mov edi, dword [ecx + 8]
lea edx, [edi + 1]
push edx
call fcn.00473440
mov eax, dword [ebp + 0x18]
fld qword [esp + 0x18]
mov ecx, dword [eax + 4]
fstp qword [ecx + edi*8]
mov edi, dword [ebp + 8]
mov eax, dword [esp + 0x10]
inc ebx
cmp ebx, eax
jl 0x52d601
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x52d580
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret