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

Disassembly:
push 0xffffffffffffffff
push 0x42c146
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8
mov eax, dword [0x437df8]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0xd0], 0
mov dword [esp + 0x10], eax
mov al, byte [esi + 0x514]
mov byte [esp + 0xd0], 1
test al, al
je 0x40661e
mov byte [esi + 0x514], 0
mov ecx, dword [esi + 0x1c4]
push 0
call fcn.00402420
mov eax, dword [esi + 0x508]
dec eax
cmp eax, 0xd
ja case.0x4058b3.4
jmp dword [eax*4 + 0x406760]
mov eax, dword [esi + 0x3a8]
test eax, eax
mov eax, dword [esi + 0x1c4]
mov dword [eax + 0x84], 0xe
jle 0x40591a
mov eax, dword [esi + 0x160]
mov edx, dword [esi + 0xf0]
mov ecx, dword [esi + 0x15c]
push eax
mov eax, dword [esi + 0xec]
push ecx
mov ecx, dword [esi + 0x128]
shr edx, 1
shr eax, 1
push edx
push eax
push 0x4367e4
push ecx
mov ecx, dword [esi + 0x1c4]
call fcn.00401ff0
mov edi, eax
test edi, edi
jl 0x40663c
jmp case.0x4058b3.4
mov edx, dword [esi + 0x160]
mov ecx, dword [esi + 0xf0]
mov eax, dword [esi + 0x15c]
push edx
mov edx, dword [esi + 0xec]
push eax
mov eax, dword [esi + 0x128]
shr ecx, 1
shr edx, 1
push ecx
push edx
push 0x4367d0
push eax
jmp 0x405900
mov eax, dword [esi + 0x1c4]
mov dword [eax + 0x84], 0xe
mov ecx, dword [esi + 0x168]
mov eax, dword [esi + 0xf0]
mov edx, dword [esi + 0x164]
push ecx
mov ecx, dword [esi + 0xec]
shr eax, 1
push edx
push eax
mov eax, dword [esi + 0x128]
lea edx, [esi + 0x4c8]
shr ecx, 1
push ecx
mov ecx, dword [esi + 0x1c4]
push edx
push eax
call fcn.00401ff0
mov edi, eax
test edi, edi
jl 0x40663c
push str.Selecting:
lea ecx, [esp + 0x1c]
call fcn.00424178
mov eax, dword [esi + 0x1c4]
mov dword [eax + 0x84], 0
mov ecx, dword [esi + 0x160]
mov edx, dword [esi + 0x15c]
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x124]
push edx
push 0
push 0xa
push eax
push ecx
mov ecx, dword [esi + 0x1c4]
call fcn.00401ff0
mov edi, eax
test edi, edi
jl 0x40663c
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x124]
lea edx, [esp + 0x20]
push edx
push eax
push ecx
mov ecx, dword [esi + 0x1c4]
call fcn.00402470
mov edx, dword [esp + 0x20]
mov ecx, dword [esi + 0x4d8]
lea eax, [edx + 0xa]
mov edx, dword [esi + 0x168]
push edx
mov edx, dword [esi + 0x164]
push edx
push 0
push eax
mov eax, dword [esi + 0x124]
push ecx
mov ecx, dword [esi + 0x1c4]
push eax
call fcn.00401ff0
jmp case.0x4058b3.4
mov eax, dword [esi + 0x1c4]
mov dword [eax + 0x84], 0xe
mov ecx, dword [esi + 0x160]
mov eax, dword [esi + 0xf0]
mov edx, dword [esi + 0x15c]
push ecx
mov ecx, dword [esi + 0xec]
shr eax, 1
push edx
mov edx, dword [esi + 0x128]
shr ecx, 1
push eax
push ecx
push 0x4367b4
push edx
jmp 0x405900
mov eax, dword [esi + 0x3a8]
test eax, eax
je case.0x4058b3.4
push str.Pre_selects:
lea ecx, [esp + 0x1c]
call fcn.00424178
mov eax, dword [esi + 0x1c4]
mov dword [eax + 0x84], 0
mov eax, dword [esi + 0x160]
mov ecx, dword [esi + 0x15c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esi + 0x124]
push ecx
mov ecx, dword [esi + 0x1c4]
push 0
push 0xa
push edx
push eax
call fcn.00401ff0
mov edi, eax
test edi, edi
jl 0x40663c
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x124]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x1c4]
push edx
push eax
call fcn.00402470
mov ecx, dword [esp + 0x20]
xor ebx, ebx
lea edi, [ecx + 0xa]
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], edi
call fcn.0042400a
mov ebp, dword [esi + 0x3a0]
test ebp, ebp
je 0x405b79
mov eax, ebp
mov ebp, dword [ebp]
lea edx, [esp + 0x10]
mov eax, dword [eax + 8]
push eax
push str._.5d
push edx
call fcn.0041ed0f
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0x124]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push ecx
mov ecx, dword [esi + 0x1c4]
push edx
call fcn.00402470
mov eax, dword [esp + 0x20]
add edi, eax
mov eax, dword [esi + 0xec]
sub eax, 0x8c
cmp edi, eax
jge 0x405b79
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0042432d
inc ebx
test ebp, ebp
jne 0x405b1a
mov eax, dword [esi + 0x1c4]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x84], 0
mov edx, dword [esi + 0x168]
mov eax, dword [esi + 0x164]
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esi + 0x124]
push 0
push ecx
mov ecx, dword [esi + 0x1c4]
push edx
push eax
call fcn.00401ff0
mov edi, eax
test edi, edi
jl 0x40663c
cmp ebx, dword [esi + 0x3a8]
jge case.0x4058b3.4
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00424128
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x104]
mov edi, 0x50
inc ebx
cmp eax, edi
mov dword [esp + 0x14], edx
jle 0x405bf3
mov edi, eax
test ebp, ebp
je 0x405c5a
mov eax, ebp
mov ebp, dword [ebp]
mov eax, dword [eax + 8]
push eax
lea eax, [esp + 0x14]
push str._.5d
push eax
call fcn.0041ed0f
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x124]
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x1c4]
push edx
push eax
call fcn.00402470
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0xec]
add edi, eax
lea ecx, [eax + eax + 0x8c]
sub edx, ecx
cmp edi, edx
jge 0x405c5a
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
call fcn.0042432d
inc ebx
test ebp, ebp
jne 0x405bf7
mov eax, dword [esi + 0x3a8]
cmp ebx, eax
jge 0x405c87
sub eax, ebx
lea ecx, [esp + 0x10]
push eax
push str.R___.2d
push ecx
call fcn.0041ed0f
add esp, 0xc
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
call fcn.0042432d
mov eax, dword [esi + 0x168]
mov ecx, dword [esi + 0x164]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esi + 0x124]
push eax
push ecx
push edx
jmp 0x405900
mov eax, dword [esi + 0x3a8]
test eax, eax
jle case.0x4058b3.4
push str.Next_song:
lea ecx, [esp + 0x14]
call fcn.00424178
mov eax, dword [esi + 0x1c4]
mov dword [eax + 0x84], 0
mov eax, dword [esi + 0x160]
mov ecx, dword [esi + 0x15c]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esi + 0x124]
push ecx
mov ecx, dword [esi + 0x1c4]
push 0
push 0xa
push edx
push eax
call fcn.00401ff0
mov edi, eax
test edi, edi
jl 0x40663c
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x124]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x1c4]
push edx
push eax
call fcn.00402470
mov edx, dword [esi + 0x168]
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esi + 0x164]
lea eax, [ecx + 0x14]
mov ecx, dword [esi + 0x4f0]
push edx
push 0
push eax
mov eax, dword [esi + 0x124]
push ecx
push eax
jmp 0x405900
mov eax, dword [esi + 0x1c4]
mov ebx, dword [esi + 0xec]
mov ebp, dword [esi + 0x104]
mov dword [eax + 0x84], 6
mov eax, dword [esi + 0x2e0]
shr ebx, 1
mov ecx, dword [eax - 8]
add ebp, 0x32
test ecx, ecx
je 0x405db7
mov ecx, dword [esi + 0x168]
mov edx, dword [esi + 0x164]
push ecx
mov ecx, dword [esi + 0x1c4]
push edx
push ebp
push ebx
push eax
mov eax, dword [esi + 0x128]
push eax
call fcn.00401ff0
mov edi, eax
test edi, edi
jl 0x40663c
add ebp, dword [esi + 0x10c]
mov ecx, dword [esi + 0x2e4]
mov eax, dword [ecx - 8]
test eax, eax
je 0x405e10
mov edx, ecx
lea eax, [esp + 0x10]
push edx
push str.Lyrics:__s
push eax
call fcn.0041ed0f
mov ecx, dword [esi + 0x160]
mov edx, dword [esi + 0x15c]
mov eax, dword [esp + 0x1c]
add esp, 0xc
push ecx
mov ecx, dword [esi + 0x124]
push edx
push ebp
push ebx
push eax
push ecx
mov ecx, dword [esi + 0x1c4]
call fcn.00401ff0
mov edi, eax
test edi, edi
jl 0x40663c
add ebp, dword [esi + 0x104]
mov edx, dword [esi + 0x2e8]
mov eax, dword [edx - 8]
test eax, eax
je 0x405e69
mov eax, edx
lea ecx, [esp + 0x10]
push eax
push str.Music:__s
push ecx
call fcn.0041ed0f
mov edx, dword [esi + 0x160]
mov eax, dword [esi + 0x15c]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push edx
mov edx, dword [esi + 0x124]
push eax
push ebp
push ebx
push ecx
mov ecx, dword [esi + 0x1c4]
push edx
call fcn.00401ff0
mov edi, eax
test edi, edi
jl 0x40663c
add ebp, dword [esi + 0x104]
mov eax, dword [esi + 0x2ec]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x405ec2
mov ecx, eax
lea edx, [esp + 0x10]
push ecx
push str.Singer:__s
push edx
call fcn.0041ed0f
mov eax, dword [esi + 0x160]
mov ecx, dword [esi + 0x15c]
mov edx, dword [esp + 0x1c]
add esp, 0xc
push eax
mov eax, dword [esi + 0x124]
push ecx
mov ecx, dword [esi + 0x1c4]
push ebp
push ebx
push edx
push eax
call fcn.00401ff0
mov edi, eax
test edi, edi
jl 0x40663c
add ebp, dword [esi + 0x104]
mov ecx, dword [esi + 0x2f0]
mov eax, dword [ecx - 8]
test eax, eax
je 0x405f1b
mov edx, ecx
lea eax, [esp + 0x10]
push edx
push str.Midi:__s
push eax
call fcn.0041ed0f
mov ecx, dword [esi + 0x160]
mov edx, dword [esi + 0x15c]
mov eax, dword [esp + 0x1c]
add esp, 0xc
push ecx
mov ecx, dword [esi + 0x124]
push edx
push ebp
push ebx
push eax
push ecx
mov ecx, dword [esi + 0x1c4]
call fcn.00401ff0
mov edi, eax
test edi, edi
jl 0x40663c
add ebp, dword [esi + 0x104]
mov edx, dword [esi + 0x2f4]
mov eax, dword [edx - 8]
test eax, eax
je case.0x4058b3.4
mov eax, edx
lea ecx, [esp + 0x10]
push eax
push str.Lyrics_sync:__s
push ecx
call fcn.0041ed0f
mov edx, dword [esi + 0x160]
mov eax, dword [esi + 0x15c]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push edx
mov edx, dword [esi + 0x124]
push eax
push ebp
push ebx
push ecx
push edx
jmp 0x405900
mov ecx, dword [esi + 0xf0]
mov eax, 0xcccccccd
mul ecx
mov ebp, dword [esi + 0xec]
mov eax, dword [esi + 0x58c]
shr edx, 3
sub ecx, edx
sub ebp, 0x140
sub ecx, 0x14
mov ebx, ecx
mov ecx, dword [esi + 0x588]
shr ebp, 1
cmp eax, ecx
jne 0x405fa0
lea eax, [ecx + 1]
mov dword [esi + 0x58c], eax
mov eax, dword [esi + 0x89c]
mov edi, dword [esi + 0x58c]
lea edx, [ecx + ecx*4]
sub edi, ecx
lea eax, [eax + eax*4]
mov ecx, dword [esi + 0x1bc]
shl eax, 6
shl edx, 6
sub eax, edx
xor edx, edx
div edi
mov dword [esp + 0x90], 0x140
mov dword [esp + 0x94], 0x14
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x88]
push eax
push ecx
mov ecx, dword [esi + 0x1c4]
push ebx
push ebp
call fcn.004023e0
mov edi, eax
test edi, edi
jl 0x40663c
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x406068
mov ecx, dword [esi + 0x1bc]
mov edx, eax
lea eax, [esp + 0xb8]
mov dword [esp + 0xb8], 0
push eax
push ecx
mov ecx, dword [esi + 0x1c4]
push ebx
push ebp
mov dword [esp + 0xcc], 0x14
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], 0x28
call fcn.004023e0
mov edi, eax
test edi, edi
jl 0x40663c
mov eax, dword [esi + 0x1c4]
push 0xff00
push 0
push ebx
mov dword [eax + 0x84], 0xe
mov eax, dword [esi + 0x1c4]
mov dword [eax + 0x88], 1
mov edx, dword [esi + 0xec]
mov eax, dword [esi + 0x124]
mov ecx, dword [esi + 0x1c4]
shr edx, 1
push edx
push 0x436734
push eax
call fcn.00401ee0
mov edi, eax
test edi, edi
jl 0x40663c
jmp case.0x4058b3.4
mov ecx, dword [esi + 0xf0]
mov eax, 0xcccccccd
mul ecx
mov ebp, dword [esi + 0xec]
mov eax, dword [esi + 0x620]
shr edx, 3
sub ecx, edx
sub ebp, 0x140
sub ecx, 0x14
mov ebx, ecx
mov ecx, dword [esi + 0x61c]
shr ebp, 1
cmp eax, ecx
jne 0x4060fd
lea edx, [ecx + 1]
mov dword [esi + 0x620], edx
mov eax, dword [esi + 0x8a0]
mov edi, dword [esi + 0x620]
lea edx, [ecx + ecx*4]
sub edi, ecx
lea eax, [eax + eax*4]
mov ecx, dword [esi + 0x1bc]
shl eax, 6
shl edx, 6
sub eax, edx
xor edx, edx
div edi
mov dword [esp + 0x40], 0x140
mov dword [esp + 0x44], 0x14
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
push eax
push ecx
mov ecx, dword [esi + 0x1c4]
push ebx
push ebp
call fcn.004023e0
mov edi, eax
test edi, edi
jl 0x40663c
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x4061ad
mov ecx, dword [esi + 0x1bc]
mov edx, eax
lea eax, [esp + 0x68]
mov dword [esp + 0x68], 0
push eax
push ecx
mov ecx, dword [esi + 0x1c4]
push ebx
push ebp
mov dword [esp + 0x7c], 0x14
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], 0x28
call fcn.004023e0
mov edi, eax
test edi, edi
jl 0x40663c
mov eax, dword [esi + 0x1c4]
push 0xff00
push 0
push ebx
mov dword [eax + 0x84], 0xe
mov eax, dword [esi + 0x1c4]
mov dword [eax + 0x88], 1
mov edx, dword [esi + 0xec]
mov eax, dword [esi + 0x124]
mov ecx, dword [esi + 0x1c4]
shr edx, 1
push edx
push 0x436724
push eax
call fcn.00401ee0
mov edi, eax
test edi, edi
jl 0x40663c
jmp case.0x4058b3.4
mov ecx, dword [esi + 0xf0]
mov eax, 0xcccccccd
mul ecx
mov ebp, dword [esi + 0xec]
mov eax, dword [esi + 0x6b4]
shr edx, 3
sub ecx, edx
sub ebp, 0x140
sub ecx, 0x14
mov ebx, ecx
mov ecx, dword [esi + 0x6b0]
shr ebp, 1
cmp eax, ecx
jne 0x406242
lea edx, [ecx + 1]
mov dword [esi + 0x6b4], edx
mov eax, dword [esi + 0x8a4]
mov edi, dword [esi + 0x6b4]
lea edx, [ecx + ecx*4]
sub edi, ecx
lea eax, [eax + eax*4]
mov ecx, dword [esi + 0x1bc]
shl eax, 6
shl edx, 6
sub eax, edx
xor edx, edx
div edi
mov dword [esp + 0xb0], 0x140
mov dword [esp + 0xb4], 0x14
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
lea eax, [esp + 0xa8]
push eax
push ecx
mov ecx, dword [esi + 0x1c4]
push ebx
push ebp
call fcn.004023e0
mov edi, eax
test edi, edi
jl 0x40663c
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x4062fb
mov ecx, dword [esi + 0x1bc]
mov edx, eax
lea eax, [esp + 0x48]
mov dword [esp + 0x48], 0
push eax
push ecx
mov ecx, dword [esi + 0x1c4]
push ebx
push ebp
mov dword [esp + 0x5c], 0x14
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], 0x28
call fcn.004023e0
mov edi, eax
test edi, edi
jl 0x40663c
mov eax, dword [esi + 0x1c4]
push 0xff00
push 0
push ebx
mov dword [eax + 0x84], 0xe
mov eax, dword [esi + 0x1c4]
mov dword [eax + 0x88], 1
mov edx, dword [esi + 0xec]
mov eax, dword [esi + 0x124]
mov ecx, dword [esi + 0x1c4]
shr edx, 1
push edx
push 0x43670c
push eax
call fcn.00401ee0
mov edi, eax
test edi, edi
jl 0x40663c
jmp case.0x4058b3.4
mov ecx, dword [esi + 0xf0]
mov eax, 0xcccccccd
mul ecx
mov eax, dword [esi + 0x2d0]
mov ebp, dword [esi + 0xec]
add eax, 8
sub ebp, 0x140
shr edx, 3
lea eax, [eax + eax*4]
sub ecx, edx
shl eax, 6
cdq
and edx, 0xf
sub ecx, 0x14
add eax, edx
lea edx, [esp + 0x58]
mov ebx, eax
xor eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x1bc]
push edx
shr ebp, 1
push eax
mov dword [esp + 0x1c], ecx
push ecx
mov ecx, dword [esi + 0x1c4]
push ebp
mov dword [esp + 0x70], 0x140
sar ebx, 4
mov dword [esp + 0x74], 0x14
call fcn.004023e0
mov edi, eax
test edi, edi
jl 0x40663c
test ebx, ebx
jle 0x406420
mov edx, dword [esi + 0x1bc]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x78]
mov dword [esp + 0x78], 0
push ecx
mov ecx, dword [esi + 0x1c4]
push edx
push eax
push ebp
mov dword [esp + 0x8c], 0x14
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], 0x28
call fcn.004023e0
mov edi, eax
test edi, edi
jl 0x40663c
mov eax, dword [esi + 0x1c4]
mov ecx, dword [esp + 0x14]
push 0xff00
push 0
mov dword [eax + 0x84], 0xe
mov eax, dword [esi + 0x1c4]
push ecx
mov dword [eax + 0x88], 1
mov edx, dword [esi + 0xec]
mov eax, dword [esi + 0x124]
mov ecx, dword [esi + 0x1c4]
shr edx, 1
push edx
push 0x436700
push eax
call fcn.00401ee0
mov edi, eax
test edi, edi
jl 0x40663c
jmp case.0x4058b3.4
mov ecx, dword [esi + 0xf0]
mov eax, 0xcccccccd
mul ecx
shr edx, 3
sub ecx, edx
mov edx, dword [esi + 0x2d4]
sub ecx, 0x14
mov eax, 0x3938700
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0x2d8]
add ecx, edx
xor edx, edx
div ecx
mov ebp, dword [esi + 0xec]
sub ebp, 0x140
shr ebp, 1
cmp eax, 0xf0
jbe 0x4064c7
mov eax, 0xf0
jmp 0x4064d1
cmp eax, 0x28
jae 0x4064d1
mov eax, 0x28
lea edx, [eax + eax*4]
mov eax, 0x51eb851f
shl edx, 6
sub edx, 0x3200
mov ecx, dword [esi + 0x1bc]
mul edx
xor eax, eax
mov ebx, edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x98]
push eax
push ecx
mov ecx, dword [esi + 0x1c4]
push edx
push ebp
mov dword [esp + 0xb0], 0x140
shr ebx, 6
mov dword [esp + 0xb4], 0x14
call fcn.004023e0
mov edi, eax
test edi, edi
jl 0x40663c
test ebx, ebx
jle 0x406580
mov ecx, dword [esi + 0x1bc]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
push ecx
mov ecx, dword [esi + 0x1c4]
push edx
push ebp
mov dword [esp + 0x3c], 0x14
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 0x28
call fcn.004023e0
mov edi, eax
test edi, edi
jl 0x40663c
mov eax, dword [esi + 0x1c4]
push 0xff00
push 0
mov dword [eax + 0x84], 0xe
mov eax, dword [esi + 0x1c4]
mov dword [eax + 0x88], 1
mov ecx, dword [esi + 0xec]
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x124]
shr ecx, 1
push eax
push ecx
mov ecx, dword [esi + 0x1c4]
push 0x4366f4
push edx
call fcn.00401ee0
mov edi, eax
test edi, edi
jl 0x40663c
mov ecx, dword [esi + 0x1bc]
mov edx, dword [esi + 0xec]
lea eax, [esp + 0x28]
sub edx, 0x82
push eax
push ecx
mov ecx, dword [esi + 0x1c4]
push 0xa
push edx
mov dword [esp + 0x38], 0xa
mov dword [esp + 0x3c], 0x28
mov dword [esp + 0x40], 0x82
mov dword [esp + 0x44], 0x5a
call fcn.004023e0
mov edi, eax
test edi, edi
jl 0x40663c
mov eax, dword [esi + 0x1c4]
mov ecx, dword [esi + 0x1c0]
push 0
push eax
push 0
push 0
call fcn.004023e0
mov edi, eax
test edi, edi
jge 0x406668
lea ecx, [esp + 0x10]
mov byte [esp + 0xd0], 0
call fcn.0042407f
lea ecx, [esp + 0x18]
mov dword [esp + 0xd0], 0xffffffff
call fcn.0042407f
mov eax, edi
jmp 0x406747
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
mov ebp, dword [esi + 0x518]
call edi
mov ebx, dword [esi + 0x50c]
mov ecx, dword [esi + 0x510]
sub eax, ebx
or ebx, 0xffffffff
cmp ecx, ebx
je 0x406724
xor edx, edx
cmp ecx, edx
jbe 0x406724
cmp eax, ecx
jle 0x4066a5
mov dword [esi + 0x510], edx
jmp 0x4066ad
sub ecx, eax
mov dword [esi + 0x510], ecx
cmp dword [esi + 0x510], edx
jne case.default.0x4066be
cmp eax, edx
jle case.default.0x4066be
cmp ebp, 5
ja case.default.0x4066be
jmp dword [ebp*4 + 0x406798]
mov dword [esi + 0x508], edx
jmp 0x406707
mov dword [esi + 0x508], 1
jmp 0x406707
mov dword [esi + 0x508], 2
jmp 0x406707
mov dword [esi + 0x508], 3
jmp 0x406707
mov dword [esi + 0x508], 4
jmp 0x406707
mov dword [esi + 0x508], 5
call edi
mov dword [esi + 0x50c], eax
mov dword [esi + 0x510], ebx
mov byte [esi + 0x514], 1
call edi
mov dword [esi + 0x50c], eax
lea ecx, [esp + 0x10]
mov byte [esp + 0xd0], 0
call fcn.0042407f
lea ecx, [esp + 0x18]
mov dword [esp + 0xd0], ebx
call fcn.0042407f
xor eax, eax
mov ecx, dword [esp + 0xc8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc4
ret