Function at 0x4159f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10d0
call fcn.0042d250
mov eax, dword [0x438374]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10d0], ecx
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea ecx, [ebp - 0x30]
call fcn.00401920
cmp dword [0x43863c], 0
jne 0x415a66
lea ecx, [ebp - 0x40]
push ecx
push str.image_bmp
call fcn.00415900
add esp, 8
movzx edx, word [ebp - 0x44]
push edx
movzx eax, word [ebp - 0x46]
push eax
movzx ecx, word [ebp - 0x48]
push ecx
movzx edx, word [ebp - 0x4a]
push edx
mov eax, dword [0x438648]
push eax
push str._s_d_d_d_d.bmp
lea ecx, [ebp - 0x30]
push ecx
call fcn.004103c0
add esp, 0x1c
jmp 0x415aa3
lea edx, [ebp - 0x40]
push edx
push str.image_jpeg
call fcn.00415900
add esp, 8
movzx eax, word [ebp - 0x44]
push eax
movzx ecx, word [ebp - 0x46]
push ecx
movzx edx, word [ebp - 0x48]
push edx
movzx eax, word [ebp - 0x4a]
push eax
mov ecx, dword [0x438648]
push ecx
push str._s_d_d_d_d.jpg
lea edx, [ebp - 0x30]
push edx
call fcn.004103c0
add esp, 0x1c
mov dword [ebp - 0x24], 1
mov eax, dword [0x430fa4]
mov dword [ebp - 0x20], eax
mov ecx, dword [0x430fa8]
mov dword [ebp - 0x1c], ecx
mov edx, dword [0x430fac]
mov dword [ebp - 0x18], edx
mov eax, dword [0x430fb0]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x2c], 0x5a
lea ecx, [ebp - 0x2c]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x28], 0
cmp dword [ebp + 0x10], 0
je 0x415b04
cmp dword [ebp + 8], 0
je 0x415b04
cmp dword [ebp + 0xc], 0
jne 0x415bb6
push 0x28
push 0
lea edx, [ebp - 0x7c]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
call fcn.00407ea0
mov ecx, eax
call fcn.00407eb0
mov ecx, eax
call fcn.0040c930
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x415b99
cmp dword [ebp - 0x78], 0
jle 0x415b99
cmp dword [ebp - 0x74], 0
jle 0x415b99
mov ecx, dword [ebp - 0x54]
push ecx
lea edx, [ebp - 0x7c]
push edx
lea ecx, [ebp - 0x8c]
call fcn.00418780
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x30]
call fcn.0040f230
push eax
lea ecx, [ebp - 0x8c]
call fcn.00418750
test eax, eax
jne 0x415b8e
lea ecx, [ebp - 0x30]
call fcn.0040f230
push eax
mov ecx, dword [ebp - 0x10d0]
call fcn.004156b0
mov dword [ebp - 0x28], 1
lea ecx, [ebp - 0x8c]
call fcn.00405810
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x10cc], edx
mov eax, dword [ebp - 0x10cc]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
jmp 0x415c59
push 0x28
push 0
lea ecx, [ebp - 0xb4]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0xb4], 0x28
mov edx, dword [ebp + 8]
mov dword [ebp - 0xb0], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xac], eax
mov ecx, 1
mov word [ebp - 0xa8], cx
mov edx, 0x18
mov word [ebp - 0xa6], dx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0xb4]
push ecx
lea ecx, [ebp - 0xc4]
call fcn.00418780
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040f230
push eax
lea ecx, [ebp - 0xc4]
call fcn.00418750
test eax, eax
jne 0x415c4e
lea ecx, [ebp - 0x30]
call fcn.0040f230
push eax
mov ecx, dword [ebp - 0x10d0]
call fcn.004156b0
mov dword [ebp - 0x28], 1
lea ecx, [ebp - 0xc4]
call fcn.00405810
cmp dword [ebp - 0x28], 0
je 0x415d02
xor ecx, ecx
mov word [ebp - 0x10c8], cx
push 0xffe
push 0
lea edx, [ebp - 0x10c6]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x800
lea eax, [ebp - 0x10c8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x10c8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str._snapshot.wav
lea edx, [ebp - 0x10c8]
push edx
call dword [sym.imp.MSVCR90.dll_wcscat]
add esp, 8
lea eax, [ebp - 0x10c8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x415cdc
push 3
push 0
lea ecx, [ebp - 0x10c8]
push ecx
call dword [sym.imp.WINMM.dll_PlaySoundW]
jmp 0x415ce4
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
cmp dword [0x43864c], 0
je 0x415d02
mov ecx, dword [ebp - 0x10d0]
add ecx, 0x54
call fcn.00416b20
mov ecx, eax
call fcn.00416bd0
lea ecx, [ebp - 0x30]
call fcn.00401a20
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d238
mov esp, ebp
pop ebp
ret 0xc