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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa30
push ebx
push ebp
mov eax, 1
push esi
push edi
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x88], eax
or ecx, 0xffffffff
mov edi, str.BLOCK
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xa4]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0xc2]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x78], ebx
rep movsb byte es:[edi], byte [esi]
mov edi, str.Ver.1.30
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x80], ebx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xe0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x84], ebx
rep movsb byte es:[edi], byte [esi]
mov edi, str.PROGRAM
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x8c], ebx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xfe]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x90], ebx
rep movsb byte es:[edi], byte [esi]
mov edi, str.KENTA_22_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x94], ebx
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x98], ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x9c], ebx
and ecx, 3
mov dword [esp + 0xa0], ebx
rep movsb byte es:[edi], byte [esi]
lea edx, [esp + 0x11c]
or ecx, 0xffffffff
mov edi, str.STAGE_EDIT
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x13a]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str.KENTA_22__
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x158]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str.KENICHI
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x176]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.SPECIAL_THANKS
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x194]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.oknit_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1b2]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.MORIZUKI_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x1d0]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov ebp, 0xe
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str.NORIO_
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x1ee]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.MOJI_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.AND...
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x22a]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x428f68
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x248]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4baf44
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
add edx, 0x1e
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
dec ebp
rep movsb byte es:[edi], byte [esi]
jne 0x406224
mov edi, str.RESULT
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3ec]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [esp + 0x428]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x40a]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4baf44
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4251a0
mov ecx, dword [edi]
mov eax, 0x45e7b273
imul ecx
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add edx, eax
mov esi, edx
lea eax, [esi + esi*2]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 5
mov eax, edx
mov edx, ecx
sub edx, eax
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [esi + esi*2]
mov esi, ecx
lea eax, [eax + eax*4]
lea edx, [edx + eax*4]
mov eax, 0x45e7b273
imul edx, edx, 0x3e8
sub esi, edx
imul ecx
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [edx + edx*2]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 5
mov eax, edx
mov edx, ecx
sub edx, eax
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x45e7b273
mov dword [esp + 0x10], edx
imul ecx
sar edx, 0xe
mov ecx, edx
mov eax, 0x66666667
shr ecx, 0x1f
add edx, ecx
inc ebx
mov ecx, edx
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
push edx
mov edx, dword [esp + 0x14]
push edx
push ecx
push ebx
push str.STAGE__2.2d__:___2.2dm_2.2ds_2.2d
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
add edi, 4
add esp, 0x18
add ebp, 0x1e
cmp edi, 0x425268
jl 0x4062aa
mov edi, 0x4baf44
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xa04]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 0x45e7b273
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [0x41d47c]
imul esi
mov ecx, edx
mov edi, esi
sar ecx, 0xe
mov edx, ecx
shr edx, 0x1f
add ecx, edx
mov edx, esi
lea eax, [ecx + ecx*2]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 5
sub edx, eax
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [ecx + ecx*2]
lea eax, [eax + eax*4]
lea edx, [edx + eax*4]
lea eax, [ecx + ecx*2]
imul edx, edx, 0x3e8
lea eax, [eax + eax*4]
sub edi, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 5
sub esi, eax
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x66666667
mov esi, edx
imul edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
push edx
push esi
push ecx
lea ecx, [esp + 0xa2e]
push str.TOTAL_TIME__:___2.2dm_2.2ds_2.2d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x4baf20]
xor edi, edi
add esp, 0x14
cmp eax, edi
jne 0x406602
push 0xf
call fcn.0040df10
push 1
push 0xf
call fcn.0040de80
lea edx, [esp + 0x50]
mov dword [0x49d298], 0xa
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor ebx, ebx
mov eax, 0x428f78
mov ecx, dword [0x41d47c]
mov edx, dword [eax]
cmp ecx, edx
jl 0x4064ab
add eax, 0x20
inc ebx
cmp eax, 0x4290b8
jl 0x40648f
jmp 0x40659f
cmp ebx, 9
jge 0x40650e
mov ebp, 9
mov edx, 0x42907c
sub ebp, ebx
mov eax, dword [edx - 4]
lea edi, [edx + 0x14]
mov dword [edx + 0x1c], eax
mov ecx, dword [edx]
mov dword [edx + 0x20], ecx
mov eax, dword [edx + 4]
mov dword [edx + 0x24], eax
mov ecx, dword [edx + 8]
mov dword [edx + 0x28], ecx
mov eax, dword [edx + 0xc]
mov dword [edx + 0x2c], eax
mov ecx, dword [edx + 0x10]
mov dword [edx + 0x30], ecx
or ecx, 0xffffffff
xor eax, eax
lea esi, [edx + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
sub edx, 0x20
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
dec ebp
rep movsb byte es:[edi], byte [esi]
jne 0x4064bc
mov edx, dword [esp + 0x50]
mov ecx, dword [0x41d47c]
mov eax, ebx
and edx, 0xffff
shl eax, 5
mov edi, 0x428f68
mov dword [0x49d298], ebx
mov dword [eax + 0x428f78], ecx
mov ecx, dword [esp + 0x52]
mov dword [eax + 0x428f7c], edx
mov edx, dword [esp + 0x56]
and ecx, 0xffff
and edx, 0xffff
mov dword [eax + 0x428f80], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 0x428f84], edx
mov edx, dword [esp + 0x5a]
and ecx, 0xffff
and edx, 0xffff
mov dword [eax + 0x428f88], ecx
mov dword [eax + 0x428f8c], edx
lea edx, [eax + 0x428f90]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
mov esi, dword [sym.imp.USER32.dll_SetRect]
push 0xa0
push 0x28
push 0x98
push 0x20
push 0x4a15f0
mov dword [0x49d268], edi
mov dword [0x4b8ef0], edi
mov dword [0x49f6a8], edi
call esi
push 0x98
push 0x30
push 0x90
push 0x28
push 0x4a1600
call esi
push 0x98
push 0x28
push 0x90
push 0x20
push 0x4a1610
call esi
mov dword [0x4baf20], 1
jmp 0x40660b
cmp eax, 1
jne 0x4067e6
mov eax, dword [0x49f6a8]
mov dword [0x4b8eec], edi
lea eax, [eax + eax*2]
lea ecx, [eax + eax*4]
lea edx, [esp + ecx*2 + 0xa4]
push edx
call fcn.004046a0
fld qword [0x4193a8]
fsin
mov ebp, dword [0x4b8eec]
add esp, 4
cmp ebp, edi
fstp qword [esp + 0x18]
fld qword [0x4193a8]
fcos
fstp qword [esp + 0x60]
jle 0x40676e
mov esi, 0x4a1630
mov ebx, ebp
fld qword [esi]
fld qword [esi + 8]
fld st(1)
fmul qword [esp + 0x60]
fld st(1)
fmul qword [esp + 0x18]
fsubp st(1)
fstp qword [esi]
fmul qword [esp + 0x60]
fxch st(1)
fmul qword [esp + 0x18]
faddp st(1)
fstp qword [esi + 8]
fld qword [esi]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [esi - 8]
mov dword [esp + 0x40], eax
mov eax, dword [esi - 4]
mov dword [esp + 0x44], ecx
fstp qword [esp + 0x28]
fld qword [esi - 8]
mov dword [esp + 0x20], edx
mov ecx, edx
mov edx, eax
mov dword [esp + 0x48], ecx
fstp qword [esp + 0x10]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x24], eax
fld qword [esp + 0x48]
fld qword [esi]
fchs
fld qword [0x4192a0]
call fcn.004102c0
fld qword [esp + 0x48]
fchs
fld qword [0x4192a0]
call fcn.004102c0
faddp st(1)
fsqrt
fdivp st(1)
fmul qword [0x4193e8]
fld qword [esp + 0x10]
fmul qword [esp + 0x10]
fld qword [esp + 0x28]
fmul qword [esp + 0x28]
faddp st(1)
fld qword [0x419210]
call fcn.004102c0
fdivp st(1)
fstp qword [esi + 0x10]
fld qword [esi]
fstp qword [esp + 0x28]
fld qword [esi - 8]
fstp qword [esp + 0x10]
fld qword [esp + 0x40]
fld qword [esp + 0x20]
fchs
fld qword [0x4192a0]
call fcn.004102c0
fld qword [esp + 0x40]
fchs
fld qword [0x4192a0]
call fcn.004102c0
faddp st(1)
fsqrt
fdivp st(1)
fmul qword [0x4193e8]
fld qword [esp + 0x10]
fmul qword [esp + 0x10]
fld qword [esp + 0x28]
fmul qword [esp + 0x28]
faddp st(1)
fld qword [0x419210]
call fcn.004102c0
fdivp st(1)
add esi, 0x30
dec ebx
fstp qword [esi - 0x18]
jne 0x406659
fld qword [0x4193e0]
fsin
cmp ebp, edi
fstp qword [esp + 0x20]
fld qword [0x4193e0]
fcos
fstp qword [esp + 0x18]
jle 0x4067c0
mov eax, 0x4a1638
mov ecx, ebp
fld qword [eax - 0x10]
fld qword [eax]
fld st(1)
fmul qword [esp + 0x18]
fld qword [esp + 0x20]
fmul st(2)
add eax, 0x30
dec ecx
fsubp st(1)
fstp qword [eax - 0x40]
fxch st(1)
fmul qword [esp + 0x20]
fld qword [esp + 0x18]
fmul st(2)
faddp st(1)
fstp qword [eax - 0x30]
fstp st(0)
jne 0x406791
fld qword [0x419238]
mov dword [0x41ce38], 0
mov dword [0x41ce3c], 0x408f4000
mov dword [0x4baf20], 2
jmp 0x406808
cmp eax, 2
jne 0x4068d2
fld qword [0x41ce38]
fcomp qword [0x4193d8]
fnstsw ax
test ah, 0x41
jne 0x406820
fld qword [0x49d270]
fld qword [0x419350]
fdiv qword [0x49d278]
fsubr st(1)
fstp qword [0x49d270]
fstp st(0)
jmp 0x406838
fld qword [0x419350]
fdiv qword [0x49d278]
fadd qword [0x49d270]
fstp qword [0x49d270]
fld qword [0x41ce38]
fld qword [0x49d270]
fmul qword [0x419270]
fdiv qword [0x49d278]
fadd qword [0x41ce38]
fstp qword [0x41ce38]
fcom qword [0x4193d8]
fnstsw ax
test ah, 1
jne 0x40688e
fld qword [0x41ce38]
fcomp qword [0x4193d8]
fnstsw ax
test ah, 0x41
je 0x40688e
fld qword [0x49d270]
fmul qword [0x4193d0]
fstp qword [0x49d270]
fcomp qword [0x4193d8]
fnstsw ax
test ah, 0x41
je 0x40692b
fld qword [0x41ce38]
fcomp qword [0x4193d8]
fnstsw ax
test ah, 1
jne 0x40692b
mov dword [0x41ce38], 0
mov dword [0x41ce3c], 0x40740000
mov dword [0x4baf20], 3
jmp 0x40692b
cmp eax, 4
jne 0x40692b
mov ecx, dword [0x4b8eec]
cmp ecx, edi
jle 0x40692b
fld qword [0x4193c8]
fdiv qword [0x49d278]
mov eax, 0x4a1648
fld qword [eax]
fsub st(1)
add eax, 0x30
dec ecx
fstp qword [eax - 0x30]
fld qword [eax - 0x38]
fmul qword [0x419270]
fdiv qword [0x49d278]
fadd qword [eax - 0x50]
fstp qword [eax - 0x50]
fld qword [eax - 0x30]
fmul qword [0x419270]
fdiv qword [0x49d278]
fadd qword [eax - 0x48]
fstp qword [eax - 0x48]
jne 0x4068f2
fstp st(0)
push 2
push str.CONGRATURATIONS___
push 0x20
push str.CONGRATURATIONS___
call fcn.004028e0
mov ecx, 0x280
add esp, 4
sub ecx, eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
call fcn.004026c0
add esp, 0x10
mov esi, 0x60
mov edx, dword [0x49d268]
lea eax, [edx + edi]
cmp eax, 0x43
jle 0x40696e
sub eax, 0x44
cmp eax, 0xe
jne 0x40697a
mov ecx, 2
jmp 0x406982
xor ecx, ecx
cmp eax, 0x43
sete cl
mov ebp, dword [0x4b8ef0]
lea eax, [eax + eax*2]
push ecx
mov ecx, esi
lea eax, [eax + eax*4]
sub ecx, ebp
lea eax, [esp + eax*2 + 0x24c]
push eax
push ecx
push eax
call fcn.004028e0
mov edx, 0x280
add esp, 4
sub edx, eax
mov eax, edx
cdq
sub eax, edx
sar eax, 1
push eax
call fcn.004026c0
add esp, 0x10
add esi, 0x10
inc edi
cmp esi, 0x150
jl 0x40695d
push 0xa2
push 0xb0
push 0x90
lea eax, [esp + 0x3c]
push 0xa0
push eax
call dword [sym.imp.USER32.dll_SetRect]
xor esi, esi
test esi, esi
jl 0x406a80
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
sub ecx, edi
add ecx, esi
cmp ecx, 0x280
jg 0x406a36
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x34]
sub edx, edi
add edx, 0x50
cmp edx, 0x1e0
jg 0x406a36
mov eax, dword [0x4baf38]
lea edx, [esp + 0x30]
push 0x11
push edx
mov edx, dword [0x4baf3c]
mov ecx, dword [eax]
push edx
push 0x50
push esi
push eax
call dword [ecx + 0x1c]
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
sub eax, edi
add eax, esi
cmp eax, 0x280
jg 0x406a80
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x34]
sub ecx, edi
add ecx, 0x140
cmp ecx, 0x1e0
jg 0x406a80
mov eax, dword [0x4baf38]
lea ecx, [esp + 0x30]
push 0x11
push ecx
mov ecx, dword [0x4baf3c]
mov edx, dword [eax]
push ecx
push 0x140
push esi
push eax
call dword [edx + 0x1c]
add esi, 0x10
cmp esi, 0x280
jl 0x4069e9
push 0
push str.Hit_Any_Key_to_RANKING__
push 0x170
push str.Hit_Any_Key_to_RANKING__
call fcn.004028e0
mov edx, 0x280
add esp, 4
sub edx, eax
mov eax, edx
cdq
sub eax, edx
sar eax, 1
push eax
call fcn.004026c0
add esp, 0x10
push 1
push str.THANK_YOU_FOR_PLAYING.
push 0x1a0
push str.THANK_YOU_FOR_PLAYING.
call fcn.004028e0
mov ecx, 0x280
add esp, 4
sub ecx, eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
call fcn.004026c0
mov ecx, dword [0x4b8eec]
add esp, 0x10
xor eax, eax
test ecx, ecx
jle 0x406b0a
mov edx, 0x4b8fdc
mov dword [edx], eax
inc eax
add edx, 4
cmp eax, ecx
jl 0x406b00
dec ecx
push ecx
push 0
call fcn.00404940
mov eax, dword [0x4b8eec]
add esp, 8
test eax, eax
mov dword [esp + 0x10], 0
jle 0x406bf1
mov ebp, 0x4b8fdc
mov eax, dword [ebp]
mov edx, dword [0x49f6a8]
lea edi, [eax + eax*2]
mov esi, dword [esp + edx*4 + 0x6c]
shl edi, 4
fld qword [edi + 0x4a1638]
fadd qword [0x4193a0]
fld qword [edi + 0x4a1630]
fmul qword [0x419360]
add esi, dword [edi + 0x4a1650]
fdiv st(1)
shl esi, 4
add esi, 0x4a15f0
call fcn.0041028c
fld qword [edi + 0x4a1628]
fmul qword [0x419360]
mov ebx, 0xc4
sub ebx, eax
fdiv st(1)
fadd qword [0x41ce38]
call fcn.0041028c
sub eax, 4
fstp st(0)
js 0x406bd7
mov ecx, dword [esi + 8]
mov edx, dword [esi]
sub ecx, edx
add ecx, eax
cmp ecx, 0x280
jg 0x406bd7
test ebx, ebx
jl 0x406bd7
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 4]
sub edx, ecx
add edx, ebx
cmp edx, 0x1e0
jg 0x406bd7
mov ecx, dword [0x4baf38]
push 0x11
push esi
mov esi, dword [0x4baf3c]
mov edx, dword [ecx]
push esi
push ebx
push eax
push ecx
call dword [edx + 0x1c]
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4b8eec]
inc eax
add ebp, 4
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x406b30
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret