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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x44
push ebx
mov ebx, eax
mov eax, dword [0x940b38]
test eax, eax
push esi
push edi
je 0x408dec
mov edi, dword [0x940b30]
mov edx, dword [0x940b28]
mov eax, dword [0x940b34]
mov ecx, dword [0x940b2c]
sub edi, edx
sub eax, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
jmp 0x408e03
mov eax, dword [0x940b3c]
mov ecx, dword [0x940b40]
mov dword [esp + 0x18], eax
mov edi, eax
mov dword [esp + 0x14], ecx
mov eax, ecx
cvtsi2ss xmm1, eax
lea eax, [ebx + 0x110]
push eax
push 0
cvtsi2ss xmm0, edi
push 0
movss dword [ebx + 0x120], xmm0
movss dword [ebx + 0x12c], xmm1
movss dword [ebx + 0x130], xmm0
movss dword [ebx + 0x124], xmm1
movss dword [ebx + 0x11c], xmm0
movss dword [ebx + 0x128], xmm1
movss dword [ebx + 0x134], xmm0
movss dword [ebx + 0x138], xmm1
mov ecx, dword [0x80edd8]
mov edx, dword [ecx]
push 0
push ecx
mov dword [esp + 0x54], eax
call dword [edx + 0x48]
mov eax, dword [0x80edd8]
mov ecx, dword [eax]
lea esi, [ebx + 0x114]
push esi
push eax
mov dword [esp + 0x44], esi
call dword [ecx + 0xa0]
mov eax, dword [esi]
mov dword [ebx + 0xd8], eax
mov edx, dword [eax]
push eax
call dword [edx + 4]
mov edx, dword [esp + 0x14]
push 0
lea esi, [ebx + 0x44]
push esi
push 0
push 0x15
push 1
push 1
push edx
mov dword [esi], 0
mov eax, dword [0x80edd8]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x5c]
mov esi, dword [esi]
test esi, esi
je 0x408ec9
mov eax, dword [esi]
lea ecx, [ebx + 0xb0]
push ecx
push 0
push esi
call dword [eax + 0x48]
mov ecx, dword [esp + 0x14]
push 0
lea esi, [ebx + 0x78]
push esi
push 0
push 0x15
push 1
push 1
push ecx
mov dword [esi], 0
mov eax, dword [0x80edd8]
mov edx, dword [eax]
push edi
push eax
call dword [edx + 0x5c]
mov esi, dword [esi]
test esi, esi
je 0x408f2f
mov edx, dword [esi]
lea edi, [ebx + 0xe4]
push edi
push 0
push esi
call dword [edx + 0x48]
mov eax, dword [edi]
push eax
xor edi, edi
mov esi, 0x85ec00
call fcn.00408230
mov eax, dword [0x80edd8]
mov ecx, dword [eax]
push edi
push 0x3f800000
push edi
push 1
push edi
push edi
push eax
call dword [ecx + 0xac]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0
lea esi, [ebx + 0x7c]
push esi
push 0
push 0x15
push 1
push 1
push ecx
mov dword [esi], 0
mov eax, dword [0x80edd8]
mov edx, dword [eax]
push edi
push eax
call dword [edx + 0x5c]
mov esi, dword [esi]
test esi, esi
je 0x408f96
mov edx, dword [esi]
lea edi, [ebx + 0xe8]
push edi
push 0
push esi
call dword [edx + 0x48]
mov eax, dword [edi]
push eax
xor edi, edi
mov esi, 0x85ec00
call fcn.00408230
mov eax, dword [0x80edd8]
mov ecx, dword [eax]
push edi
push 0x3f800000
push 0xffffffffffffffff
push 1
push edi
push edi
push eax
call dword [ecx + 0xac]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0
lea esi, [ebx + 0x80]
push esi
push 0
push 0x15
push 1
push 1
push ecx
mov dword [esi], 0
mov eax, dword [0x80edd8]
mov edx, dword [eax]
push edi
push eax
call dword [edx + 0x5c]
mov esi, dword [esi]
test esi, esi
je 0x409003
mov edx, dword [esi]
lea edi, [ebx + 0xec]
push edi
push 0
push esi
call dword [edx + 0x48]
mov eax, dword [edi]
push eax
xor edi, edi
mov esi, 0x85ec00
call fcn.00408230
mov eax, dword [0x80edd8]
mov ecx, dword [eax]
push edi
push 0x3f800000
push 0xffffff
push 1
push edi
push edi
push eax
call dword [ecx + 0xac]
mov edi, dword [esp + 0x18]
push 0
lea esi, [ebx + 0x40]
push esi
push 1
push 0x1c
push 0
push 1
push 0x40
push 0x40
mov dword [esi], 0
mov eax, dword [0x80edd8]
mov edx, dword [eax]
push 0x40
push eax
mov dword [esp + 0x58], 8
call dword [edx + 0x60]
cmp dword [esi], 0
jne 0x409059
mov eax, dword [0x80edd8]
mov ecx, dword [eax]
push 0
push esi
push 1
push 0x15
push 0
push 1
push 0x40
push 0x40
push 0x40
push eax
mov dword [esp + 0x58], 0x20
call dword [ecx + 0x60]
mov esi, dword [esi]
test esi, esi
je 0x4091cc
mov edx, dword [esi]
push 0
push 0
lea eax, [esp + 0x4c]
push eax
push 0
push esi
call dword [edx + 0x4c]
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x1c], 0
cvtsi2ss xmm0, dword [esp + 0x1c]
subss xmm0, dword [0x738dd0]
xor edi, edi
movaps xmm1, xmm0
mulss xmm1, xmm0
mov dword [esp + 0x24], edi
movss dword [esp + 0x34], xmm1
jmp 0x4090b0
movss xmm1, dword [esp + 0x34]
lea esp, [esp]
cvtsi2ss xmm0, edi
subss xmm0, dword [0x738dd0]
movaps xmm2, xmm0
mulss xmm2, xmm0
addss xmm2, xmm1
mov dword [esp + 0x20], 0
movss dword [esp + 0x38], xmm2
jmp 0x4090e0
fild dword [esp + 0x20]
fsub dword [0x738dd0]
fld st(0)
fmulp st(1)
fadd dword [esp + 0x38]
fsqrt
fmul dword [0x738dcc]
fst dword [esp + 0x28]
fld dword [0x738a54]
fcompi st(1)
fstp st(0)
jbe 0x40910f
xorps xmm0, xmm0
jmp 0x409128
movss xmm1, dword [0x7389bc]
movss xmm0, dword [esp + 0x28]
comiss xmm0, xmm1
movss dword [esp + 0x2c], xmm1
ja 0x40912e
movss dword [esp + 0x2c], xmm0
fld dword [esp + 0x2c]
fmul dword [0x7389b8]
fsubr dword [0x7389b8]
call fcn.00686364
cmp dword [esp + 0x30], 0x20
mov ecx, dword [esp + 0x44]
jne 0x409174
mov edx, dword [esp + 0x48]
imul ecx, edi
imul edx, dword [esp + 0x1c]
add ecx, edx
mov edx, dword [esp + 0x20]
lea ecx, [ecx + edx*4]
mov byte [ecx + esi], al
mov byte [ecx + esi + 1], al
mov byte [ecx + esi + 2], al
mov byte [ecx + esi + 3], al
jmp 0x40918b
mov edx, dword [esp + 0x20]
imul ecx, edi
mov edi, dword [esp + 0x48]
imul edi, dword [esp + 0x1c]
add ecx, edx
add edi, ecx
mov byte [edi + esi], al
mov edi, dword [esp + 0x24]
inc edx
cmp edx, 0x40
mov dword [esp + 0x20], edx
jl 0x4090e0
inc edi
cmp edi, 0x40
mov dword [esp + 0x24], edi
jl 0x4090a3
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 0x40
mov dword [esp + 0x1c], eax
jl 0x409080
mov eax, dword [ebx + 0x40]
mov edx, dword [eax]
push 0
push eax
call dword [edx + 0x50]
mov edi, dword [esp + 0x18]
fld dword [ebx + 0x138]
push 0
fmul dword [0x738a1c]
lea eax, [ebx + 0x48]
push eax
push 0
mov dword [eax], 0
mov ecx, dword [0x80edd8]
mov esi, dword [ecx]
push 0x15
push 1
push 1
call fcn.00686364
fld dword [ebx + 0x134]
fmul dword [0x738a1c]
push eax
call fcn.00686364
mov edx, dword [0x80edd8]
push eax
push edx
call dword [esi + 0x5c]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x40922c
mov ecx, dword [eax]
lea edx, [ebx + 0xb4]
push edx
push 0
push eax
call dword [ecx + 0x48]
fld dword [ebx + 0x138]
push 0
fmul dword [0x738a30]
lea eax, [ebx + 0x4c]
push eax
push 0
mov dword [eax], 0
mov ecx, dword [0x80edd8]
mov esi, dword [ecx]
push 0x15
push 1
push 1
call fcn.00686364
fld dword [ebx + 0x134]
fmul dword [0x738a30]
push eax
call fcn.00686364
mov edx, dword [0x80edd8]
push eax
push edx
call dword [esi + 0x5c]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x40928c
mov ecx, dword [eax]
lea edx, [ebx + 0xb8]
push edx
push 0
push eax
call dword [ecx + 0x48]
fld dword [ebx + 0x138]
push 0
fmul dword [0x738a7c]
lea eax, [ebx + 0x50]
push eax
push 0
mov dword [eax], 0
mov ecx, dword [0x80edd8]
mov esi, dword [ecx]
push 0x15
push 1
push 1
call fcn.00686364
fld dword [ebx + 0x134]
fmul dword [0x738a7c]
push eax
call fcn.00686364
mov edx, dword [0x80edd8]
push eax
push edx
call dword [esi + 0x5c]
mov eax, dword [ebx + 0x50]
test eax, eax
je 0x4092ec
mov ecx, dword [eax]
lea edx, [ebx + 0xbc]
push edx
push 0
push eax
call dword [ecx + 0x48]
fld dword [ebx + 0x138]
push 0
fmul dword [0x738a7c]
lea eax, [ebx + 0x54]
push eax
push 0
mov dword [eax], 0
mov ecx, dword [0x80edd8]
mov esi, dword [ecx]
push 0x15
push 1
push 1
call fcn.00686364
fld dword [ebx + 0x134]
fmul dword [0x738a7c]
push eax
call fcn.00686364
mov edx, dword [0x80edd8]
push eax
push edx
call dword [esi + 0x5c]
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x40934c
mov ecx, dword [eax]
lea edx, [ebx + 0xc0]
push edx
push 0
push eax
call dword [ecx + 0x48]
mov edx, dword [esp + 0x14]
push 0
lea esi, [ebx + 0x58]
push esi
push 0
push 0x15
push 1
push 1
push edx
mov dword [ebx + 0x70], 0
mov dword [esi], 0
mov eax, dword [0x80edd8]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x5c]
mov eax, dword [esi]
test eax, eax
je 0x40938d
mov ecx, dword [eax]
lea edx, [ebx + 0xc4]
push edx
push 0
push eax
call dword [ecx + 0x48]
mov eax, dword [0x7caaf8]
mov ecx, eax
shl eax, 2
mov edx, dword [eax + 0x7c5cd8]
push 0
mov dword [0x7caaf8], edx
mov edx, dword [esi]
lea esi, [ebx + 0x74]
push esi
push 0
push 0x15
push 1
push 1
mov dword [eax + 0x7c5cd8], edx
push 0x80
mov dword [ebx + 0x190], ecx
mov dword [esi], 0
mov eax, dword [0x80edd8]
mov ecx, dword [eax]
push 0x80
push eax
call dword [ecx + 0x5c]
mov eax, dword [esi]
test eax, eax
je 0x4093ef
mov edx, dword [eax]
lea ecx, [ebx + 0xe0]
push ecx
push 0
push eax
call dword [edx + 0x48]
mov eax, dword [0x7caaf8]
mov ecx, eax
shl eax, 2
mov edx, dword [eax + 0x7c5cd8]
push 0
mov dword [0x7caaf8], edx
mov edx, dword [esi]
mov dword [eax + 0x7c5cd8], edx
fld dword [ebx + 0x138]
fmul dword [0x738a7c]
lea esi, [ebx + 0x5c]
push esi
push 0
mov dword [ebx + 0x194], ecx
push 0x15
mov dword [esi], 0
mov eax, dword [0x80edd8]
mov edi, dword [eax]
push 1
push 1
call fcn.00686364
fld dword [ebx + 0x134]
fmul dword [0x738a7c]
push eax
call fcn.00686364
mov ecx, dword [0x80edd8]
push eax
push ecx
call dword [edi + 0x5c]
mov esi, dword [esi]
test esi, esi
je 0x4094e8
mov edx, dword [esi]
lea edi, [ebx + 0xc8]
push edi
push 0
push esi
call dword [edx + 0x48]
mov eax, dword [0x85ec20]
mov esi, dword [edi]
cmp esi, dword [eax*4 + 0x85ec00]
jne 0x409490
mov ecx, dword [eax*4 + 0x85ec10]
test ecx, ecx
je 0x4094ce
mov eax, dword [0x80edd8]
mov ecx, dword [eax]
push esi
push 0
push eax
call dword [ecx + 0x94]
mov eax, dword [0x80edd8]
mov edx, dword [eax]
push 0
push eax
call dword [edx + 0x9c]
mov eax, dword [0x85ec20]
mov dword [eax*4 + 0x85ec00], esi
mov ecx, dword [0x85ec20]
mov dword [ecx*4 + 0x85ec10], 0
mov eax, dword [0x80edd8]
mov edx, dword [eax]
push 0
push 0
push 0
push 1
push 0
push 0
push eax
call dword [edx + 0xac]
add ebx, 0x84
mov esi, 8
push 0
push ebx
push 0
push 0x15
push 1
push 1
push 0x100
mov dword [ebx], 0
mov eax, dword [0x80edd8]
mov ecx, dword [eax]
push 0x100
push eax
call dword [ecx + 0x5c]
mov eax, dword [ebx]
test eax, eax
je 0x40952b
mov edx, dword [eax]
lea ecx, [ebx + 0x6c]
push ecx
push 0
push eax
call dword [edx + 0x48]
add ebx, 4
dec esi
jne 0x4094f3
mov eax, dword [esp + 0x40]
mov esi, dword [eax]
mov eax, dword [0x85ec20]
cmp esi, dword [eax*4 + 0x85ec00]
mov edx, dword [esp + 0x3c]
mov edi, dword [edx]
jne 0x409554
cmp edi, dword [eax*4 + 0x85ec10]
je 0x40958d
mov eax, dword [0x80edd8]
mov ecx, dword [eax]
push esi
push 0
push eax
call dword [ecx + 0x94]
mov eax, dword [0x80edd8]
mov edx, dword [eax]
push edi
push eax
call dword [edx + 0x9c]
mov eax, dword [0x85ec20]
mov dword [eax*4 + 0x85ec00], esi
mov ecx, dword [0x85ec20]
mov dword [ecx*4 + 0x85ec10], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret