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

Disassembly:
push ebp
sub esp, 0x48
mov ebp, dword [esp + 0x78]
mov eax, dword [eax]
dec eax
mov dword [ebp], 0
test eax, eax
jle 0x4061ee
mov ebp, 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x30]
lea eax, [esp + 0x28]
mov esi, dword [esp + 0x34]
lea ebx, [ebx + ebp*4]
lea ecx, [ebx - 4]
mov dword [esp + 0x38], ecx
push eax
lea edx, [esp + 0x28]
push edx
push ebx
lea esi, [esi + ebp*4]
push esi
push ecx
lea edi, [esi - 4]
push edi
push dword [esp + 0x88]
push dword [esp + 0x88]
lea eax, [esp + 0x40]
push eax
call fcn.004085e0
cmp dword [esp + 0x20], 0
je 0x405f9e
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x2c]
push ecx
push dword [esp + 0x7c]
push dword [esp + 0x7c]
call fcn.00408530
movss xmm2, dword [esp + 0x14]
jmp 0x4060a4
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x3c]
push edi
push dword [esp + 0x7c]
push dword [esp + 0x7c]
call fcn.00408530
mov eax, dword [esp + 0x5c]
mov edx, dword [eax]
test edx, edx
jle 0x40601e
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], ebp
movss xmm2, dword [0x49f630]
movss xmm0, dword [eax + ebp*4 - 4]
mov eax, 1
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x64]
mov edi, dword [esp + 0x60]
movaps xmm1, xmm0
subss xmm1, dword [edi + eax*4 - 4]
andps xmm1, xmmword [0x49f480]
comiss xmm2, xmm1
jbe 0x406015
movss xmm1, dword [ecx]
subss xmm1, dword [ebp + eax*4 - 4]
andps xmm1, xmmword [0x49f480]
comiss xmm2, xmm1
ja 0x4061f5
inc eax
cmp eax, edx
jle 0x405fe6
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push ebx
push esi
push dword [esp + 0x7c]
push dword [esp + 0x7c]
call fcn.00408530
mov eax, dword [esp + 0x5c]
mov edx, dword [eax]
test edx, edx
jle 0x40608e
mov eax, dword [esp + 0x34]
movss xmm2, dword [0x49f630]
mov ecx, dword [esp + 0x64]
mov esi, dword [esp + 0x60]
movss xmm0, dword [eax + ebp*4]
mov eax, 1
movaps xmm1, xmm0
subss xmm1, dword [esi + eax*4 - 4]
andps xmm1, xmmword [0x49f480]
comiss xmm2, xmm1
jbe 0x406089
movss xmm1, dword [ebx]
subss xmm1, dword [ecx + eax*4 - 4]
andps xmm1, xmmword [0x49f480]
comiss xmm2, xmm1
ja 0x406249
inc eax
cmp eax, edx
jle 0x40605a
movss xmm0, dword [esp + 0x1c]
movss xmm2, dword [esp + 0x18]
minss xmm2, xmm0
movss dword [esp + 0x14], xmm2
mov eax, dword [esp + 0x74]
movaps xmm1, xmm2
movss xmm0, dword [0x49f638]
subss xmm1, dword [eax]
andps xmm1, xmmword [0x49f480]
comiss xmm0, xmm1
jbe 0x4061d8
mov eax, dword [esp + 0x78]
mov edi, dword [eax]
test edi, edi
je 0x40618e
cmp dword [esp + 0x20], 0
je 0x4060ee
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x3c], eax
mov dword [esp + 0xc], edx
jmp 0x406115
movss xmm0, dword [esp + 0x18]
ucomiss xmm0, xmm2
jp 0x4060ff
je 0x40621a
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [eax + ebp*4]
mov ebx, dword [ecx + ebp*4]
mov dword [esp + 0x3c], edx
mov dword [esp + 0xc], ebx
movss xmm1, dword [0x49f63c]
test edi, edi
jle 0x40617b
mov eax, 1
movss dword [esp + 0x44], xmm1
lea ebx, [esp + 0xc]
mov dword [esp + 0x10], ebp
lea esi, [esp + 0x40]
mov ebp, eax
push esi
lea edx, [ebp*4 + 0x4d991c]
push edx
lea ecx, [ebp*4 + 0x4d9abc]
push ecx
push ebx
lea edx, [esp + 0x4c]
push edx
call fcn.00408530
movss xmm1, dword [esp + 0x40]
inc ebp
movss xmm0, dword [esp + 0x44]
cmp ebp, edi
minss xmm1, xmm0
movss dword [esp + 0x44], xmm1
jle 0x40613a
movss xmm1, dword [esp + 0x44]
mov ebp, dword [esp + 0x10]
movss xmm0, dword [0x49f640]
comiss xmm0, xmm1
ja 0x4061d8
mov eax, dword [esp + 0x78]
mov edi, dword [eax]
mov eax, dword [esp + 0x78]
inc edi
cmp dword [esp + 0x20], 0
mov dword [eax], edi
je 0x4061a6
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
jmp 0x4061ca
movss xmm0, dword [esp + 0x18]
movaps xmm1, xmm0
minss xmm1, dword [esp + 0x1c]
ucomiss xmm0, xmm1
jp 0x4061bc
je 0x406237
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [eax + ebp*4]
mov edx, dword [edx + ebp*4]
mov dword [edi*4 + 0x4d9abc], eax
mov dword [edi*4 + 0x4d991c], edx
inc ebp
cmp ebp, dword [esp + 0x2c]
jle 0x405f32
mov esi, dword [esp]
mov edi, dword [esp + 4]
mov ebx, dword [esp + 8]
add esp, 0x48
pop ebp
ret 0x2c
mov ebp, dword [esp + 0x10]
test eax, eax
je 0x40601e
mov edx, dword [esp + 0x68]
cmp eax, dword [edx]
je 0x40601e
mov dword [esp + 0x18], 0x461c3c00
jmp 0x40601e
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [eax + ebp*4 - 4]
mov ebx, dword [ecx + ebp*4 - 4]
mov dword [esp + 0x3c], edx
mov dword [esp + 0xc], ebx
jmp 0x406115
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [eax + ebp*4 - 4]
mov edx, dword [edx + ebp*4 - 4]
jmp 0x4061ca
test eax, eax
je 0x40608e
mov edx, dword [esp + 0x68]
cmp eax, dword [edx]
je 0x40608e
mov dword [esp + 0x1c], 0x461c3c00
movss xmm0, dword [0x49f634]
jmp 0x406094