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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, dword [0x44f560]
push edi
mov dword [ebp - 0xc], esi
cmp byte [esi + 0xbf], 0
je 0x405a6a
test byte [esi + 0xc], 2
jne 0x405a6a
mov byte [esi + 0xbf], 0
cmp byte [esi + 0x2c68], 0
jne 0x405abf
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x405ab8
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call fcn.00402cd0
mov edi, eax
add esp, 8
test edi, edi
je 0x405ab8
mov edx, dword [ebp - 4]
mov ecx, edi
call fcn.00411f00
mov ecx, dword [0x44f560]
test ecx, ecx
je 0x405aae
dec dword [ecx + 0x394]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov byte [esi + 0x2c68], 1
movss xmm0, dword [esi + 0x2c6c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x405b03
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x2c6c], xmm0
jb 0x405b03
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x405af2
call fcn.004120d0
xorps xmm1, xmm1
jmp 0x405af9
mov byte [esi + 0x37c], 1
mov dword [esi + 0x2c6c], 0
movss xmm0, dword [esi + 0x18]
mov eax, dword [esi + 0x94]
mov edx, dword [0x44f560]
inc dword [esi + 0x1990]
cvtps2pd xmm0, xmm0
mov byte [esi + 1], 1
mov dword [esi + 0x2c48], 0
mov dword [esi + 0x19d8], 0
addsd xmm0, qword [esi + 0x1988]
movsd qword [esi + 0x1988], xmm0
mov byte [eax], 1
mov edi, dword [edx + 0xa0]
test edi, edi
jne 0x405b5d
mov eax, dword [edx + 0x94]
mov eax, dword [eax + 0x3c]
mov edi, dword [eax]
movss xmm0, dword [edx + 0x98]
mov eax, dword [edx + 0x19dc]
mov dword [edx + 0x18f8], edi
mulss xmm0, dword [edi]
mulss xmm0, dword [edi + 4]
movss dword [edx + 0x1900], xmm0
test eax, eax
je 0x405b92
movss xmm1, dword [eax + 0x268]
mulss xmm1, xmm0
movss dword [edx + 0x18fc], xmm1
mov eax, dword [edi + 0x44]
mov ecx, dword [eax + 0x2c]
mov eax, dword [eax + 0x30]
mov dword [edx + 0x1904], ecx
lea ecx, [esi + 0x1c24]
mov dword [edx + 0x1908], eax
mov dword [edx + 0x190c], edi
movss dword [edx + 0x1910], xmm1
movss xmm0, dword [esi + 0x10]
movss xmm1, dword [esi + 0x14]
mov dword [esi + 0x1918], 0
mov dword [esi + 0x191c], 0
movss dword [esi + 0x1920], xmm0
movss dword [esi + 0x1924], xmm1
mov eax, dword [esi + 0x15b4]
mov dword [esi + 0x1914], eax
call fcn.0041b150
mov eax, dword [esi + 0x94]
lea edx, [esi + 0x1c6c]
mov ecx, dword [edx]
mov edi, dword [edx + 4]
mov dword [ebp - 4], edx
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
cmp ecx, edi
jne 0x405c48
inc ecx
test edi, edi
je 0x405c33
mov eax, edi
cdq
sub eax, edx
mov edx, dword [ebp - 4]
sar eax, 1
add eax, edi
jmp 0x405c38
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edx
call fcn.00412bb0
mov edx, dword [ebp - 4]
mov ecx, dword [edx]
mov eax, dword [edx + 8]
mov edi, dword [ebp - 8]
mov dword [eax + ecx*4], edi
lea edi, [esi + 0x1c24]
inc dword [edx]
mov ecx, edi
call fcn.0041b670
mov eax, dword [edi + 0x28]
movss xmm0, dword [eax + 0x1c]
movss xmm2, dword [eax + 0x14]
comiss xmm2, xmm0
movss xmm3, dword [eax + 0x20]
movss xmm1, dword [eax + 0x18]
movss dword [ebp - 0x20], xmm2
movss dword [ebp - 0x1c], xmm1
movss dword [ebp - 0x18], xmm0
movss dword [ebp - 0x14], xmm3
jb 0x405c97
movss dword [ebp - 0x18], xmm2
comiss xmm1, xmm3
jb 0x405ca1
movss dword [ebp - 0x14], xmm1
mov edx, dword [edi + 0x3c]
mov ecx, dword [edi + 0x40]
cmp edx, ecx
jne 0x405cd4
inc edx
mov dword [ebp - 8], edx
test ecx, ecx
je 0x405cc1
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 8]
sar eax, 1
add eax, ecx
jmp 0x405cc6
mov eax, 8
cmp eax, edx
lea ecx, [edi + 0x3c]
cmovg edx, eax
push edx
call fcn.00420eb0
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x44]
add eax, eax
movups xmm0, xmmword [ebp - 0x20]
movups xmmword [ecx + eax*8], xmm0
inc dword [edi + 0x3c]
lea ecx, [esi + 0x1c24]
call fcn.0041b540
mov edx, dword [0x44f560]
xor ecx, ecx
cmp byte [esi + 0x15b1], cl
mov eax, 2
mov byte [esi + 0x1be4], 0
cmovne ecx, eax
mov dword [esi + 0x1be8], 0
xor eax, eax
mov dword [esi + 0x1bf0], 0
cmp byte [esi + 0x15b0], al
mov dword [esi + 0x1bf4], 0
setne al
mov dword [esi + 0x1bec], 0
or ecx, eax
mov dword [esi + 0x1c48], ecx
mov dword [esi + 0x1c00], 0
mov dword [esi + 0x1c04], 0
mov dword [esi + 0x1bf8], 0
mov dword [esi + 0x1bfc], 0
cmp byte [esi + 0x1c9c], 0
je 0x405da6
mov eax, dword [esi + 0x1cb4]
cmp eax, dword [esi + 0x19fc]
jne 0x405da6
cmp dword [edx + 0x19fc], eax
jne 0x405d97
mov dword [edx + 0x1a04], eax
cmp dword [edx + 0x1a00], eax
jne 0x405da6
mov byte [edx + 0x1a0f], 1
cmp dword [esi + 0x19f0], 0
jne 0x405dbb
mov dword [esi + 0x19f4], 0
jmp 0x405dcd
mov eax, dword [esi + 0x19e8]
test eax, eax
je 0x405dd7
cmp dword [esi + 0x19fc], eax
jne 0x405dd7
mov dword [esi + 0x19f8], 0
mov eax, dword [esi + 0x19e8]
test eax, eax
je 0x405e11
movss xmm1, dword [esi + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [esi + 0x19f4]
movss dword [esi + 0x19f4], xmm0
cmp dword [esi + 0x19fc], eax
je 0x405e11
addss xmm1, dword [esi + 0x19f8]
movss dword [esi + 0x19f8], xmm1
mov dword [esi + 0x19f0], eax
mov eax, dword [esi + 0x19fc]
mov dword [esi + 0x19e8], 0
mov byte [esi + 0x19ec], 0
cmp dword [esi + 0x1a04], eax
je 0x405e8d
cmp dword [esi + 0x1a00], eax
jne 0x405e8d
test eax, eax
je 0x405e8d
mov ecx, dword [edx + 0x19fc]
test ecx, ecx
setne al
mov byte [edx + 0x1a0c], al
test ecx, ecx
je 0x405e68
mov dword [edx + 0x1a08], 0
mov byte [edx + 0x1a0e], 0
mov dword [edx + 0x19fc], 0
mov dword [edx + 0x1a14], 0
mov byte [edx + 0x1a0d], 0
mov dword [edx + 0x1a20], 0
mov ecx, dword [esi + 0x19fc]
test ecx, ecx
je 0x405eac
movss xmm0, dword [esi + 0x18]
addss xmm0, dword [esi + 0x1a08]
movss dword [esi + 0x1a08], xmm0
mov eax, dword [esi + 0x1a20]
movss xmm0, dword [esi + 0x18]
addss xmm0, dword [esi + 0x1a30]
mov dword [esi + 0x1a24], eax
mov al, byte [esi + 0x1a0e]
mov byte [esi + 0x1a10], al
mov eax, dword [esi + 0x2c1c]
movss dword [esi + 0x1a30], xmm0
mov dword [esi + 0x1a00], ecx
mov dword [esi + 0x1a04], 0
mov byte [esi + 0x1a0f], 0
mov byte [esi + 0x1a0c], 0
test eax, eax
je 0x405f0f
cmp ecx, eax
je 0x405f0f
mov dword [esi + 0x2c1c], 0
mov eax, dword [esi + 0x1d00]
lea edi, [esi + 0xc70]
movss xmm2, dword [0x44087c]
mov ecx, 0x200
mov dword [esi + 0x1d04], eax
lea eax, [esi + 0x470]
mov dword [esi + 0x1d00], 0
mov dword [esi + 0x1cfc], 0x7f7fffff
mov byte [esi + 0x1c9d], 0
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0xc]
xor ecx, ecx
nop dword [eax + eax]
cmp byte [esi + ecx + 0x100], 0
je 0x405f82
movss xmm0, dword [eax]
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x405f7b
xorps xmm0, xmm0
jmp 0x405f85
addss xmm0, dword [esi + 0x18]
jmp 0x405f85
movaps xmm0, xmm2
movss dword [eax], xmm0
inc ecx
add eax, 4
cmp ecx, 0x200
jl 0x405f60
call fcn.0040e6f0
call fcn.00405150
mov eax, dword [esi + 0x2e90]
mov ecx, 0x78
movss xmm1, dword [esi + 0x18]
movaps xmm0, xmm1
subss xmm0, dword [esi + eax*4 + 0x2cb0]
addss xmm0, dword [esi + 0x2e94]
movss dword [esi + 0x2e94], xmm0
movss dword [esi + eax*4 + 0x2cb0], xmm1
mov eax, dword [esi + 0x2e90]
inc eax
movss xmm0, dword [esi + 0x2e94]
cdq
idiv ecx
comiss xmm0, dword [0x440724]
mov dword [esi + 0x2e90], edx
jbe 0x40600b
divss xmm0, dword [0x440844]
movss xmm1, dword [0x440798]
divss xmm1, xmm0
jmp 0x406013
movss xmm1, dword [0x440870]
movss dword [esi + 0x380], xmm1
call fcn.00404f10
call fcn.00405730
mov edi, dword [0x44f560]
mov edx, dword [edi + 0x1a64]
sub edx, 1
js 0x406060
mov eax, dword [edi + 0x1a6c]
lea ecx, [edx + edx*8]
lea eax, [eax + ecx*4]
add eax, 4
mov ecx, dword [eax]
test ecx, ecx
je 0x406058
test dword [ecx + 8], 0x8000000
jne 0x40616c
sub eax, 0x24
sub edx, 1
jns 0x406045
cmp dword [esi + 0x1b24], 0
xorps xmm6, xmm6
je 0x40607d
movss xmm0, dword [esi + 0x1b34]
comiss xmm0, xmm6
ja 0x40616f
movss xmm0, dword [esi + 0x18]
mulss xmm0, dword [0x440818]
movss xmm1, dword [esi + 0x1c20]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [esi + 0x1c20], xmm1
mov dword [esi + 0x1c98], 0
mov dword [esi + 0x2ea0], 0xffffffff
mov dword [esi + 0x2e9c], 0xffffffff
mov dword [esi + 0x2e98], 0xffffffff
mov dword [esi + 0x2c58], 0x3f800000
mov dword [esi + 0x2c5c], 0x3f800000
call fcn.004054f0
cmp dword [esi + 0x19fc], 0
jne 0x4061a2
mov ecx, dword [esi + 0x1ae8]
test ecx, ecx
je 0x4061a2
cmp byte [ecx + 0x76], 0
je 0x4061a2
test dword [ecx + 8], 0x40000
jne 0x4061a2
cmp byte [esi + 0xfc], 0
jne 0x4061a2
mov eax, dword [edi + 0x34]
test eax, eax
js 0x4061a2
movss xmm0, dword [edi + eax*4 + 0x470]
ucomiss xmm0, xmm6
lahf
test ah, 0x44
jp 0x4061a2
cmp dword [esi + 0x1aec], 0
je 0x406191
mov eax, dword [esi + 0x1b40]
cmp eax, 0x7fffffff
je 0x406191
xor edi, edi
mov edx, 2
cmp byte [esi + 0xfd], 0
cmovne edx, edi
add edx, eax
mov dword [ecx + 0x338], edx
jmp 0x4061a2
xorps xmm6, xmm6
movss xmm1, dword [esi + 0x18]
mulss xmm1, dword [0x440800]
addss xmm1, dword [esi + 0x1c20]
minss xmm1, dword [0x440798]
jmp 0x40609a
movzx eax, byte [esi + 0xfd]
neg eax
sbb eax, eax
mov dword [ecx + 0x338], eax
xor edx, edx
mov dword [esi + 0x1b40], 0x7fffffff
cmp dword [esi + 0x199c], edx
je 0x4061d6
mov eax, dword [esi + 0x19a4]
mov ecx, dword [eax + edx*4]
inc edx
mov al, byte [ecx + 0x76]
mov byte [ecx + 0x77], al
mov byte [ecx + 0x76], 0
mov byte [ecx + 0x78], 0
cmp edx, dword [esi + 0x199c]
jne 0x4061b6
mov eax, dword [esi + 0x1ae8]
test eax, eax
je 0x4061eb
cmp byte [eax + 0x77], 0
jne 0x4061eb
call fcn.0040c400
mov ecx, dword [esi + 0x19c4]
test ecx, ecx
jns 0x406211
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [esi + 0x19c0]
call fcn.00412bb0
mov dword [esi + 0x19c0], 0
mov ecx, dword [esi + 0x1a74]
test ecx, ecx
jns 0x406241
mov eax, ecx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, ecx
lea ecx, [esi + 0x1a70]
test eax, eax
cmovg edx, eax
push edx
call fcn.00412f00
mov dword [esi + 0x1a70], 0
mov ecx, dword [esi + 0x1ae8]
call fcn.0040d1e0
mov eax, dword [0x44f560]
xor edx, edx
push 0
mov ecx, str.DebugDefault
mov dword [eax + 0x1aa8], 0x43c80000
mov dword [eax + 0x1aac], 0x43c80000
mov dword [eax + 0x1a80], 4
call fcn.00408ca0
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret