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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [ecx + 0x118]
test eax, eax
mov dword [esp + 8], ecx
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x820]
mov ecx, dword [edx + 8]
push ebx
push esi
push edi
je 0x52d6bd
movzx ebx, ax
cmp ebx, dword [ecx + 8]
jae 0x52d6bd
lea ebx, [ebx + ebx*4]
shl ebx, 5
add ebx, dword [ecx]
cmp dword [ebx + 0x9c], eax
jne 0x52d6bd
mov esi, dword [ebp + 0xc]
fld dword [esi + 0x18]
fcomp qword [0x679480]
fnstsw ax
test ah, 0x41
jne 0x52d0cf
fld dword [esi + 0x18]
fsubr qword [0x679490]
fadd qword [0x67a0f0]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
call fcn.006397d0
fld dword [esi + 0x14]
fadd dword [esi + 0xc]
push eax
push 0x208
fsub qword [0x679920]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
call fcn.006397d0
fld dword [esi + 0x10]
fsub qword [0x6792f0]
push eax
call fcn.006397d0
mov esi, dword [ebp + 8]
push eax
call fcn.00587790
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x74]
test eax, eax
mov edi, 0xff
mov dword [esp + 0x10], edi
jl 0x52d121
imul eax, eax, 0xff
mov ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jg 0x52d10e
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x10]
jmp 0x52d121
cmp eax, 0xff
jl 0x52d11b
mov dword [esp + 0x10], edi
jmp 0x52d121
mov dword [esp + 0x10], eax
mov edi, eax
push edi
mov edx, 0xff
push 0xff
mov ecx, edx
lea eax, [esp + 0x38]
call fcn.005643f0
mov eax, dword [0x7228ac]
mov ecx, dword [0x7228b0]
mov edx, dword [0x7228b4]
mov dword [esp + 0x20], eax
mov eax, dword [0x7228b8]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x28]
cmp eax, 2
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov byte [esp + 0xf], 0
jne 0x52d1c5
push edi
push 0
xor edx, edx
xor ecx, ecx
lea eax, [esp + 0x48]
call fcn.005643f0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0xc]
mov eax, dword [0x7228ac]
mov dword [esp + 0x38], ecx
mov ecx, dword [0x7228b0]
mov dword [esp + 0x3c], edx
mov edx, dword [0x7228b4]
mov dword [esp + 0x20], eax
mov eax, dword [0x7228b8]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
mov byte [esp + 0xf], 0
jmp 0x52d387
cmp dword [esi + 0x24], 0x19
jne 0x52d2bf
cmp eax, 1
je 0x52d2bf
mov ecx, dword [esi + 0xcc]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [esi + 0xc8], ecx
jge 0x52d2bf
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x5568]
cdq
mov ecx, 0x28
idiv ecx
push 9
push 0xff
push 0x9b
mov ecx, 0x27
mov eax, edx
xor edx, edx
mov dword [esp + 0x24], eax
call fcn.00511c40
add esp, 0xc
cmp dword [esi + 0xac], 0
mov dword [esp + 0x1c], eax
jg 0x52d247
cmp dword [esi + 0xb4], 0
jg 0x52d247
push edi
push eax
jmp 0x52d266
mov eax, dword [esp + 0x18]
push 9
push 0x4b
push 0x41
mov ecx, 0x27
xor edx, edx
call fcn.00511c40
mov ecx, dword [esp + 0x28]
add esp, 0xc
push edi
push ecx
mov edx, eax
mov ecx, eax
lea eax, [esp + 0x48]
call fcn.005643f0
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x34], ecx
mov ecx, dword [0x7228ac]
mov dword [esp + 0x3c], eax
mov eax, dword [0x7228b4]
mov dword [esp + 0x38], edx
mov edx, dword [0x7228b0]
mov dword [esp + 0x20], ecx
mov ecx, dword [0x7228b8]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov byte [esp + 0xf], 0
jmp 0x52d387
jmp 0x7ba9ff
jmp 0x7b9fc6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc