Function at 0x413560
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482525
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x10], 0
push eax
call fcn.0040a630
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00415b40
add esp, 0xc
test al, al
jne 0x4137e2
push 0
call fcn.00409ca0
add esp, 4
test al, al
jne 0x4135d9
push 0
push 1
call fcn.0040f090
add esp, 8
test al, al
je 0x4135d9
lea eax, [ebp - 0x10]
push eax
call fcn.00415900
add esp, 4
jmp 0x4137e2
xor eax, eax
mov dword [ebp - 0x34], 0
push ebx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 1
push eax
call fcn.00433f90
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push 0
cmovae eax, dword [ebp - 0x34]
push eax
call fcn.00420490
mov ebx, eax
mov dword [ebp - 0x14], edx
call fcn.0041b860
push 1
push 0
call fcn.0040ec70
push 0
push 0
push 0
call fcn.00404e80
call fcn.004051f0
xor ecx, ecx
cmp al, 1
push 0
sete cl
mov dword [ebp - 0x1c], ecx
call fcn.0041c710
add esp, 0x20
test al, al
je 0x4136f2
lea eax, [ebp - 0x4c]
push eax
call fcn.00412490
add esp, 4
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x4c]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x413673
test ecx, ecx
je 0x4136e6
cmp edx, 8
lea eax, [ebp - 0x4c]
cmovae eax, ecx
cmp word [eax], 0
je 0x4136e6
cmp edx, 8
lea eax, [ebp - 0x4c]
cmovae eax, ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4136e6
lea eax, [ebp - 0x10]
push eax
call fcn.00415900
lea eax, [ebp - 0x64]
push eax
call fcn.00409510
push 5
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00415b90
add esp, 0x14
test eax, eax
je 0x4136de
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x64]
call fcn.00401690
lea ecx, [ebp - 0x4c]
call fcn.00401690
jmp 0x413797
lea ecx, [ebp - 0x64]
call fcn.00401690
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.00401690
push esi
push edi
push 1
push 1
xor edi, edi
xor esi, esi
call fcn.00405140
add esp, 8
test al, al
je 0x413775
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x18], 1
test esi, esi
jne 0x41375b
push esi
push esi
push esi
push 1
push 1
call fcn.00405840
push esi
push 1
call fcn.0040f4b0
add esp, 0x1c
cmp dword [ebp - 0x14], esi
jl 0x413742
jg 0x41373b
test ebx, ebx
je 0x413742
mov eax, 0x2bd
jmp 0x413747
mov eax, 0x2bc
push 0
push 0
push eax
push 0
call fcn.00414e10
add esp, 0x10
mov esi, 1
push 0x1388
call edi
push 1
push 1
call fcn.00405140
add esp, 8
test al, al
jne 0x413715
mov edi, dword [ebp - 0x18]
push 0
push edi
push dword [ebp - 0x1c]
call fcn.0040a6b0
push 0
push 1
call fcn.0040f6f0
lea eax, [ebp - 0x10]
push eax
call fcn.00415900
add esp, 0xc
pop edi
pop esi
mov edx, dword [ebp - 0x20]
pop ebx
cmp edx, 8
jb 0x4137ce
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4137c4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413828
push edx
push ecx
call fcn.0041e1ec
add esp, 8
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov edx, dword [ebp - 0x68]
cmp edx, 8
jb 0x413818
mov ecx, dword [ebp - 0x7c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41380e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413828
push edx
push ecx
call fcn.0041e1ec
add esp, 8
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0044c29f
int3