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

Disassembly:
push ebp
mov ebp, eax
push edi
push esi
push ebx
sub esp, 0xbc
mov eax, dword [0x458020]
mov dword [esp + 0xac], eax
xor eax, eax
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
lea eax, [ebx + ebx*4]
mov dword [esp + 0x80], ebx
shl eax, 2
mov dword [esp + 0x8c], ecx
mov ecx, dword [ebp + 0xc]
lea edx, [eax + 0x4516c0]
mov edi, dword [eax + 0x4516c0]
mov eax, dword [ebp + 8]
mov ebx, dword [edx + 4]
mov dword [esp + 0x78], ecx
mov dword [ebp + 0x18], edi
cmp eax, ecx
mov dword [esp + 0x7c], eax
mov dword [ebp + 0x30], ebx
jbe 0x40309c
mov dword [esp + 0x1c], ecx
imul eax, edi
movss xmm0, dword [esp + 0x1c]
movlps qword [esp + 0x98], xmm0
movss xmm0, dword [esp + 0x7c]
fild qword [esp + 0x98]
fmul dword [edx + 8]
xor edx, edx
movlps qword [esp + 0x98], xmm0
div ecx
fild qword [esp + 0x98]
fdivp st(1)
fstp dword [ebp + 0x2c]
sub eax, 1
and eax, 0xfffffff8
lea edi, [eax + 8]
lea eax, [ecx + ecx]
mov dword [ebp + 0x18], edi
cmp dword [esp + 0x7c], eax
jbe 0x402c46
shr ebx, 1
mov dword [ebp + 0x30], ebx
lea eax, [ecx*4]
cmp dword [esp + 0x7c], eax
jbe 0x402c58
shr ebx, 1
mov dword [ebp + 0x30], ebx
lea eax, [ecx*8]
cmp dword [esp + 0x7c], eax
jbe 0x402c6a
shr ebx, 1
mov dword [ebp + 0x30], ebx
mov eax, ecx
shl eax, 4
cmp dword [esp + 0x7c], eax
jbe 0x402c7a
shr ebx, 1
mov dword [ebp + 0x30], ebx
test ebx, ebx
je 0x403231
lea eax, [ebx + 8]
shl eax, 4
cmp ecx, eax
ja 0x4030a7
mov eax, dword [ebp + 0x4c]
test eax, eax
je 0x403603
mov edx, edi
imul edx, ecx
cmp dword [ebp + 0x50], edx
jb 0x4034e8
mov eax, dword [esp + 0x78]
test eax, eax
je 0x402e5d
movss xmm0, dword [esp + 0x78]
mov dword [esp + 0x94], edi
mov eax, edi
shr eax, 0x1f
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x70], 0
movlps qword [esp + 0x98], xmm0
add eax, edi
fild qword [esp + 0x98]
sar eax, 1
mov dword [esp + 0x74], 0
fld1
neg eax
fdivr st(1), st(0)
fxch st(1)
mov dword [esp + 0x84], eax
lea eax, [ecx + ecx*4]
shl eax, 2
mov dword [esp + 0x90], eax
fstp dword [esp + 0x88]
fild dword [esp + 0x94]
fld st(0)
fmul dword [0x45182c]
fxch st(1)
fdivp st(2)
fxch st(1)
fadd st(0)
fstp qword [esp + 0x68]
nop
test edi, edi
je 0x402e44
mov ebx, dword [esp + 0x90]
xor eax, eax
mov esi, dword [esp + 0x84]
mov ecx, dword [ebp + 0x4c]
movss xmm0, dword [esp + 0x74]
mov ebx, dword [ebx + 0x4516d0]
movlps qword [esp + 0x98], xmm0
lea edx, [esi + 1]
mov esi, ebp
fild qword [esp + 0x98]
mov ebp, ecx
mov ecx, esi
fmul dword [esp + 0x88]
mov dword [esp + 0x60], ebx
xor ebx, ebx
jmp 0x402def
fld st(1)
mov eax, dword [esp + 0x60]
mov dword [esp + 0x3c], edx
fmul st(1)
mov dword [esp + 0x40], ecx
fld qword [0x451858]
fmulp st(1)
fld st(0)
fsin
fmulp st(2)
fdivp st(1)
fld qword [esp + 0x68]
fmulp st(2)
fxch st(1)
fabs
fstp dword [esp]
fstp qword [esp + 0x30]
fstp dword [esp + 0x20]
fstp qword [esp + 0x50]
call fcn.00402640
mov edx, dword [esp + 0x3c]
fld qword [esp + 0x30]
fmulp st(1)
mov ecx, dword [esp + 0x40]
fld dword [esp + 0x20]
fld qword [esp + 0x50]
fxch st(2)
jmp 0x402de4
fstp st(0)
fstp st(1)
add ebx, 1
fstp dword [esi]
cmp ebx, edi
mov eax, ebx
je 0x402e40
add eax, dword [esp + 0x70]
lea esi, [ebp + eax*4]
lea eax, [edx + ebx]
mov dword [esp + 0x94], eax
fild dword [esp + 0x94]
fsub st(1)
fld dword [ecx + 0x2c]
fld st(1)
fabs
fld qword [0x451850]
fcompi st(1)
ja 0x402de0
fcompi st(4)
jbe 0x402d80
fstp st(0)
fstp st(0)
fldz
add ebx, 1
cmp ebx, edi
fstp dword [esi]
mov eax, ebx
jne 0x402def
fstp st(0)
jmp 0x402e42
fstp st(0)
mov ebp, ecx
add dword [esp + 0x74], 1
mov ecx, dword [esp + 0x78]
add dword [esp + 0x70], edi
cmp dword [esp + 0x74], ecx
jne 0x402d30
fstp st(0)
cmp dword [esp + 0x80], 9
mov eax, 0x402280
mov edx, 0x402720
cmovl eax, edx
mov dword [ebp + 0x54], eax
mov eax, dword [esp + 0x7c]
xor edx, edx
div dword [esp + 0x78]
mov dword [ebp + 0x24], eax
mov eax, dword [ebp + 0x48]
mov dword [ebp + 0x28], edx
test eax, eax
mov dword [esp + 0x7c], eax
je 0x403546
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x4033c9
cmp dword [esp + 0x8c], edi
jae 0x40329d
mov eax, dword [ebp + 0x20]
mov ebx, dword [ebp + 0x1c]
lea eax, [edi + eax - 1]
cmp ebx, eax
jb 0x403522
mov eax, dword [ebp + 0x14]
mov edx, eax
sub edx, 1
mov dword [esp + 0x70], edx
js 0x40307e
lea eax, [eax*4 - 4]
mov ecx, dword [esp + 0x8c]
mov esi, dword [ebp + 0x44]
mov dword [esp + 0x60], eax
mov eax, ebx
imul ebx, edx
neg eax
shl eax, 2
sub ecx, 2
mov dword [esp + 0x84], eax
shl ebx, 2
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], ebx
nop
lea esi, [esi]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x8c]
mov ecx, dword [edx + eax]
mov eax, dword [esp + 0x7c]
lea ebx, [ebx + ecx*2]
add eax, ecx
mov dword [esp + 0x68], ebx
js 0x402f5e
mov ebx, dword [esp + 0x70]
mov edx, dword [ebp + 0x48]
mov esi, dword [esp + 0x74]
imul ebx, dword [ebp + 0x1c]
add ebx, ecx
lea ebx, [edx + ebx*4]
add edx, esi
mov esi, esi
lea edi, [edi]
fld dword [edx + eax*4]
fstp dword [ebx + eax*4]
sub eax, 1
cmp eax, 0xffffffff
jne 0x402f50
test ecx, ecx
je 0x402f83
mov ebx, dword [esp + 0x70]
xor edx, edx
xor eax, eax
mov esi, dword [ebp + 0x48]
imul ebx, dword [ebp + 0x1c]
add eax, 1
add edx, ebx
mov dword [esi + edx*4], 0
cmp eax, ecx
mov edx, eax
jne 0x402f71
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x60]
mov dword [edx + eax], 0
mov edi, dword [ebp + 0x18]
cmp dword [esp + 0x68], edi
jae 0x403250
mov edx, dword [esp + 0x68]
sub edx, 1
je 0x4034a3
mov eax, dword [esp + 0x70]
mov dword [esp + 0x88], edi
mov ebx, dword [ebp + 0x48]
imul eax, dword [ebp + 0x1c]
lea ecx, [edi + eax + 0x3ffffffe]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x68]
mov edi, dword [esp + 0x80]
mov dword [esp + 0x80], ebp
lea esi, [ecx + eax + 0x3ffffffe]
xor ecx, ecx
xor eax, eax
mov ebp, esi
nop
lea esi, [esi]
mov esi, ebp
add eax, 1
sub esi, ecx
fld dword [ebx + esi*4]
mov esi, edi
sub esi, ecx
cmp eax, edx
mov ecx, eax
fstp dword [ebx + esi*4]
jne 0x402ff0
mov edi, dword [esp + 0x88]
mov ebp, dword [esp + 0x80]
lea ecx, [edi - 1]
cmp ecx, edx
jbe 0x403052
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x80], ebp
mov esi, dword [ebp + 0x48]
imul ebx, dword [ebp + 0x1c]
nop
mov ebp, edi
add eax, 1
sub ebp, edx
cmp eax, ecx
lea edx, [ebx + ebp + 0x3ffffffe]
mov dword [esi + edx*4], 0
mov edx, eax
jb 0x403030
mov ebp, dword [esp + 0x80]
mov eax, dword [esp + 0x60]
mov edx, edi
sub edx, dword [esp + 0x68]
add eax, dword [ebp + 0x3c]
shr edx, 1
add dword [eax], edx
mov ecx, dword [esp + 0x84]
sub dword [esp + 0x60], 4
add dword [esp + 0x74], ecx
sub dword [esp + 0x70], 1
jns 0x402f10
mov edx, dword [esp + 0xac]
xor edx, dword [0x458020]
jne 0x403675
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
fld dword [edx + 0xc]
fstp dword [ebp + 0x2c]
jmp 0x402c82
mov esi, dword [ebp + 0x4c]
mov edx, edi
imul edx, ebx
test esi, esi
je 0x40362c
lea eax, [edx + 8]
cmp dword [ebp + 0x50], eax
jb 0x4034aa
add edx, 4
cmp edx, 0xfffffffd
jl 0x403213
mov eax, dword [esp + 0x80]
mov dword [esp + 0x1c], ebx
mov ebx, 0xfffffffc
movss xmm0, dword [esp + 0x1c]
mov dword [esp + 0x68], edi
mov dword [esp + 0x74], ecx
movlps qword [esp + 0x98], xmm0
lea eax, [eax + eax*4]
mov eax, dword [eax*4 + 0x4516d0]
mov dword [esp + 0x70], eax
mov eax, edi
shr eax, 1
mov dword [esp + 0x94], eax
fild dword [esp + 0x94]
mov dword [esp + 0x94], edi
mov edi, ebp
fild qword [esp + 0x98]
mov ebp, edx
fld1
fdivr st(1), st(0)
fild dword [esp + 0x94]
fld st(0)
fmul dword [0x45182c]
fxch st(2)
fdivrp st(1)
fadd st(0)
fstp qword [esp + 0x60]
jmp 0x4031bf
fld st(1)
mov eax, dword [esp + 0x70]
fmul st(1)
fld qword [0x451858]
fmulp st(1)
fld st(0)
fsin
fmulp st(2)
fdivp st(1)
fld qword [esp + 0x60]
fmulp st(2)
fxch st(1)
fabs
fstp dword [esp]
fstp qword [esp + 0x30]
fxch st(1)
fstp dword [esp + 0x40]
fxch st(1)
fstp dword [esp + 0x20]
fstp qword [esp + 0x50]
call fcn.00402640
fld qword [esp + 0x30]
fmulp st(1)
fld dword [esp + 0x40]
fld dword [esp + 0x20]
fld qword [esp + 0x50]
fxch st(1)
fxch st(3)
jmp 0x4031b4
fstp st(0)
fstp st(1)
fstp dword [esi + ebx*4 + 0x10]
add ebx, 1
cmp ebx, ebp
je 0x403203
mov dword [esp + 0x94], ebx
fild dword [esp + 0x94]
fmul st(2)
fsub st(3)
fld dword [edi + 0x2c]
fld st(1)
fabs
fld qword [0x451850]
fcompi st(1)
ja 0x4031b0
fcompi st(3)
jbe 0x403150
fstp st(0)
fstp st(0)
fldz
fstp dword [esi + ebx*4 + 0x10]
add ebx, 1
cmp ebx, ebp
jne 0x4031bf
fstp st(0)
fstp st(0)
fstp st(0)
jmp 0x403209
fstp st(0)
fstp st(0)
fstp st(0)
mov ebp, edi
mov ecx, dword [esp + 0x74]
mov edi, dword [esp + 0x68]
cmp dword [esp + 0x80], 8
jle 0x403493
mov dword [ebp + 0x54], 0x402400
mov dword [esp + 0x78], ecx
jmp 0x402e75
mov dword [ebp + 0x30], 1
mov eax, 0x90
mov ebx, 1
jmp 0x402c88
mov esi, dword [esp + 0x68]
sub esi, edi
shr esi, 1
mov dword [edx + eax], esi
mov eax, dword [ebp + 0x18]
lea edi, [esi + eax - 1]
test edi, edi
je 0x403063
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x68], ebp
xor edx, edx
mov ecx, dword [ebp + 0x48]
xor eax, eax
imul ebx, dword [ebp + 0x1c]
mov ebp, ebx
nop
add edx, ebp
add eax, 1
lea ebx, [esi + edx]
cmp eax, edi
fld dword [ecx + ebx*4]
fstp dword [ecx + edx*4]
mov edx, eax
jne 0x403280
mov ebp, dword [esp + 0x68]
jmp 0x403063
jbe 0x40307e
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40307e
mov ebx, dword [ebp + 0x44]
mov dword [esp + 0x68], ebp
xorps xmm1, xmm1
mov dword [esp + 0x60], 0
mov dword [esp + 0x74], ebx
mov ebp, ebx
mov edx, ebx
nop
lea esi, [esi]
mov esi, dword [esp + 0x60]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x68]
mov esi, dword [ebp + esi*4]
mov ebp, dword [esp + 0x8c]
mov dword [esp + 0x78], esi
sub ebp, edi
shr ebp, 1
mov dword [edx + eax*4], ebp
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x70], ebp
lea edi, [esi + eax - 1]
add edi, ebp
je 0x403392
mov eax, dword [esp + 0x60]
mov edx, ebp
mov ebp, edi
mov esi, dword [esp + 0x7c]
shr ebp, 2
imul eax, dword [ecx + 0x1c]
lea ecx, [esi + eax*4]
add edx, eax
lea ebx, [esi + edx*4]
lea eax, [ebx + 0x10]
lea esi, [ecx + 0x10]
cmp ecx, eax
setae byte [esp + 0x80]
cmp ebx, esi
lea edx, [ebp*4]
setae al
or byte [esp + 0x80], al
cmp edi, 0xb
seta al
test byte [esp + 0x80], al
je 0x40365f
test edx, edx
je 0x40365f
xor eax, eax
xor esi, esi
movaps xmm0, xmm1
add esi, 1
movlps xmm0, qword [ebx + eax]
movhps xmm0, qword [ebx + eax + 8]
movlps qword [ecx + eax], xmm0
movhps qword [ecx + eax + 8], xmm0
add eax, 0x10
cmp ebp, esi
ja 0x403362
cmp edi, edx
je 0x403392
fld dword [ebx + edx*4]
fstp dword [ecx + edx*4]
add edx, 1
cmp edi, edx
ja 0x403385
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x74]
add eax, dword [esp + 0x78]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x68]
add edx, 1
mov dword [esp + 0x60], edx
cmp dword [eax + 0x14], edx
jbe 0x40307e
mov edi, dword [eax + 0x18]
mov ebp, dword [esp + 0x74]
mov edx, dword [esp + 0x74]
jmp 0x4032d0
mov eax, dword [ebp + 0x20]
mov esi, dword [esp + 0x7c]
lea edx, [edi + eax - 1]
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x1c], edx
mov dword [esp], esi
shl eax, 2
imul eax, edx
mov dword [esp + 4], eax
call sub.msvcrt.dll_realloc
mov esi, dword [ebp + 0x14]
mov dword [ebp + 0x48], eax
imul esi, dword [ebp + 0x1c]
test esi, esi
je 0x40307e
mov ecx, eax
and ecx, 0xf
shr ecx, 2
neg ecx
and ecx, 3
cmp ecx, esi
cmova ecx, esi
cmp esi, 6
ja 0x40367a
mov ecx, esi
xor edx, edx
lea esi, [esi]
mov dword [eax + edx*4], 0
add edx, 1
cmp edx, ecx
jb 0x403420
cmp ecx, esi
je 0x40307e
mov ebp, esi
sub ebp, ecx
mov edi, ebp
mov dword [esp + 0x70], ebp
shr edi, 2
lea ebp, [edi*4]
test ebp, ebp
je 0x403480
lea ebx, [eax + ecx*4]
xor ecx, ecx
xorps xmm0, xmm0
lea esi, [esi]
lea edi, [edi]
add ecx, 1
movaps xmmword [ebx], xmm0
add ebx, 0x10
cmp ecx, edi
jb 0x403460
add edx, ebp
cmp ebp, dword [esp + 0x70]
je 0x40307e
lea esi, [esi]
mov dword [eax + edx*4], 0
add edx, 1
cmp esi, edx
ja 0x403480
jmp 0x40307e
mov dword [ebp + 0x54], 0x4028d0
mov dword [esp + 0x78], ecx
jmp 0x402e75
xor eax, eax
jmp 0x403015
shl eax, 2
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.msvcrt.dll_realloc
mov ebx, dword [ebp + 0x30]
mov edi, dword [ebp + 0x18]
mov esi, eax
mov dword [ebp + 0x4c], eax
mov ecx, dword [ebp + 0x10]
mov edx, ebx
imul edx, edi
mov dword [esp + 0x80], ecx
mov ecx, dword [ebp + 0xc]
lea eax, [edx + 8]
mov dword [ebp + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x7c], eax
jmp 0x4030c3
shl edx, 2
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_realloc
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x18]
mov dword [ebp + 0x4c], eax
mov esi, dword [ebp + 0x10]
mov eax, ebx
mov dword [esp + 0x78], ebx
imul eax, edi
mov dword [esp + 0x80], esi
mov dword [ebp + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x7c], eax
jmp 0x402ca9
mov edx, dword [ebp + 0x14]
mov dword [ebp + 0x1c], eax
shl edx, 2
imul edx, eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov dword [ebp + 0x48], eax
jmp 0x402ebe
mov eax, dword [ebp + 0x20]
lea esi, [edi + eax - 1]
mov dword [ebp + 0x1c], esi
imul esi, dword [ebp + 0x14]
mov dword [esp + 4], 1
lea eax, [esi*4]
mov dword [esp], eax
call sub.msvcrt.dll_calloc
test esi, esi
mov dword [ebp + 0x48], eax
je 0x40307e
mov ecx, eax
and ecx, 0xf
shr ecx, 2
neg ecx
and ecx, 3
cmp ecx, esi
cmova ecx, esi
cmp esi, 6
ja 0x403666
mov ecx, esi
xor edx, edx
mov dword [eax + edx*4], 0
add edx, 1
cmp edx, ecx
jb 0x403595
cmp esi, ecx
je 0x40307e
mov ebx, esi
sub ebx, ecx
mov edi, ebx
mov dword [esp + 0x70], ebx
shr edi, 2
lea ebp, [edi*4]
test ebp, ebp
je 0x4035f0
lea ebx, [eax + ecx*4]
xor ecx, ecx
xorps xmm0, xmm0
nop
lea esi, [esi]
add ecx, 1
movaps xmmword [ebx], xmm0
add ebx, 0x10
cmp ecx, edi
jb 0x4035d0
add edx, ebp
cmp dword [esp + 0x70], ebp
je 0x40307e
lea esi, [esi]
mov dword [eax + edx*4], 0
add edx, 1
cmp edx, esi
jb 0x4035f0
jmp 0x40307e
lea eax, [ecx*4]
mov dword [esp + 4], 1
imul eax, edi
mov dword [esp], eax
call sub.msvcrt.dll_calloc
mov dword [ebp + 0x4c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x7c], eax
jmp 0x402ca9
lea eax, [edx*4 + 0x20]
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [esp + 0x3c], edx
call sub.msvcrt.dll_calloc
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov dword [ebp + 0x4c], eax
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x7c], eax
jmp 0x4030c3
xor edx, edx
jmp 0x403385
test ecx, ecx
jne 0x403593
xor edx, edx
jmp 0x4035ab
call fcn.00442960
test ecx, ecx
lea esi, [esi]
jne 0x40341b
xor edx, edx
jmp 0x403436