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

Disassembly:
sub esp, 0x458
mov edx, dword [esp + 0x45c]
push ebx
push ebp
mov eax, 6
push esi
xor ecx, ecx
push edi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
xor edi, edi
cmp dword [edx], ecx
mov ebx, 1
mov eax, ecx
mov esi, ecx
mov ebp, ecx
mov dword [esp + 0x58], 8
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebp
jle 0x405ea8
add edx, 4
fld dword [edx]
fstp qword [eax*8 + 0x4b2c28]
fld dword [edx]
inc eax
fstp qword [esi*8 + 0x4b2da8]
fld dword [edx]
fcomp qword [0x45a878]
mov dword [esp + 0x14], eax
inc esi
fnstsw ax
test ah, 0x44
jnp 0x405e3d
fld dword [edx]
mov eax, dword [esp + 0x1c]
fstp qword [eax*8 + 0x4b2f28]
inc eax
mov dword [esp + 0x1c], eax
fld dword [edx]
fcomp qword [0x45a898]
fnstsw ax
test ah, 0x44
jnp 0x405e56
fld dword [edx]
fstp qword [ebp*8 + 0x4b30a8]
inc ebp
fld dword [edx]
fcomp qword [0x45a878]
fnstsw ax
test ah, 0x44
jnp 0x405e7e
fld dword [edx]
fcomp qword [0x45a898]
fnstsw ax
test ah, 0x44
jnp 0x405e7e
fld dword [edx]
fstp qword [ecx*8 + 0x4b3228]
inc ecx
mov eax, dword [esp + 0x46c]
inc edi
add edx, 4
cmp edi, dword [eax]
mov eax, dword [esp + 0x14]
jl 0x405e04
mov edx, dword [esp + 0x46c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], esi
mov edi, dword [edx + 0xc4]
test edi, edi
je 0x405ebe
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x28], ebx
cmp eax, edi
jne 0x405ec6
mov dword [esp + 0x28], 0
xor edi, edi
cmp dword [edx + 0xc8], edi
je 0x405ed8
cmp eax, ebp
mov dword [esp + 0x2c], ebx
jne 0x405edc
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x1c]
xor edx, edx
cmp ebx, esi
mov ebx, 0x4b2c28
setne dl
xor eax, eax
cmp ebp, esi
mov dword [esp + 0x38], edx
setne al
xor edx, edx
cmp ecx, esi
mov dword [esp + 0x3c], eax
lea eax, [esp + 0xa8]
setne dl
mov dword [esp + 0x40], edx
mov dword [esp + 0x10], eax
xor esi, esi
mov eax, dword [esp + esi + 0x30]
test eax, eax
je 0x405fab
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + esi + 0x14]
mov eax, dword [esp + esi + 0x58]
lea ebp, [esp + edi + 0x80]
push ecx
push ebp
push ebx
push edx
push eax
call fcn.004060d0
mov eax, dword [esp + 0x3c]
add esp, 0x14
fstp qword [edi + 0x4b5b98]
mov ecx, 1
test eax, eax
mov dword [esp + esi + 0x30], ecx
je 0x405f83
mov eax, dword [esp + esi + 0x6c]
test eax, eax
jne 0x405f83
cmp dword [ebp], 0
je 0x405f7b
mov eax, dword [esp + edi + 0x84]
test eax, eax
je 0x405f7b
xor eax, eax
jmp 0x405f7d
mov eax, ecx
and eax, ecx
mov dword [esp + esi + 0x30], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x405fab
mov eax, dword [esp + esi + 0x44]
test eax, eax
jne 0x405fab
cmp dword [ebp], ecx
je 0x405fa5
cmp dword [esp + edi + 0x84], ecx
je 0x405fa5
xor eax, eax
jmp 0x405fa7
mov eax, ecx
and dword [esp + esi + 0x30], eax
mov eax, dword [esp + 0x10]
add ebx, 0x180
add eax, 0xc0
add edi, 8
add esi, 4
cmp ebx, 0x4b33a8
mov dword [esp + 0x10], eax
jl 0x405f1b
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x30]
test eax, eax
jne 0x405fe0
inc ecx
cmp ecx, 5
jl 0x405fd2
mov edx, ecx
inc ecx
cmp ecx, 5
jge 0x40601b
lea edi, [edx*8]
mov eax, dword [esp + ecx*4 + 0x30]
test eax, eax
je 0x406015
lea esi, [ecx*8]
fld qword [esi + 0x4b5b98]
fcomp qword [edi + 0x4b5b98]
fnstsw ax
test ah, 5
jp 0x406015
mov edx, ecx
mov edi, esi
inc ecx
cmp ecx, 5
jl 0x405fef
mov ecx, dword [esp + 0x46c]
mov eax, dword [esp + edx*4 + 0x58]
xor edi, edi
xor esi, esi
mov dword [ecx + 0xcc], eax
mov eax, dword [esp + edx*8 + 0x80]
mov dword [ecx + 0xd0], eax
mov eax, dword [esp + edx*8 + 0x84]
mov dword [ecx + 0xd4], eax
mov eax, dword [ecx]
test eax, eax
jle 0x4060bd
add ecx, 0xd8
fld dword [ecx - 0xd4]
fcomp qword [0x45a878]
fnstsw ax
test ah, 0x44
jp 0x406079
mov eax, dword [esp + edx*4 + 0x6c]
test eax, eax
je 0x406079
mov dword [ecx], 6
jmp 0x4060ae
fld dword [ecx - 0xd4]
fcomp qword [0x45a898]
fnstsw ax
test ah, 0x44
jp 0x40609c
mov eax, dword [esp + edx*4 + 0x44]
test eax, eax
je 0x40609c
mov dword [ecx], 7
jmp 0x4060ae
lea eax, [edx + edx*2]
shl eax, 4
add eax, edi
inc edi
mov eax, dword [esp + eax*4 + 0xa8]
mov dword [ecx], eax
mov eax, dword [esp + 0x46c]
inc esi
add ecx, 4
cmp esi, dword [eax]
jl 0x406056
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x458
ret