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

Disassembly:
push ebp
push ebx
mov edx, 0x1e
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x404b75
call fcn.00422280
push dword [esp + 0x90]
call fcn.00422140
mov edx, dword [esp + 0x84]
lea ecx, [esp]
call fcn.00413000
mov edx, dword [esp + 0x88]
lea ecx, [esp + 4]
call fcn.00413000
mov edx, dword [esp + 0x8c]
lea ecx, [esp + 8]
call fcn.00413000
call fcn.00422070
push eax
call fcn.00422070
push eax
push 1
push dword [esp + 0xc]
call fcn.00413e10
call fcn.004221c0
mov edx, 0x4420d3
pop ecx
push ecx
call fcn.00422380
mov ecx, eax
call fcn.00422190
je 0x404c22
call fcn.00422070
push eax
call fcn.00422070
push eax
push dword [esp + 8]
call fcn.00413400
mov ebx, eax
dec ebx
push ebx
push dword [esp + 0xc]
call fcn.00413e80
lea eax, [esp + 4]
push eax
call fcn.004221f0
call fcn.00422070
push eax
call fcn.00422070
push eax
push 1
push dword [esp + 0x10]
call fcn.00413e10
call fcn.004221c0
mov edx, 0x4420d3
pop ecx
push ecx
call fcn.00422380
mov ecx, eax
call fcn.00422190
je 0x404c82
call fcn.00422070
push eax
call fcn.00422070
push eax
push dword [esp + 0xc]
call fcn.00413400
mov ebx, eax
dec ebx
push ebx
push dword [esp + 0x10]
call fcn.00413e80
lea eax, [esp + 8]
push eax
call fcn.004221f0
push 0x4420d3
push dword [esp + 8]
call fcn.00413d90
mov dword [esp + 0xc], eax
push dword [esp + 0x10]
call fcn.0041a835
push 8
push 0x442d5c
lea eax, [esp + 0x18]
push eax
push 4
call fcn.0041a784
push dword [esp + 0x18]
call fcn.0041a835
push 8
push 0x442d5c
lea eax, [esp + 0x20]
push eax
push 4
call fcn.0041a784
lea edx, [esp + 0x20]
push edx
push 0
push 5
push 0x801
push 4
call fcn.0041f60e
lea edx, [esp + 0x28]
push edx
push 0
push 9
push 0x801
push 4
call fcn.0041f60e
lea edx, [esp + 0x30]
push edx
push 0
push 9
push 0x802
push 4
call fcn.0041f60e
fld qword [0x442ce4]
fstp qword [0x448500]
fld qword [0x448500]
fmul dword [0x442cbc]
fidiv dword [0x44852c]
fstp dword [esp + 0x38]
mov dword [esp + 0x3c], 0x3ff
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
push dword [esp + 0x50]
call fcn.0041a835
push 7
xor eax, eax
push eax
lea eax, [esp + 0x58]
push eax
push 8
call fcn.0041a784
mov dword [esp + 0x58], 0
push 0x4420d3
push dword [esp + 4]
push dword [esp + 0x18]
call fcn.00404ab9
push 0x4420d3
push dword [esp + 4]
call fcn.00413d90
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], 1
mov eax, dword [esp + 0x5c]
cmp eax, dword [esp + 0x58]
jl 0x404e86
push dword [esp + 0x50]
call fcn.0041a89d
call fcn.00422070
push eax
call fcn.00422070
push eax
call fcn.00422070
push eax
push 0x4420d3
push dword [esp + 0x68]
push dword [esp + 0x14]
call fcn.00413490
call fcn.00422122
add dword [esp], edx
call fcn.00413c40
call fcn.00422140
push eax
mov ebp, dword [esp + 0x58]
pop eax
mov dword [ebp + 0xc], eax
call fcn.00422070
push eax
call fcn.00422070
push eax
call fcn.00422070
push eax
push 0x4420d3
push dword [esp + 0x68]
push dword [esp + 0x18]
call fcn.00413490
call fcn.00422122
add dword [esp], edx
call fcn.00413c40
call fcn.00422140
mov dword [esp - 8], eax
mov dword [esp - 4], edx
fild qword [esp - 8]
fdiv dword [0x442cc0]
sub esp, 4
fstp dword [esp]
call fcn.0041a6f0
fstp dword [ebp + 8]
inc dword [esp + 0x58]
jno 0x404dd0
push 9
push 0
push 0
push dword [esp + 0x5c]
call fcn.00416520
mov dword [esp + 0x58], 0
mov ebx, dword [0x44852c]
dec ebx
cmp ebx, dword [esp + 0x58]
jl 0x40506a
mov dword [esp + 0x60], 0
push dword [esp + 0x50]
call fcn.0041a93b
mov ebx, eax
dec ebx
mov dword [esp + 0x64], ebx
push dword [esp + 0x50]
call fcn.0041a945
mov ebp, dword [esp + 0x54]
push dword [ebp + 0xc]
pop eax
mov dword [esp + 0x4c], eax
fld dword [ebp + 8]
fstp dword [esp + 0x44]
push dword [esp + 0x50]
call fcn.0041a96c
mov ebx, dword [esp + 0x60]
inc ebx
mov dword [esp + 0x60], ebx
mov ebp, dword [esp + 0x54]
fld dword [ebp + 8]
fild dword [esp + 0x58]
fmul dword [esp + 0x38]
fcompp
fnstsw ax
test ah, 0x41
jne 0x404f21
mov ebx, dword [esp + 0x60]
cmp ebx, dword [esp + 0x64]
jg 0x404f21
jmp 0x404f28
mov eax, 1
jmp 0x404f2a
xor eax, eax
and eax, eax
je 0x404ed8
mov ebx, dword [esp + 0x60]
cmp ebx, dword [esp + 0xc]
jle 0x404f56
push dword [esp + 0x50]
call fcn.0041a945
mov ebp, dword [esp + 0x54]
push dword [ebp + 0xc]
pop eax
mov dword [esp + 0x48], eax
fld dword [ebp + 8]
fstp dword [esp + 0x40]
jmp 0x404f69
mov ebp, dword [esp + 0x54]
push dword [ebp + 0xc]
pop eax
mov dword [esp + 0x48], eax
fld dword [ebp + 8]
fstp dword [esp + 0x40]
fild dword [esp + 0x58]
fmul dword [esp + 0x38]
fsin
fmul dword [0x442cc4]
sub esp, 4
fstp dword [esp]
fild dword [esp + 0x5c]
fmul dword [esp + 0x3c]
fcos
fmul dword [0x442cc4]
sub esp, 4
fstp dword [esp]
push 0
push 0
fild dword [esp + 0x5c]
fld dword [esp + 0x54]
fsin
fmulp st(1)
sub esp, 4
fstp dword [esp]
fild dword [esp + 0x60]
fld dword [esp + 0x58]
fcos
fmulp st(1)
sub esp, 4
fstp dword [esp]
fild dword [esp + 0x60]
fld dword [esp + 0x58]
fsin
fmulp st(1)
sub esp, 4
fstp dword [esp]
fild dword [esp + 0x64]
fld dword [esp + 0x5c]
fcos
fmulp st(1)
sub esp, 4
fstp dword [esp]
call fcn.00411c56
fld dword [0x448644]
fcomp dword [0x442cb8]
fnstsw ax
test ah, 0x40
je 0x405014
fld dword [0x448658]
fcomp dword [0x442cb8]
fnstsw ax
test ah, 0x40
je 0x405014
jmp 0x40501b
mov eax, 1
jmp 0x40501d
xor eax, eax
and eax, eax
je 0x405060
push 0x3f000000
fld dword [0x448644]
fmul dword [0x448644]
fld dword [0x448658]
fmul dword [0x448658]
faddp st(1)
fadd dword [0x442cb8]
sub esp, 4
fstp dword [esp]
call fcn.0041a710
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x30]
shl ebx, 2
fstp dword [ebp + ebx]
inc dword [esp + 0x58]
jno 0x404ea6
push dword [esp + 8]
mov edx, 0x44218f
pop ecx
call fcn.00422190
je 0x4052f2
mov dword [esp + 0x58], 0
mov ebx, dword [0x44852c]
dec ebx
cmp ebx, dword [esp + 0x58]
jl 0x4052c5
fld dword [esp + 0x38]
fimul dword [esp + 0x58]
fcos
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x30]
shl ebx, 2
fmul dword [ebp + ebx]
mov edx, dword [0x44890c]
imul edx, dword [esp + 0x58]
mov ebp, edx
push ebp
xor eax, eax
pop ebp
add ebp, eax
shl ebp, 2
add ebp, dword [0x448908]
fstp dword [ebp]
fld dword [esp + 0x38]
fimul dword [esp + 0x58]
fsin
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x30]
shl ebx, 2
fmul dword [ebp + ebx]
mov edx, dword [0x44890c]
imul edx, dword [esp + 0x58]
mov ebp, edx
push ebp
mov eax, 1
pop ebp
add ebp, eax
shl ebp, 2
add ebp, dword [0x448908]
fstp dword [ebp]
mov edx, dword [0x44890c]
imul edx, dword [esp + 0x58]
mov ebp, edx
push ebp
xor eax, eax
pop ebp
add ebp, eax
shl ebp, 2
add ebp, dword [0x448908]
fld dword [ebp]
fild dword [esp + 0x68]
fcompp
fnstsw ax
test ah, 1
je 0x40515f
mov edx, dword [0x44890c]
imul edx, dword [esp + 0x58]
mov ebp, edx
push ebp
xor eax, eax
pop ebp
add ebp, eax
shl ebp, 2
add ebp, dword [0x448908]
fld dword [ebp]
push eax
fistp dword [esp]
pop eax
mov dword [esp + 0x68], eax
mov edx, dword [0x44890c]
imul edx, dword [esp + 0x58]
mov ebp, edx
push ebp
xor eax, eax
pop ebp
add ebp, eax
shl ebp, 2
add ebp, dword [0x448908]
fld dword [ebp]
fild dword [esp + 0x6c]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4051b3
mov edx, dword [0x44890c]
imul edx, dword [esp + 0x58]
mov ebp, edx
push ebp
xor eax, eax
pop ebp
add ebp, eax
shl ebp, 2
add ebp, dword [0x448908]
fld dword [ebp]
push eax
fistp dword [esp]
pop eax
mov dword [esp + 0x6c], eax
mov edx, dword [0x44890c]
imul edx, dword [esp + 0x58]
mov ebp, edx
push ebp
mov eax, 1
pop ebp
add ebp, eax
shl ebp, 2
add ebp, dword [0x448908]
fld dword [ebp]
fild dword [esp + 0x70]
fcompp
fnstsw ax
test ah, 1
je 0x40520d
mov edx, dword [0x44890c]
imul edx, dword [esp + 0x58]
mov ebp, edx
push ebp
mov eax, 1
pop ebp
add ebp, eax
shl ebp, 2
add ebp, dword [0x448908]
fld dword [ebp]
push eax
fistp dword [esp]
pop eax
mov dword [esp + 0x70], eax
mov edx, dword [0x44890c]
imul edx, dword [esp + 0x58]
mov ebp, edx
push ebp
mov eax, 1
pop ebp
add ebp, eax
shl ebp, 2
add ebp, dword [0x448908]
fld dword [ebp]
fild dword [esp + 0x74]
fcompp
fnstsw ax
test ah, 0x41
jne 0x405267
mov edx, dword [0x44890c]
imul edx, dword [esp + 0x58]
mov ebp, edx
push ebp
mov eax, 1
pop ebp
add ebp, eax
shl ebp, 2
add ebp, dword [0x448908]
fld dword [ebp]
push eax
fistp dword [esp]
pop eax
mov dword [esp + 0x74], eax
lea ebp, [0x448664]
mov edx, dword [ebp + 0x48]
call fcn.00422070
push eax
call fcn.004220b0
call fcn.00422070
push eax
call fcn.00422070
push eax
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x3c]
shl ebx, 2
fld dword [ebp + ebx]
sub esp, 8
fistp qword [esp]
call fcn.00413370
pop eax
mov edx, 0x4420d3
call fcn.004220b0
lea ebp, [0x448664]
lea eax, [ebp + 0x48]
push eax
call fcn.004221f0
inc dword [esp + 0x58]
jno 0x405087
call fcn.00422070
push eax
push 0x4420d3
lea ebp, [0x448664]
push dword [ebp + 0x48]
call fcn.0040c176
lea ebp, [0x448664]
lea eax, [ebp + 0x48]
push eax
call fcn.004221f0
jmp 0x40556f
mov dword [esp + 0x58], 0
mov ebx, dword [0x44852c]
dec ebx
cmp ebx, dword [esp + 0x58]
jl 0x405547
fld dword [esp + 0x38]
fimul dword [esp + 0x58]
fcos
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x30]
shl ebx, 2
fmul dword [ebp + ebx]
mov edx, dword [0x44890c]
imul edx, dword [esp + 0x58]
mov ebp, edx
push ebp
mov eax, 2
pop ebp
add ebp, eax
shl ebp, 2
add ebp, dword [0x448908]
fstp dword [ebp]
fld dword [esp + 0x38]
fimul dword [esp + 0x58]
fsin
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x30]
shl ebx, 2
fmul dword [ebp + ebx]
mov edx, dword [0x44890c]
imul edx, dword [esp + 0x58]
mov ebp, edx
push ebp
mov eax, 3
pop ebp
add ebp, eax
shl ebp, 2
add ebp, dword [0x448908]
fstp dword [ebp]
mov edx, dword [0x44890c]
imul edx, dword [esp + 0x58]
mov ebp, edx
push ebp
mov eax, 2
pop ebp
add ebp, eax
shl ebp, 2
add ebp, dword [0x448908]
fld dword [ebp]
fild dword [esp + 0x68]
fcompp
fnstsw ax
test ah, 1
je 0x4053db
mov edx, dword [0x44890c]
imul edx, dword [esp + 0x58]
mov ebp, edx
push ebp
mov eax, 2
pop ebp
add ebp, eax
shl ebp, 2
add ebp, dword [0x448908]
fld dword [ebp]
push eax
fistp dword [esp]
pop eax
mov dword [esp + 0x68], eax
mov edx, dword [0x44890c]
imul edx, dword [esp + 0x58]
mov ebp, edx
push ebp
mov eax, 2
pop ebp
add ebp, eax
shl ebp, 2
add ebp, dword [0x448908]
fld dword [ebp]
fild dword [esp + 0x6c]
fcompp
fnstsw ax
test ah, 0x41
jne 0x405435
mov edx, dword [0x44890c]
imul edx, dword [esp + 0x58]
mov ebp, edx
push ebp
mov eax, 2
pop ebp
add ebp, eax
shl ebp, 2
add ebp, dword [0x448908]
fld dword [ebp]
push eax
fistp dword [esp]
pop eax
mov dword [esp + 0x6c], eax
mov edx, dword [0x44890c]
imul edx, dword [esp + 0x58]
mov ebp, edx
push ebp
mov eax, 3
pop ebp
add ebp, eax
shl ebp, 2
add ebp, dword [0x448908]
fld dword [ebp]
fild dword [esp + 0x70]
fcompp
fnstsw ax
test ah, 1
je 0x40548f
mov edx, dword [0x44890c]
imul edx, dword [esp + 0x58]
mov ebp, edx
push ebp
mov eax, 3
pop ebp
add ebp, eax
shl ebp, 2
add ebp, dword [0x448908]
fld dword [ebp]
push eax
fistp dword [esp]
pop eax
mov dword [esp + 0x70], eax
mov edx, dword [0x44890c]
imul edx, dword [esp + 0x58]
mov ebp, edx
push ebp
mov eax, 3
pop ebp
add ebp, eax
shl ebp, 2
add ebp, dword [0x448908]
fld dword [ebp]
fild dword [esp + 0x74]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4054e9
mov edx, dword [0x44890c]
imul edx, dword [esp + 0x58]
mov ebp, edx
push ebp
mov eax, 3
pop ebp
add ebp, eax
shl ebp, 2
add ebp, dword [0x448908]
fld dword [ebp]
push eax
fistp dword [esp]
pop eax
mov dword [esp + 0x74], eax
lea ebp, [0x448664]
mov edx, dword [ebp + 0x4c]
call fcn.00422070
push eax
call fcn.004220b0
call fcn.00422070
push eax
call fcn.00422070
push eax
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x3c]
shl ebx, 2
fld dword [ebp + ebx]
sub esp, 8
fistp qword [esp]
call fcn.00413370
pop eax
mov edx, 0x4420d3
call fcn.004220b0
lea ebp, [0x448664]
lea eax, [ebp + 0x4c]
push eax
call fcn.004221f0
inc dword [esp + 0x58]
jno 0x4052fa
call fcn.00422070
push eax
push 0x4420d3
lea ebp, [0x448664]
push dword [ebp + 0x4c]
call fcn.0040c176
lea ebp, [0x448664]
lea eax, [ebp + 0x4c]
push eax
call fcn.004221f0
push dword [esp + 8]
mov edx, 0x44218f
pop ecx
call fcn.00422190
je 0x40563e
lea ebp, [0x448664]
push dword [ebp + 0x20]
call fcn.00413400
mov ebx, eax
and ebx, ebx
jne 0x4055dd
call fcn.00422070
push eax
call fcn.00422070
push eax
push 2
fild dword [esp + 0x78]
fabs
fild dword [esp + 0x74]
fabs
faddp st(1)
fadd dword [0x442cb8]
fdiv dword [0x442cc0]
sub esp, 4
fstp dword [esp]
call fcn.00413730
lea ebp, [0x448664]
lea eax, [ebp + 0x20]
push eax
call fcn.004221f0
lea ebp, [0x448664]
push dword [ebp + 0x28]
call fcn.00413400
mov ebx, eax
and ebx, ebx
jne 0x405639
call fcn.00422070
push eax
call fcn.00422070
push eax
push 2
fild dword [esp + 0x80]
fabs
fild dword [esp + 0x7c]
fabs
faddp st(1)
fadd dword [0x442cb8]
fdiv dword [0x442cc0]
sub esp, 4
fstp dword [esp]
call fcn.00413730
lea ebp, [0x448664]
lea eax, [ebp + 0x28]
push eax
call fcn.004221f0
jmp 0x405708
push dword [esp + 8]
mov edx, 0x442179
pop ecx
call fcn.00422190
je 0x405708
lea ebp, [0x448664]
push dword [ebp + 0x24]
call fcn.00413400
mov ebx, eax
and ebx, ebx
jne 0x4056ac
call fcn.00422070
push eax
call fcn.00422070
push eax
push 2
fild dword [esp + 0x78]
fabs
fild dword [esp + 0x74]
fabs
faddp st(1)
fadd dword [0x442cb8]
fdiv dword [0x442cc0]
sub esp, 4
fstp dword [esp]
call fcn.00413730
lea ebp, [0x448664]
lea eax, [ebp + 0x24]
push eax
call fcn.004221f0
lea ebp, [0x448664]
push dword [ebp + 0x2c]
call fcn.00413400
mov ebx, eax
and ebx, ebx
jne 0x405708
call fcn.00422070
push eax
call fcn.00422070
push eax
push 2
fild dword [esp + 0x80]
fabs
fild dword [esp + 0x7c]
fabs
faddp st(1)
fadd dword [0x442cb8]
fdiv dword [0x442cc0]
sub esp, 4
fstp dword [esp]
call fcn.00413730
lea ebp, [0x448664]
lea eax, [ebp + 0x2c]
push eax
call fcn.004221f0
call fcn.00422350
mov byte [eax], 0
push dword [esp + 8]
call fcn.00422320
push dword [esp + 4]
call fcn.00422320
push dword [esp]
call fcn.00422320
push eax
push dword [esp + 0x24]
call fcn.0041f736
push dword [esp + 0x2c]
call fcn.0041f736
push dword [esp + 0x34]
call fcn.0041f736
push dword [esp + 0x14]
call fcn.0041a835
push dword [esp + 0x1c]
call fcn.0041a835
push dword [esp + 0x54]
call fcn.0041a835
pop eax
add esp, 0x78
pop ebx
pop ebp
ret 0xc