Function at 0x42de80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7030
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
mov dword [ebp - 0x84], ecx
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x14], 0
jmp 0x42deba
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx + 0x2164]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x2c]
jge 0x42df3e
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
jne 0x42df26
mov edx, dword [ebp - 0x84]
add edx, 0x215c
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x14], 0
jl 0x42df0a
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 8]
jge 0x42df0a
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x30
mov eax, dword [ebp - 0x34]
add edx, dword [eax + 4]
mov dword [ebp - 0x30], edx
jmp 0x42df0f
call fcn.004b353e
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x1c]
test edx, edx
jne 0x42df26
mov dword [ebp - 0x88], 0
jmp 0x42df30
mov dword [ebp - 0x88], 1
mov al, byte [ebp - 0x88]
mov byte [ebp - 0xd], al
jmp 0x42deb1
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x42e11b
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0x240]
sub eax, 0x10
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00402570
add esp, 4
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x3c]
add edx, 0x10
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0
push 0
push 0x4d2938
lea ecx, [ebp - 0x18]
call fcn.0041a860
cmp eax, 0xffffffff
jne 0x42e0e5
call fcn.004c1eab
mov eax, dword [eax + 4]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x60]
push edx
lea ecx, [ebp - 0x20]
call fcn.00401e40
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x60], eax
push 0x5c
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.0049f4a4
add esp, 8
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x42dfda
mov dword [ebp - 0x8c], 0xffffffff
jmp 0x42dfe8
mov edx, dword [ebp - 0x5c]
sub edx, dword [ebp - 0x20]
sar edx, 1
mov dword [ebp - 0x8c], edx
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jl 0x42e067
mov ecx, dword [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x20]
call fcn.00419350
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00402240
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.0044f730
mov edx, 0x4d2938
test edx, edx
jne 0x42e044
mov dword [ebp - 0x6c], 0
jmp 0x42e054
push 0x4d2938
call fcn.0049d13d
add esp, 4
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
push eax
push 0x4d2938
lea ecx, [ebp - 0x20]
call fcn.00401ba0
jmp 0x42e09a
mov ecx, 0x4cd9d4
test ecx, ecx
jne 0x42e079
mov dword [ebp - 0x70], 0
jmp 0x42e089
push 0x4cd9d4
call fcn.0049d13d
add esp, 4
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
push edx
push 0x4cd9d4
lea ecx, [ebp - 0x20]
call fcn.004023c0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00419430
add esp, 0xc
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00402240
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0044f730
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0044f730
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42e10c
push 0x20003
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WINMM.dll_PlaySoundW]
test eax, eax
je 0x42e10c
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0044f730
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret