Function at 0x574be0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x8c
push ebx
mov ebx, dword [esp + 0xb4]
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0xa0]
mov eax, dword [esi + 0x2ac]
mov ebp, dword [esi + 0x2b0]
mov dword [esp + 0x6c], eax
mov eax, dword [ebx]
test eax, eax
jne 0x574cdc
cmp edi, 3
je 0x574c22
cmp edi, 0xc
je 0x574c22
push 0x3c
jmp 0x574c24
push 0x64
mov ecx, 0x770890
call fcn.00479c60
push 0xff
mov ecx, 0x770890
call fcn.0047a200
cmp edi, 3
je 0x574c50
cmp edi, 0xc
je 0x574c50
cmp edi, 4
je 0x574c50
test edi, edi
jne 0x574c98
mov eax, dword [esp + 0x6c]
xor ebx, ebx
test eax, eax
jle 0x574c98
xor edi, edi
test ebp, ebp
jle 0x574c8f
cmp ebx, 5
jl 0x574c7c
mov ecx, dword [esp + 0x6c]
lea eax, [ecx - 5]
cmp ebx, eax
jg 0x574c7c
cmp edi, 5
jl 0x574c7c
lea eax, [ebp - 5]
cmp edi, eax
jle 0x574c8a
push 0x3c
push edi
push ebx
mov ecx, 0x770890
call fcn.0047a090
inc edi
cmp edi, ebp
jl 0x574c60
mov eax, dword [esp + 0x6c]
inc ebx
cmp ebx, eax
jl 0x574c5a
mov ebx, dword [esp + 0xc0]
mov dword [ebx], 1
mov dword [ebx + 4], 0xffffffff
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [esp + 0xb8]
mov ecx, dword [esp + 0xbc]
sub eax, edx
cmp eax, ecx
jb 0x574cd5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x8c
ret 0x24
mov edi, dword [esp + 0xa0]
cmp dword [ebx], 1
jne 0x5755d4
mov ecx, dword [ebx + 4]
or eax, 0xffffffff
cmp ecx, eax
jne 0x574d06
cmp edi, 1
jne 0x574cfb
mov ecx, esi
call fcn.00578bb0
mov dword [ebx + 8], eax
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebx + 0xc], eax
cmp dword [ebx + 4], 4
jge 0x57557c
mov ebp, 0xf
mov ecx, dword [ebx + 4]
cmp ecx, 1
jne 0x574d34
cmp edi, 2
je 0x574d34
cmp edi, ecx
je 0x574d34
cmp edi, 0xb
je 0x574d34
cmp edi, 9
jne 0x575563
mov edx, dword [ebx + 0xc]
mov eax, dword [esi + ecx*4 + 0x13b4]
cmp edx, eax
jge 0x575563
mov eax, dword [ebx + 0xc]
mov ecx, dword [esi + ecx*4 + 0x13a4]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
cmp byte [eax + 0xd], 1
je 0x57553a
mov edx, dword [eax]
mov ecx, dword [esi + 0x100]
push edx
call fcn.00411700
mov edi, eax
test edi, edi
je 0x57553a
mov eax, dword [edi + 8]
fld dword [eax + 0x34]
mov ecx, dword [eax + 0x38]
fsubr dword [edi + 0x38]
mov dword [esp + 0x28], ecx
fsub dword [0x634598]
call fcn.0061318c
mov dword [esp + 0x10], eax
fld dword [edi + 0x3c]
fsub dword [esp + 0x28]
fsub dword [0x634598]
call fcn.0061318c
lea edx, [esp + 0x10]
mov ecx, esi
push edx
mov dword [esp + 0x18], eax
call fcn.00576620
fld dword [esp + 0x28]
fadd dword [edi + 0x38]
fadd dword [0x634598]
call fcn.0061318c
fld dword [esp + 0x28]
mov dword [esp + 0x18], eax
fadd dword [edi + 0x3c]
fadd dword [0x634598]
call fcn.0061318c
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00576620
fld dword [edi + 0x38]
call fcn.0061318c
mov dword [esp + 0x20], eax
fld dword [edi + 0x3c]
call fcn.0061318c
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], eax
push ecx
mov ecx, esi
call fcn.00576620
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push 0xff
push edx
push eax
mov ecx, 0x770890
call fcn.00479e20
mov eax, dword [esp + 0xa0]
cmp eax, 1
jne 0x575014
mov ecx, dword [edi + 8]
mov cx, word [ecx + 0x16]
movsx eax, cx
add eax, 0xfffffff9
cmp eax, 0x19
ja case.0x5752c2.10
xor edx, edx
mov dl, byte [eax + 0x576578]
jmp dword [edx*4 + 0x576568]
mov eax, dword [esp + 0xc0]
mov edi, 3
mov bl, 1
mov eax, dword [eax + 8]
cmp eax, edi
jne 0x574e7e
cmp cx, 0x20
je 0x574e89
cmp eax, 2
jne 0x574e8b
cmp cx, 8
jne 0x574e8b
mov bl, 2
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
dec edx
dec ecx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
mov dword [esp + 0x14], edx
call fcn.00576620
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
inc edx
inc ecx
mov dword [esp + 0x18], edx
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], ecx
push edx
mov ecx, esi
call fcn.00576620
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov al, bl
shl al, 3
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
mov ecx, 0x770890
call fcn.00479f80
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
sub edx, edi
sub ecx, edi
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
mov dword [esp + 0x14], ecx
push edx
mov ecx, esi
call fcn.00576620
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
add eax, edi
add ecx, edi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ecx
push eax
mov ecx, esi
call fcn.00576620
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov cl, bl
shl cl, 2
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
mov ecx, 0x770890
call fcn.00479f80
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edi, 5
sub eax, edi
sub ecx, edi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ecx
push eax
mov ecx, esi
call fcn.00576620
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
add ecx, edi
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
add eax, edi
push ecx
mov ecx, esi
mov dword [esp + 0x20], eax
call fcn.00576620
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
shl bl, 1
push ebx
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
mov ecx, 0x770890
call fcn.00479f80
jmp case.0x5752c2.10
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
dec edi
lea eax, [esp + 0x10]
dec edx
push eax
mov ecx, esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edx
call fcn.00576620
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
inc ebx
inc edi
push ecx
mov ecx, esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edi
call fcn.00576620
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0x80
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
jmp 0x575516
mov ebx, 2
cmp eax, ebx
jne 0x57529e
mov edi, dword [edi + 8]
movsx eax, word [edi + 0x16]
add eax, 0xfffffff9
cmp eax, 0x1a
ja case.0x5752c2.10
xor ecx, ecx
mov cl, byte [eax + 0x5765ac]
jmp dword [ecx*4 + 0x576594]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edi, 3
sub edx, edi
sub ecx, edi
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
mov dword [esp + 0x14], ecx
push edx
mov ecx, esi
call fcn.00576620
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
add ebx, edi
add edx, edi
push eax
mov ecx, esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edx
call fcn.00576620
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push 0x80
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
jmp 0x575516
mov edx, dword [esi + 0x100]
mov eax, dword [edx + 0xf0]
cmp word [eax + 0xb44], 0
jle case.0x5752c2.10
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov edi, 5
lea ecx, [esp + 0x10]
sub eax, edi
sub ebx, edi
push ecx
mov ecx, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
call fcn.00576620
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
add ecx, edi
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ecx
add eax, edi
push edx
mov ecx, esi
mov dword [esp + 0x20], eax
call fcn.00576620
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push edi
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
mov ecx, 0x770890
call fcn.00479f80
jmp case.0x5752c2.10
mov di, word [edi + 0x10]
cmp di, 0x7e
je case.0x5752c2.10
cmp di, 0x59
je case.0x5752c2.10
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov edi, 3
lea ecx, [esp + 0x10]
sub eax, edi
sub ebx, edi
push ecx
mov ecx, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
call fcn.00576620
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
add eax, edi
add ebx, edi
push edx
mov ecx, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
call fcn.00576620
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ebp
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
mov ecx, 0x770890
call fcn.00479f80
jmp case.0x5752c2.10
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x10]
dec eax
dec edi
push ecx
mov ecx, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
call fcn.00576620
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
inc ecx
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ecx
inc eax
push edx
mov ecx, esi
mov dword [esp + 0x20], eax
call fcn.00576620
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ebp
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
mov ecx, 0x770890
call fcn.00479f80
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x10]
sub eax, ebx
sub edi, ebx
push ecx
mov ecx, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
call fcn.00576620
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
add ecx, ebx
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ecx
add eax, ebx
push edx
mov ecx, esi
mov dword [esp + 0x20], eax
call fcn.00576620
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ebp
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
mov ecx, 0x770890
call fcn.00479f80
jmp case.0x5752c2.10
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x10]
dec ebx
dec edi
push ecx
mov ecx, esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
call fcn.00576620
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
inc eax
inc ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
jmp 0x5754f4
cmp eax, 0xb
jne 0x5754b7
mov ecx, dword [edi + 8]
movsx eax, word [ecx + 0x16]
add eax, 0xfffffff9
cmp eax, 0x19
ja case.0x5752c2.10
xor edx, edx
mov dl, byte [eax + 0x5765d8]
jmp dword [edx*4 + 0x5765c8]
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov edi, 3
lea eax, [esp + 0x10]
sub ebx, edi
sub edx, edi
push eax
mov ecx, esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edx
call fcn.00576620
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
add eax, edi
add ebx, edi
push ecx
mov ecx, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
call fcn.00576620
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0x80
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
jmp 0x575516
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov edi, 5
lea eax, [esp + 0x10]
sub ebx, edi
sub edx, edi
push eax
mov ecx, esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edx
call fcn.00576620
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
add eax, edi
add ebx, edi
push ecx
mov ecx, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
call fcn.00576620
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0x80
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
jmp 0x575516
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
dec edi
lea eax, [esp + 0x10]
dec edx
push eax
mov ecx, esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edx
call fcn.00576620
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
inc ebx
inc edi
push ecx
mov ecx, esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edi
call fcn.00576620
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0xc
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
mov ecx, 0x770890
call fcn.00479f80
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov edi, 3
lea eax, [esp + 0x10]
sub ebx, edi
sub edx, edi
push eax
mov ecx, esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edx
call fcn.00576620
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
add eax, edi
add ebx, edi
push ecx
mov ecx, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
call fcn.00576620
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 4
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
mov ecx, 0x770890
call fcn.00479f80
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov edi, 5
lea eax, [esp + 0x10]
sub ebx, edi
sub edx, edi
push eax
mov ecx, esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edx
call fcn.00576620
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
add eax, edi
add ebx, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00576620
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 1
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
mov ecx, 0x770890
call fcn.00479f80
jmp case.0x5752c2.10
mov eax, dword [edi + 8]
cmp word [eax + 0x16], bp
je 0x575500
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
sub ecx, ebx
sub eax, ebx
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.00576620
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add edx, ebx
add ecx, ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x18]
mov ecx, esi
push edx
call fcn.00576620
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 5
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
mov ecx, 0x770890
call fcn.0047a100
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [esp + 0xb8]
mov ecx, dword [esp + 0xbc]
sub eax, edx
cmp eax, ecx
jae 0x5755b7
mov ebx, dword [esp + 0xc0]
mov edi, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
inc edi
mov dword [ebx + 0xc], edi
mov edx, dword [esi + ecx*4 + 0x13b4]
mov eax, edi
cmp eax, edx
jl 0x574d46
mov edi, dword [esp + 0xa0]
mov edx, dword [ebx + 4]
mov dword [ebx + 0xc], 0
inc edx
mov eax, edx
mov dword [ebx + 4], edx
cmp eax, 4
jl 0x574d15
mov ecx, dword [esp + 0xac]
mov dword [ebx], 2
mov edx, dword [ecx]
mov dword [ebx + 4], edx
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [esp + 0xb8]
mov ecx, dword [esp + 0xbc]
sub eax, edx
cmp eax, ecx
jb 0x5755d4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x8c
ret 0x24
mov eax, dword [esp + 0xc0]
pop edi
pop esi
pop ebp
mov ecx, dword [eax + 0xc]
pop ebx
inc ecx
mov dword [eax + 0xc], ecx
xor eax, eax
add esp, 0x8c
ret 0x24
cmp dword [ebx], 2
jne 0x5758e5
mov eax, dword [esi + 0x100]
mov ecx, dword [eax + 0xf0]
mov edx, dword [ecx + 0x8c]
mov ecx, dword [ebx + 4]
mov eax, dword [edx + 0x34]
mov edx, dword [esp + 0xb0]
mov dword [esp + 0x10], eax
cmp ecx, dword [edx]
jg 0x575776
mov ebp, dword [esp + 0xc0]
mov ebx, edx
mov eax, dword [esp + 0xac]
mov edi, dword [eax + 4]
mov eax, dword [ebx + 4]
cmp edi, eax
jg 0x575745
mov cx, word [ebp + 4]
push edi
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00487e80
mov edx, dword [0x68ca14]
mov bl, al
mov eax, dword [ebp + 4]
mov ecx, dword [edx + 0x1c]
mov edx, dword [ecx + edi*4]
test dword [edx + eax*4], 0x4003
je 0x575660
push 0xff
push edi
push eax
mov ecx, 0x770890
call fcn.00479e20
mov eax, dword [esp + 0xa0]
cmp eax, 2
je 0x575703
cmp eax, 3
je 0x57570c
cmp eax, 7
je 0x575703
cmp bl, 1
je 0x575691
cmp bl, 0x15
jbe 0x575703
cmp bl, 0x17
ja 0x575703
mov eax, dword [ebp + 4]
lea edx, [edi - 3]
mov dword [esp + 0x30], edx
lea ecx, [eax - 3]
add eax, 3
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], eax
lea eax, [edi + 3]
push ecx
mov ecx, esi
mov dword [esp + 0x28], eax
call fcn.00576620
lea edx, [esp + 0x20]
mov ecx, esi
push edx
call fcn.00576620
mov eax, dword [ebp + 4]
push 0xff
push edi
push eax
mov ecx, 0x770890
call fcn.00479e20
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
push 0xa
push ecx
mov ecx, dword [esp + 0x34]
push edx
push eax
push ecx
mov ecx, 0x770890
call fcn.0047a100
mov eax, dword [esp + 0xa0]
cmp eax, 3
je 0x57570c
test eax, eax
jne 0x575732
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 4]
mov ecx, dword [edx + 0xa214]
mov edx, eax
shl edx, 5
mov ecx, dword [ecx + edi*4]
mov dl, byte [ecx + edx + 6]
mov ecx, 0x770890
push edx
push edi
push eax
call fcn.00479f00
mov eax, dword [esp + 0xb0]
inc edi
cmp edi, dword [eax + 4]
jle 0x575626
mov ebx, eax
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [esp + 0xb8]
mov ecx, dword [esp + 0xbc]
sub eax, edx
cmp eax, ecx
jae 0x575860
mov edx, dword [ebp + 4]
inc edx
mov dword [ebp + 4], edx
mov ecx, dword [ebx]
mov eax, edx
cmp eax, ecx
jle 0x575611
mov eax, dword [esi + 0x11d0]
xor ebx, ebx
test eax, eax
jle 0x5758a8
xor edi, edi
mov ecx, dword [esi + 0x11d4]
lea eax, [edi + ecx]
mov ecx, dword [edi + ecx]
cmp ecx, 0xffffffff
je 0x575896
mov ecx, dword [esi + 0x100]
xor edx, edx
mov dl, byte [eax + 0xa]
mov ecx, dword [ecx + 0xf0]
cmp edx, dword [ecx + 0x9c]
jne 0x575896
xor edx, edx
xor ecx, ecx
mov dl, byte [eax + 5]
sub edx, 4
mov dword [esp + 0x2c], edx
mov cl, byte [eax + 6]
sub ecx, 4
lea edx, [esp + 0x2c]
mov dword [esp + 0x30], ecx
push edx
mov ecx, esi
call fcn.00576620
mov eax, dword [esi + 0x11d4]
xor ecx, ecx
add eax, edi
xor edx, edx
mov cl, byte [eax + 7]
add ecx, 4
mov dword [esp + 0x20], ecx
mov dl, byte [eax + 8]
lea eax, [esp + 0x20]
add edx, 4
push eax
mov ecx, esi
mov dword [esp + 0x28], edx
call fcn.00576620
mov eax, dword [esp + 0xa0]
cmp eax, 3
je 0x575876
cmp eax, 4
je 0x575876
mov edx, dword [0x6833d0]
mov ecx, dword [esi + 0x11d4]
mov eax, dword [edx + 0x424]
mov ebp, dword [edi + ecx + 0x10]
mov edx, dword [eax + 0x10]
sub edx, ebp
cmp edx, 0x493e0
jae 0x575896
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
push 0x10
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
mov ecx, 0x770890
call fcn.0047a100
jmp 0x575896
mov eax, dword [ebp + 4]
pop edi
inc eax
pop esi
mov dword [ebp + 4], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x8c
ret 0x24
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
push 1
push ecx
mov ecx, dword [esp + 0x34]
push edx
push eax
push ecx
mov ecx, 0x770890
call fcn.00479f80
mov eax, dword [esi + 0x11d0]
inc ebx
add edi, 0x18
cmp ebx, eax
jl 0x575788
mov ebx, dword [esp + 0xc0]
mov dword [ebx], 3
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [esp + 0xb8]
mov ecx, dword [esp + 0xbc]
sub eax, edx
cmp eax, ecx
jb 0x5758de
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x8c
ret 0x24
mov edi, dword [esp + 0xa0]
cmp dword [ebx], 3
jne 0x5761fc
cmp edi, 1
je 0x57592d
cmp edi, 2
je 0x57592d
cmp edi, 0xb
je 0x57592d
cmp edi, 0xc
je 0x57592d
cmp edi, 3
je 0x57592d
cmp edi, 4
je 0x57592d
test edi, edi
je 0x57592d
cmp edi, 5
je 0x57592d
cmp edi, 6
je 0x57592d
cmp edi, 0xa
je 0x57592d
cmp edi, 8
je 0x57592d
cmp edi, 9
jne 0x5761cd
mov eax, dword [esi + 0x33c]
test eax, eax
jle 0x5761cd
mov ecx, 1
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], ecx
mov eax, dword [esi + 0x344]
lea edi, [ecx - 1]
lea edx, [eax - 1]
cmp edi, edx
jle 0x5759c3
cmp ecx, eax
jl 0x575967
lea ebx, [eax + 0x20]
cmp ebx, ecx
jg 0x575969
mov ebx, ecx
lea eax, [ebx*4]
push eax
call fcn.0061317d
mov edi, eax
add esp, 4
test edi, edi
je 0x5759c3
mov ecx, dword [esi + 0x344]
xor eax, eax
test ecx, ecx
jle 0x5759a8
cmp eax, ebx
jge 0x5759a8
mov ecx, dword [esi + 0x338]
inc eax
mov edx, dword [ecx + eax*4 - 4]
mov dword [edi + eax*4 - 4], edx
mov ecx, dword [esi + 0x344]
cmp eax, ecx
jl 0x57598b
mov eax, dword [esi + 0x338]
push eax
call fcn.00613172
add esp, 4
mov dword [esi + 0x338], edi
mov dword [esi + 0x344], ebx
mov ecx, dword [esi + 0x338]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + ecx]
mov ecx, dword [esi + 0x100]
push eax
call fcn.00411700
mov edi, eax
test edi, edi
je 0x57619a
mov ecx, dword [edi + 8]
movsx edx, word [ecx + 0x10]
push edx
mov ecx, esi
call fcn.00576760
mov ebp, dword [esp + 0xa0]
mov ebx, eax
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x34]
push eax
push ecx
push ebp
push ebx
push edi
mov ecx, esi
call fcn.00578ea0
cmp ebx, 9
jne 0x575a4e
cmp ebp, 8
je 0x575a4e
cmp ebp, 6
je 0x575a4e
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov eax, 3
sub edx, eax
sub ecx, eax
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x40]
add edx, eax
add ecx, eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ecx
lea edx, [esp + 0x34]
mov ecx, esi
push edx
call fcn.00576620
lea eax, [esp + 0x3c]
mov ecx, esi
push eax
call fcn.00576620
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push 0xff
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push eax
push ecx
mov ecx, 0x770890
call fcn.00479e70
cmp ebp, 3
je 0x576003
cmp ebp, 0xc
je 0x576003
test ebp, ebp
je 0x576003
cmp ebp, 1
je 0x575f61
cmp ebp, 2
je 0x575f61
cmp ebp, 0xb
je 0x575f61
cmp ebp, 9
jne 0x575b76
mov edx, dword [edi + 8]
fld dword [edx + 0x2c]
fcom dword [0x639c20]
fnstsw ax
test ah, 1
jne 0x575ae2
fstp st(0)
fld dword [0x639c20]
cmp ebx, 1
je 0x575af1
cmp ebx, 2
je 0x575af1
cmp ebx, 0xb
jne 0x575af9
fstp st(0)
fld dword [0x6345b0]
call fcn.0061318c
mov ecx, dword [esp + 0x38]
mov edi, eax
mov eax, dword [esp + 0x34]
sub ecx, edi
lea edx, [esp + 0x7c]
sub eax, edi
mov dword [esp + 0x80], ecx
push edx
mov ecx, esi
mov dword [esp + 0x80], eax
call fcn.00576620
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
lea ecx, [edi + eax]
lea eax, [esp + 0x84]
mov dword [esp + 0x84], ecx
add edi, edx
push eax
mov ecx, esi
mov dword [esp + 0x8c], edi
call fcn.00576620
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
push 0xa
push ecx
mov ecx, dword [esp + 0x84]
push edx
push eax
jmp 0x57618f
cmp ebp, 5
jne 0x575c27
mov edx, dword [edi + 8]
fld dword [edx + 0x2c]
fcom dword [0x639c20]
fnstsw ax
test ah, 1
jne 0x575b9a
fstp st(0)
fld dword [0x639c20]
cmp ebx, 9
jne 0x575ba5
fmul dword [0x634958]
call fcn.0061318c
mov ecx, dword [esp + 0x38]
mov edi, eax
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x8c]
shl edi, 1
sub ecx, edi
sub eax, edi
mov dword [esp + 0x90], ecx
push edx
mov ecx, esi
mov dword [esp + 0x90], eax
call fcn.00576620
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
lea ecx, [edi + eax]
lea eax, [esp + 0x94]
mov dword [esp + 0x94], ecx
add edi, edx
push eax
mov ecx, esi
mov dword [esp + 0x9c], edi
call fcn.00576620
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x90]
push 0x3c
push ecx
mov ecx, dword [esp + 0x94]
push edx
push eax
jmp 0x57618f
cmp ebp, 8
jne 0x575dcc
cmp ebx, 9
je 0x575c42
cmp ebx, 2
je 0x575c42
cmp ebx, ebp
jne 0x57619a
mov edx, dword [edi + 8]
fld dword [edx + 0x2c]
fcom dword [0x639c20]
fnstsw ax
test ah, 1
jne 0x575c5d
fstp st(0)
fld dword [0x639c20]
sub ebx, 2
mov byte [esp + 0x48], 0x3c
je 0x575c7d
sub ebx, 6
je 0x575c76
dec ebx
jne 0x575c82
mov byte [esp + 0x48], 0xf0
jmp 0x575c82
mov byte [esp + 0x48], 0x3c
jmp 0x575c82
mov byte [esp + 0x48], 0x78
call fcn.0061318c
mov ecx, dword [esp + 0x38]
mov edi, eax
mov eax, dword [esp + 0x34]
sub ecx, edi
lea edx, [esp + 0x64]
sub eax, edi
mov dword [esp + 0x68], ecx
push edx
mov ecx, esi
mov dword [esp + 0x68], eax
call fcn.00576620
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
lea ecx, [edi + eax]
lea eax, [edi + edx]
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x54]
push ecx
mov ecx, esi
mov dword [esp + 0x5c], eax
call fcn.00576620
mov ebp, dword [esp + 0x48]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x68]
push ebp
push edx
mov edx, dword [esp + 0x6c]
push eax
push ecx
push edx
mov ecx, 0x770890
call fcn.00479f80
mov eax, edi
mov ecx, dword [esp + 0x38]
cdq
sub eax, edx
lea edx, [esp + 0x64]
mov ebx, eax
mov eax, dword [esp + 0x34]
sar ebx, 1
sub ecx, ebx
sub eax, ebx
mov dword [esp + 0x68], ecx
push edx
mov ecx, esi
mov dword [esp + 0x68], eax
call fcn.00576620
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
lea ecx, [ebx + eax]
lea eax, [esp + 0x54]
mov dword [esp + 0x54], ecx
add ebx, edx
push eax
mov ecx, esi
mov dword [esp + 0x5c], ebx
call fcn.00576620
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x68]
push ebp
push ecx
mov ecx, dword [esp + 0x6c]
push edx
push eax
push ecx
mov ecx, 0x770890
call fcn.00479f80
mov eax, 0x55555556
mov ecx, dword [esp + 0x34]
imul edi
mov eax, edx
shr eax, 0x1f
add edx, eax
mov edi, edx
mov edx, dword [esp + 0x38]
sub ecx, edi
sub edx, edi
mov dword [esp + 0x64], ecx
lea eax, [esp + 0x64]
mov ecx, esi
push eax
mov dword [esp + 0x6c], edx
call fcn.00576620
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
lea edx, [edi + ecx]
lea ecx, [esp + 0x54]
add edi, eax
push ecx
mov ecx, esi
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], edi
call fcn.00576620
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x68]
push ebp
push edx
mov edx, dword [esp + 0x6c]
push eax
push ecx
push edx
mov ecx, 0x770890
call fcn.00479f80
jmp 0x57619a
cmp ebp, 6
jne 0x57619a
mov eax, dword [edi + 8]
fld dword [eax + 0x2c]
fcom dword [0x639c20]
fnstsw ax
test ah, 1
jne 0x575df0
fstp st(0)
fld dword [0x639c20]
lea eax, [ebx - 2]
mov byte [esp + 0x28], 0x3c
cmp eax, 0xa
ja case.0x575dfd.4
jmp dword [eax*4 + 0x5765f4]
mov byte [esp + 0x28], 0xf0
jmp case.0x575dfd.4
mov byte [esp + 0x28], 0xb4
jmp case.0x575dfd.4
mov byte [esp + 0x28], 0x78
call fcn.0061318c
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov edi, eax
lea eax, [esp + 0x5c]
sub ecx, edi
sub edx, edi
mov dword [esp + 0x5c], ecx
push eax
mov ecx, esi
mov dword [esp + 0x64], edx
call fcn.00576620
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
lea edx, [edi + ecx]
lea ecx, [edi + eax]
mov dword [esp + 0x4c], edx
lea edx, [esp + 0x4c]
mov dword [esp + 0x50], ecx
push edx
mov ecx, esi
call fcn.00576620
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x60]
push ebp
push eax
mov eax, dword [esp + 0x64]
push ecx
push edx
push eax
mov ecx, 0x770890
call fcn.00479f80
mov eax, edi
mov ecx, dword [esp + 0x34]
cdq
sub eax, edx
mov edx, dword [esp + 0x38]
mov ebx, eax
lea eax, [esp + 0x5c]
sar ebx, 1
sub ecx, ebx
sub edx, ebx
mov dword [esp + 0x5c], ecx
push eax
mov ecx, esi
mov dword [esp + 0x64], edx
call fcn.00576620
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
lea edx, [ebx + ecx]
lea ecx, [esp + 0x4c]
add ebx, eax
push ecx
mov ecx, esi
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], ebx
call fcn.00576620
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x60]
push ebp
push edx
mov edx, dword [esp + 0x64]
push eax
push ecx
push edx
mov ecx, 0x770890
call fcn.00479f80
mov eax, 0x55555556
mov ecx, dword [esp + 0x34]
imul edi
mov eax, edx
shr eax, 0x1f
add edx, eax
mov edi, edx
mov edx, dword [esp + 0x38]
sub ecx, edi
sub edx, edi
mov dword [esp + 0x5c], ecx
lea eax, [esp + 0x5c]
mov ecx, esi
push eax
mov dword [esp + 0x64], edx
call fcn.00576620
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
lea edx, [edi + ecx]
lea ecx, [esp + 0x4c]
add edi, eax
push ecx
mov ecx, esi
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edi
call fcn.00576620
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x60]
push ebp
push edx
mov edx, dword [esp + 0x64]
push eax
push ecx
push edx
mov ecx, 0x770890
call fcn.00479f80
jmp 0x57619a
mov eax, dword [edi + 8]
fld dword [eax + 0x2c]
fcom dword [0x639c20]
fnstsw ax
test ah, 1
jne 0x575f7c
fstp st(0)
fld dword [0x639c20]
cmp ebx, 9
jne 0x575f89
fmul dword [0x634598]
jmp 0x575fa0
cmp ebx, 1
je 0x575f98
cmp ebx, 2
je 0x575f98
cmp ebx, 0xb
jne 0x575fa0
fstp st(0)
fld dword [0x6345b0]
call fcn.0061318c
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov edi, eax
lea eax, [esp + 0x6c]
sub ecx, edi
sub edx, edi
mov dword [esp + 0x6c], ecx
push eax
mov ecx, esi
mov dword [esp + 0x74], edx
call fcn.00576620
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
lea edx, [edi + ecx]
lea ecx, [esp + 0x74]
add edi, eax
push ecx
mov ecx, esi
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], edi
call fcn.00576620
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
push 0xa
push edx
mov edx, dword [esp + 0x74]
push eax
push ecx
push edx
jmp 0x576190
cmp ebx, 3
jne 0x576018
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x128]
fstp dword [esp + 0x44]
jmp 0x576022
mov ecx, dword [edi + 8]
mov edx, dword [ecx + 0x2c]
mov dword [esp + 0x44], edx
cmp ebp, 3
je 0x57603a
cmp ebp, 0xc
je 0x57603a
fld dword [esp + 0x44]
fmul dword [0x634598]
fstp dword [esp + 0x44]
cmp ebx, 9
jne 0x57604f
fld dword [esp + 0x44]
fmul dword [0x634598]
fstp dword [esp + 0x44]
jmp 0x576054
cmp ebx, 3
je 0x576072
cmp ebp, 0xc
je 0x576072
fld dword [esp + 0x44]
fcomp dword [0x639c20]
fnstsw ax
test ah, 1
jne 0x576072
mov dword [esp + 0x44], 0x40c00000
fld dword [esp + 0x44]
call fcn.0061318c
mov ecx, dword [esp + 0x38]
mov edi, eax
mov eax, dword [esp + 0x34]
sub ecx, edi
lea edx, [esp + 0x20]
sub eax, edi
mov dword [esp + 0x24], ecx
push edx
mov ecx, esi
mov dword [esp + 0x24], eax
call fcn.00576620
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
lea ecx, [edi + eax]
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], ecx
add edi, edx
push eax
mov ecx, esi
mov dword [esp + 0x34], edi
call fcn.00576620
test ebp, ebp
jne 0x5760f0
cmp ebx, 3
jne 0x57617a
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
push 0xa
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
mov ecx, 0x770890
call fcn.00479f80
jmp 0x57619a
cmp ebp, 3
jne 0x57615d
cmp ebx, ebp
jne 0x57619a
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
push 0xa
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
mov ecx, 0x770890
call fcn.0047a100
fld dword [esp + 0x44]
fmul dword [0x634598]
fild dword [esp + 0x30]
push 0xa
fsub st(1)
call fcn.0061318c
fild dword [esp + 0x30]
push eax
fsub st(1)
call fcn.0061318c
fild dword [esp + 0x2c]
push eax
fadd st(1)
call fcn.0061318c
fild dword [esp + 0x2c]
push eax
fadd st(1)
call fcn.0061318c
fstp st(0)
push eax
jmp 0x576190
cmp ebp, 0xc
jne 0x57617a
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
push 0x14
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
jmp 0x576190
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
push 0xa
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
mov ecx, 0x770890
call fcn.0047a100
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x33c]
inc ecx
add edx, 4
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edx
lea edx, [ecx - 1]
cmp edx, eax
jl 0x57594c
mov edi, dword [esp + 0xa0]
mov ebx, dword [esp + 0xc0]
mov dword [ebx], 4
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [esp + 0xb8]
mov ecx, dword [esp + 0xbc]
sub eax, edx
cmp eax, ecx
jb 0x5761fc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x8c
ret 0x24
cmp dword [ebx], 4
jne 0x576434
mov eax, dword [esi + 0x2b8]
mov dword [esp + 0x18], 0
test eax, eax
jle 0x576405
mov dword [esp + 0x28], 0
mov eax, dword [esi + 0x2bc]
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + eax]
cmp eax, 0xffffffff
je 0x5763d5
mov ecx, dword [esi + 0x100]
push eax
call fcn.00411700
mov edi, eax
test edi, edi
je 0x5763d5
cmp byte [edi + 0x48], 2
ja 0x5763d5
push edi
mov ecx, esi
call fcn.00571c60
test eax, eax
je 0x5763d5
mov edx, dword [esi + 0x100]
mov ebp, dword [esp + 0x28]
xor ebx, ebx
mov ecx, dword [edx + 0xf0]
mov edx, dword [esi + 0x2bc]
mov bl, byte [edx + ebp + 0xb]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x1c]
mov ebp, eax
mov eax, dword [edi + 8]
movsx ecx, word [eax + 0x10]
push ecx
mov ecx, esi
call fcn.00576760
mov ebx, eax
lea edx, [esp + 0x20]
lea eax, [esp + 0x2c]
push edx
push eax
push 0xffffffffffffffff
push ebx
push edi
mov ecx, esi
call fcn.00578ea0
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x57633a
test ebp, ebp
jne 0x5763b2
mov ecx, dword [edi + 8]
fld dword [ecx + 0x2c]
call fcn.0061318c
mov edx, dword [esp + 0x2c]
mov edi, eax
mov eax, dword [esp + 0x30]
sub edx, edi
sub eax, edi
lea ecx, [esp + 0x74]
sub edx, 2
sub eax, 2
push ecx
mov ecx, esi
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], eax
call fcn.00576620
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
lea eax, [edx + edi + 2]
lea edx, [ecx + edi + 2]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x6c]
push eax
mov ecx, esi
mov dword [esp + 0x74], edx
call fcn.00576620
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x78]
push 0xff
push ecx
mov ecx, dword [esp + 0x7c]
push edx
push eax
jmp 0x5763ca
test ebp, ebp
jne 0x5763b2
cmp ebx, 3
je 0x576352
cmp ebx, 9
je 0x576352
mov edx, dword [edi + 8]
cmp word [edx + 0x10], 0x52
jne 0x5763b2
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x128]
fild dword [esp + 0x2c]
fsub st(1)
fadd dword [0x634598]
call fcn.0061318c
fild dword [esp + 0x30]
mov dword [esp + 0x2c], eax
fsub st(1)
fadd dword [0x634598]
call fcn.0061318c
fild dword [esp + 0x20]
mov dword [esp + 0x30], eax
fadd st(1)
fadd dword [0x634598]
call fcn.0061318c
fild dword [esp + 0x24]
mov dword [esp + 0x20], eax
fadd st(1)
fadd dword [0x634598]
call fcn.0061318c
fstp st(0)
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
push 0xff
push ecx
mov ecx, dword [esp + 0x34]
push edx
push eax
push ecx
mov ecx, 0x770890
call fcn.00479e70
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov ecx, dword [esi + 0x2b8]
inc eax
add edx, 0x2c
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], edx
jl 0x576223
mov edi, dword [esp + 0xa0]
mov ebx, dword [esp + 0xc0]
mov dword [ebx], 5
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [esp + 0xb8]
mov ecx, dword [esp + 0xbc]
sub eax, edx
cmp eax, ecx
jb 0x576434
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x8c
ret 0x24
cmp dword [ebx], 5
jne 0x576555
test edi, edi
je 0x576532
add esi, 0x117c
mov dword [esp + 0x48], 2
mov dword [esp + 0x28], esi
mov eax, dword [esi - 4]
test eax, eax
je 0x57651a
mov eax, dword [esi]
mov dword [esp + 0x18], 0
test eax, eax
jle 0x57651a
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0x24]
add ebx, ecx
mov edi, dword [ebx + 0x18]
mov esi, dword [ebx + 0x20]
cmp edi, esi
je 0x5764df
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x24]
cmp eax, ecx
je 0x5764df
xor edx, edx
cmp edi, esi
setge dl
dec edx
and edx, 2
dec edx
mov ebp, edx
xor edx, edx
cmp eax, ecx
setge dl
dec edx
sub edi, ebp
and edx, 2
dec edx
mov ecx, edx
sub eax, ecx
mov dword [esp + 0x44], ecx
mov esi, eax
mov ecx, dword [esp + 0x44]
add edi, ebp
add esi, ecx
push 0xff
push esi
push edi
mov ecx, 0x770890
call fcn.00479e20
cmp edi, dword [ebx + 0x20]
jne 0x5764bf
jmp 0x5764f8
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x1c]
push 0xff
push eax
push esi
push ecx
push edi
mov ecx, 0x770890
call fcn.00479e70
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
add edx, 0x28
inc eax
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov esi, edx
cmp eax, dword [edx]
jl 0x57647c
mov eax, dword [esp + 0x48]
add esi, 0x2c
dec eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x48], eax
jne 0x576457
jmp 0x576548
mov ecx, dword [esi + 0x100]
push 0x770890
add ecx, 0x4588
call fcn.005927f0
mov eax, dword [esp + 0xc0]
mov dword [eax], 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x8c
ret 0x24