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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
cmp dword [ebx + 0x1c], 0
je 0x52e3c4
mov eax, dword [edi + 0x1e0]
cmp dword [eax + 0x1c], 0
je 0x52e3c4
cmp dword [0x1016c504], 0
je 0x52de59
mov eax, dword [ebx + 0x28]
test eax, eax
jg 0x52de59
inc eax
mov dword [ebx + 0x28], eax
mov eax, dword [ebx + 0x3c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc0]
xor eax, eax
mov edx, 0x1ffffff
cmp dword [edi + 0x2c], 1
mov ecx, ebx
cmovne edx, eax
call fcn.00512311
cmp byte [edi + 0xd5], 0
je 0x52de7e
mov ecx, 3
jmp 0x52de98
cmp dword [0x1016c3a0], edi
jne 0x52de8d
mov ecx, 2
jmp 0x52de98
xor ecx, ecx
cmp dword [0x1016c398], edi
sete cl
push ecx
mov dword [esp], 0x3f800000
xor eax, eax
cmp dword [0x1016c39c], edi
mov edx, 4
push 0xff
push dword [edi + 0x54]
cmove eax, edx
push dword [edi + 0x50]
add eax, ecx
push 0
push 0
push eax
push ebx
push dword [edi + 0x1e4]
call fcn.005cc301
mov ecx, dword [edi + 0x1dc]
mov dword [ebp + 0x10], 0
test ecx, ecx
je 0x52def1
mov ecx, dword [ecx + 4]
lea edx, [ebp + 0x10]
push edx
push 0
push 0
mov eax, dword [ecx]
push 0xe
call dword [eax + 0xc]
mov esi, dword [edi + 0x1e4]
test esi, esi
je 0x52dfc4
cmp dword [esi], 0x3b
jle 0x52dfc4
cmp byte [edi + 0xd5], 0
je 0x52df18
mov edx, 0x3b
jmp 0x52df26
xor edx, edx
cmp dword [0x1016c39c], edi
sete dl
add edx, 0x38
cmp dword [ebp + 0x10], 0
jne 0x52dfc4
cmp dword [esi + 0xc], 0x27
jle 0x52df4b
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x9c]
sub eax, 0
je 0x52df4b
sub eax, 1
jne 0x52dfc4
jmp 0x52df5a
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
shl ecx, 4
cmp dword [ecx + eax], 0
jge 0x52df82
mov eax, dword [edi + 0x208]
push ecx
mov dword [esp], 0x3f800000
push 0xff
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
push edx
push ebx
push esi
call fcn.005cc301
jmp 0x52dfc4
mov eax, dword [esi + 8]
mov ecx, dword [eax + edx*4]
test ecx, ecx
je 0x52dfc4
mov ecx, dword [ecx]
mov eax, dword [edi + 0x208]
push ecx
mov dword [esp], 0x3f800000
push 0
push 0
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
push dword [edi + 0x16c]
push 0
push 0
push 0
push dword [ecx + 0x18]
push dword [ecx + 0x14]
push ecx
push ebx
call fcn.00518381
cmp dword [edi + 0x1dc], 0
je 0x52e18d
cmp dword [ebp + 0x10], 0
je 0x52e18d
cmp dword [edi + 0x2c], 1
jle 0x52e01c
push 0x1014e6cc
push dword [edi + 0x28]
call dword [0x101472b4]
mov ecx, dword [edi + 0x54]
mov edx, dword [edi + 0x50]
push 0xcc0020
push ecx
push edx
push dword [edi + 0x78]
push dword [edi + 0x74]
push dword [eax + 0x1c]
mov eax, dword [edi + 0x1e0]
push ecx
push edx
push 0
push 0
push dword [eax + 0x1c]
call dword [0x1014702c]
jmp 0x52e06e
mov ecx, dword [edi + 0x1e0]
test ecx, ecx
je 0x52e046
cmp dword [0x1016c504], 0
je 0x52e046
mov eax, dword [ecx + 0x28]
test eax, eax
jg 0x52e046
inc eax
mov dword [ecx + 0x28], eax
mov eax, dword [ecx + 0x3c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc0]
mov ecx, dword [edi + 0x184]
mov edx, 0xff
call fcn.0056e2e1
mov ecx, dword [edi + 0x1e0]
mov edx, eax
call fcn.00512311
mov ecx, dword [edi + 0x1e0]
call fcn.00511b21
cmp byte [edi + 0xd5], 0
je 0x52e07e
mov ecx, 3
jmp 0x52e098
cmp dword [0x1016c3a0], edi
jne 0x52e08d
mov ecx, 2
jmp 0x52e098
xor ecx, ecx
cmp dword [0x1016c398], edi
sete cl
push ecx
mov dword [esp], 0x3f800000
xor eax, eax
cmp dword [0x1016c39c], edi
mov edx, 4
push 0xff
push dword [edi + 0x54]
cmove eax, edx
push dword [edi + 0x50]
add eax, ecx
push 0
push 0
push eax
push ebx
push dword [edi + 0x1e4]
call fcn.005cc301
mov esi, dword [edi + 0x54]
imul esi, dword [edi + 0x50]
mov eax, dword [edi + 0x1e0]
mov eax, dword [eax + 0x10]
test esi, esi
jle 0x52e0f2
add eax, 3
mov ecx, esi
mov byte [eax], 1
lea eax, [eax + 4]
sub ecx, 1
jne 0x52e0e7
mov eax, dword [edi + 0x1dc]
push 0
push 0
push 0
mov ecx, dword [eax + 4]
mov eax, dword [edi + 0x20c]
push eax
push 0
mov edx, dword [ecx]
push eax
mov eax, dword [edi + 0x1e0]
push 0
push dword [eax + 0x1c]
push 0
push 0
push 0
push 1
call dword [edx + 0x10]
mov edx, dword [edi + 0x1e0]
mov eax, dword [edx + 0x10]
test esi, esi
jle 0x52e158
nop
cmp byte [eax + 3], 1
jne 0x52e144
mov word [eax], 0
xor cl, cl
mov byte [eax + 2], 0
jmp 0x52e147
or cl, 0xff
mov byte [eax + 3], cl
add eax, 4
sub esi, 1
jne 0x52e131
mov edx, dword [edi + 0x1e0]
mov ecx, dword [edi + 0x54]
mov eax, dword [edi + 0x184]
mov esi, dword [edi + 0x50]
push ecx
mov dword [esp], 0x3f800000
sar eax, 0x18
movzx eax, al
push eax
push ecx
push esi
push 0
push 0
push ecx
mov ecx, dword [edi + 0xd8]
push esi
push 0
push 0
call fcn.00516ca1
add esp, 0x28
mov eax, dword [edi + 0x170]
and eax, 0x40001
cmp eax, 0x40001
je 0x52e2a1
cmp dword [edi + 0x17c], 0
je 0x52e2a1
cmp byte [edi + 0x204], 0
je 0x52e2a1
cmp byte [edi + 0x224], 0
je 0x52e2a1
cmp dword [0x1016c39c], edi
jne 0x52e2a1
cmp byte [edi + 0xd5], 0
jne 0x52e2a1
mov eax, dword [edi + 0x1dc]
lea edx, [ebp - 0x10]
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
push 0
mov ecx, dword [eax + 4]
push edx
lea edx, [ebp - 8]
push edx
mov eax, dword [ecx]
push 0xb0
call dword [eax + 0xc]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jne 0x52e2a1
cmp dword [0x1016c504], 0
push 1
je 0x52e233
mov eax, dword [ebx + 0x3c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x80]
jmp 0x52e23c
push dword [ebx + 0x20]
call dword [0x1016d214]
movss xmm1, dword [0x10156560]
mov ecx, dword [edi + 0x17c]
call fcn.0058d7b1
mov edx, dword [edi + 0x1f8]
sub esp, 0xc
mov ecx, dword [edi + 0x200]
mov esi, eax
movd xmm2, dword [edi + 0x1f4]
add ecx, edx
cvtdq2ps xmm2, xmm2
mov dword [esp + 8], 0x3f800000
movd xmm3, edx
mov edx, esi
movd xmm0, ecx
mov ecx, ebx
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm3, xmm3
movss dword [esp + 4], xmm0
movss dword [esp], xmm2
call fcn.00512d71
add esp, 0xc
mov ecx, esi
call fcn.0058d831
mov eax, dword [edi + 0x210]
movss xmm0, dword [edi + 0x10c]
push ecx
movss dword [esp], xmm0
xor ecx, ecx
push 0xff
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
mov eax, dword [edi + 0x1f0]
cmp dword [eax + 0x1e0], ecx
setne cl
lea ecx, [ecx*4 + 8]
add ecx, dword [edi + 0x214]
push ecx
push ebx
push dword [edi + 0x1e4]
call fcn.005cc301
movss xmm1, dword [edi + 0x10c]
ucomiss xmm1, dword [0x10156560]
mov ecx, dword [edi + 0x54]
movd xmm0, ecx
lahf
test ah, 0x44
jp 0x52e312
cvtdq2pd xmm0, xmm0
jmp 0x52e334
cvtdq2ps xmm0, xmm0
sub esp, 8
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.0060fbc1
fstp qword [ebp - 0x14]
movsd xmm0, qword [ebp - 0x14]
add esp, 8
movss xmm1, dword [edi + 0x10c]
ucomiss xmm1, dword [0x10156560]
mov ecx, dword [edi + 0x50]
movsd qword [ebp - 0x14], xmm0
movd xmm0, ecx
lahf
test ah, 0x44
jp 0x52e35b
cvtdq2pd xmm0, xmm0
jmp 0x52e37d
cvtdq2ps xmm0, xmm0
sub esp, 8
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.0060fbc1
fstp qword [ebp - 0xc]
movsd xmm0, qword [ebp - 0xc]
add esp, 8
cvttsd2si eax, qword [ebp - 0x14]
push eax
cvttsd2si eax, xmm0
push eax
push 0
push 0
push ebx
push edi
call fcn.00556ab1
cmp dword [0x1016c504], 0
je 0x52e3c4
mov eax, dword [ebx + 0x28]
cmp eax, 1
jl 0x52e3c4
dec eax
mov ecx, ebx
mov dword [ebx + 0x28], eax
call fcn.00512371
mov eax, dword [ebx + 0x3c]
push 0
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc4]
mov dword [0x1016c4f8], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc