Function at 0x5bde31
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 0x5be331
mov eax, dword [edi + 0x1b4]
cmp dword [eax + 0x1c], 0
je 0x5be331
cmp dword [0x1016c504], 0
je 0x5bde79
mov eax, dword [ebx + 0x28]
test eax, eax
jg 0x5bde79
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 0x5bde9e
mov ecx, 3
jmp 0x5bdeb8
cmp dword [0x1016c3a0], edi
jne 0x5bdead
mov ecx, 2
jmp 0x5bdeb8
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 + 0x1bc]
call fcn.005cc301
mov ecx, dword [edi + 0x1b8]
mov dword [ebp + 0x10], 0
test ecx, ecx
je 0x5bdf11
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 + 0x1bc]
test esi, esi
je 0x5bdfe0
cmp dword [esi], 0x3b
jle 0x5bdfe0
cmp byte [edi + 0xd5], 0
je 0x5bdf38
mov edx, 0x3b
jmp 0x5bdf46
xor edx, edx
cmp dword [0x1016c39c], edi
sete dl
add edx, 0x38
cmp dword [ebp + 0x10], 0
jne 0x5bdfe0
cmp dword [esi + 0xc], 0x27
jle 0x5bdf6b
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x9c]
sub eax, 0
je 0x5bdf6b
sub eax, 1
jne 0x5bdfe0
jmp 0x5bdf7a
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
shl ecx, 4
cmp dword [ecx + eax], 0
jge 0x5bdfa2
mov eax, dword [edi + 0x1e0]
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 0x5bdfe0
mov eax, dword [esi + 8]
mov ecx, dword [eax + edx*4]
test ecx, ecx
je 0x5bdfe0
mov ecx, dword [ecx]
mov eax, dword [edi + 0x1e0]
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 0
push 0
push 0
push 0
push dword [ecx + 0x18]
push dword [ecx + 0x14]
push ecx
push ebx
call fcn.00518381
cmp dword [edi + 0x1b8], 0
je 0x5be145
cmp dword [ebp + 0x10], 0
je 0x5be145
cmp dword [edi + 0x2c], 1
jle 0x5be038
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 + 0x1b4]
push ecx
push edx
push 0
push 0
push dword [eax + 0x1c]
call dword [0x1014702c]
jmp 0x5be08c
mov ecx, dword [edi + 0x1b4]
mov eax, ecx
test ecx, ecx
je 0x5be06c
cmp dword [0x1016c504], 0
je 0x5be06c
mov edx, dword [ecx + 0x28]
test edx, edx
jg 0x5be06c
lea eax, [edx + 1]
mov dword [ecx + 0x28], eax
mov eax, dword [ecx + 0x3c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc0]
mov eax, dword [edi + 0x1b4]
mov dword [ebp - 8], 0xffffff
mov ecx, eax
mov byte [ebp - 5], 0
mov edx, dword [ebp - 8]
call fcn.00512311
mov ecx, dword [edi + 0x1b4]
call fcn.00511b21
mov esi, dword [edi + 0x54]
imul esi, dword [edi + 0x50]
mov eax, dword [edi + 0x1b4]
mov eax, dword [eax + 0x10]
test esi, esi
jle 0x5be0b0
add eax, 3
mov ecx, esi
mov byte [eax], 1
lea eax, [eax + 4]
sub ecx, 1
jne 0x5be0a5
mov eax, dword [edi + 0x1b8]
push 0
push 0
push 0
mov ecx, dword [eax + 4]
mov eax, dword [edi + 0x1e4]
push eax
push 0
mov edx, dword [ecx]
push eax
mov eax, dword [edi + 0x1b4]
push 0
push dword [eax + 0x1c]
push 0
push 0
push 0
push 1
call dword [edx + 0x10]
mov eax, dword [edi + 0x1b4]
mov eax, dword [eax + 0x10]
test esi, esi
jle 0x5be112
nop dword [eax]
cmp byte [eax + 3], 1
jne 0x5be104
mov word [eax], 0
xor cl, cl
mov byte [eax + 2], 0
jmp 0x5be107
or cl, 0xff
mov byte [eax + 3], cl
add eax, 4
sub esi, 1
jne 0x5be0f1
mov ecx, dword [edi + 0x50]
mov eax, dword [edi + 0x54]
mov edx, dword [edi + 0x1b4]
push ecx
mov dword [esp], 0x3f800000
push 0xff
push eax
push ecx
push 0
push 0
push eax
push ecx
mov ecx, dword [edi + 0xd8]
push 0
push 0
call fcn.00516ca1
add esp, 0x28
cmp byte [edi + 0x1dc], 0
je 0x5be236
cmp byte [edi + 0x1ec], 0
je 0x5be236
cmp dword [0x1016c39c], edi
jne 0x5be236
cmp byte [edi + 0xd5], 0
jne 0x5be236
mov eax, dword [edi + 0x1b8]
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 0x5be236
cmp dword [0x1016c504], 0
push 1
je 0x5be1c8
mov eax, dword [ebx + 0x3c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x80]
jmp 0x5be1d1
push dword [ebx + 0x20]
call dword [0x1016d214]
movss xmm1, dword [0x10156560]
mov ecx, dword [edi + 0x178]
call fcn.0058d7b1
mov edx, dword [edi + 0x1d0]
sub esp, 0xc
mov ecx, dword [edi + 0x1d8]
mov esi, eax
movd xmm2, dword [edi + 0x1cc]
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
cmp byte [edi + 0x190], 0
je 0x5be25d
mov ecx, dword [edi + 0x1c0]
push ebx
sub esp, 8
call fcn.005bfd51
mov ecx, dword [edi + 0x1c4]
push ebx
sub esp, 8
call fcn.005bfd51
movss xmm1, dword [edi + 0x10c]
ucomiss xmm1, dword [0x10156560]
mov ecx, dword [edi + 0x54]
movd xmm0, ecx
lahf
test ah, 0x44
jp 0x5be27f
cvtdq2pd xmm0, xmm0
jmp 0x5be2a1
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 0x5be2c8
cvtdq2pd xmm0, xmm0
jmp 0x5be2ea
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 0x5be331
mov eax, dword [ebx + 0x28]
cmp eax, 1
jl 0x5be331
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