Function at 0x605e40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a9d62
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x8ca144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xc
call fcn.006e707a
add esp, 4
test eax, eax
je 0x605e90
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
jmp 0x605e92
xor eax, eax
push 0
push 0
push 0
push 0
mov dword [edi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x50], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00744819
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.00736d4b
add esp, 8
test eax, eax
jne 0x605ed5
push 1
push 0x8b08b4
lea ecx, [ebp - 0x28]
call fcn.004044c0
push 2
push 0x812928
lea ecx, [ebp - 0x28]
call fcn.004044c0
push 4
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.00605990
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
call fcn.007370a2
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004045f0
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x605f28
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00402920
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x48], 0
cmp eax, 0x10
jb 0x605f54
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004081f0
push 4
push str..exe
lea ecx, [ebp - 0x28]
call fcn.004044c0
lea esi, [edi + 0x14]
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x605f79
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00402aa0
mov ecx, edi
call fcn.0052d410
cmp dword [esi + 0x14], 8
jb 0x605f8a
mov eax, dword [esi]
jmp 0x605f8c
mov eax, esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
jne 0x606014
mov eax, dword [0x8cc678]
test eax, eax
jne 0x605fce
push 0x39c
call fcn.006e707a
add esp, 4
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x605fc3
mov ecx, eax
call fcn.0050b200
jmp 0x605fc5
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x8cc678], eax
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
call fcn.0050bef0
cmp dword [esi + 0x14], 8
mov byte [ebp - 4], 4
jb 0x605fe7
mov ecx, dword [esi]
jmp 0x605fe9
mov ecx, esi
cmp dword [eax + 0x14], 8
jb 0x605ff1
mov eax, dword [eax]
push ecx
push eax
call fcn.007387f1
mov eax, dword [ebp - 0x2c]
add esp, 8
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x606014
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00402920
cmp dword [esi + 0x14], 8
jb 0x60601e
mov eax, dword [esi]
jmp 0x606020
mov eax, esi
push eax
call fcn.00738ed8
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x606033
mov eax, dword [esi]
jmp 0x606035
mov eax, esi
push eax
call edi
test eax, eax
jne 0x60605c
lea eax, [ebp - 0x40]
push eax
call fcn.00409640
mov ecx, eax
call fcn.0050bef0
push eax
mov ecx, esi
call fcn.00404240
lea ecx, [ebp - 0x40]
call fcn.00402680
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x606071
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00402920
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006e70bb
mov esp, ebp
pop ebp
ret