Function at 0x42d220
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c2770
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 0x42d25a
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx + 0x22d0]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x2c]
jge 0x42d2de
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
jne 0x42d2c6
mov edx, dword [ebp - 0x84]
add edx, 0x22c8
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x14], 0
jl 0x42d2aa
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 8]
jge 0x42d2aa
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x2c
mov eax, dword [ebp - 0x34]
add edx, dword [eax + 4]
mov dword [ebp - 0x30], edx
jmp 0x42d2af
call fcn.004aec94
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x1c]
test edx, edx
jne 0x42d2c6
mov dword [ebp - 0x88], 0
jmp 0x42d2d0
mov dword [ebp - 0x88], 1
mov al, byte [ebp - 0x88]
mov byte [ebp - 0xd], al
jmp 0x42d251
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x42d4bb
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0x1a4]
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 0x4cd7a8
lea ecx, [ebp - 0x18]
call fcn.0041a830
cmp eax, 0xffffffff
jne 0x42d485
call fcn.004bd601
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.0049aaa4
add esp, 8
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x42d37a
mov dword [ebp - 0x8c], 0xffffffff
jmp 0x42d388
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 0x42d407
mov ecx, dword [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x20]
call fcn.00419330
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.0044e670
mov edx, 0x4cd7a8
test edx, edx
jne 0x42d3e4
mov dword [ebp - 0x6c], 0
jmp 0x42d3f4
push 0x4cd7a8
call fcn.0049873d
add esp, 4
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
push eax
push 0x4cd7a8
lea ecx, [ebp - 0x20]
call fcn.00401ba0
jmp 0x42d43a
mov ecx, 0x4c89d4
test ecx, ecx
jne 0x42d419
mov dword [ebp - 0x70], 0
jmp 0x42d429
push 0x4c89d4
call fcn.0049873d
add esp, 4
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
push edx
push 0x4c89d4
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.00419410
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.0044e670
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0044e670
mov edx, dword [ebp - 0x18]
push edx
call dword [0x4c8504]
test eax, eax
je 0x42d4ac
push 0x20003
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WINMM.dll_PlaySoundW]
test eax, eax
je 0x42d4ac
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0044e670
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret