Function at 0x45b670
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5716cc
mov eax, dword fs:[0]
push eax
sub esp, 0x6ac
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
xor bl, bl
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x664], 0
mov ecx, dword [0x5f4760]
mov dword [ebp - 0x670], eax
mov eax, dword fs:[0x2c]
mov byte [ebp - 0x669], bl
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x5f4128]
cmp eax, dword [ecx + 4]
jg 0x45ba21
cmp byte [0x5f4124], bl
jne 0x45b7a7
push 0
push str.DWwin.exe
lea eax, [ebp - 0x648]
push 0x25
push eax
call fcn.0042f230
add esp, 0x10
cmp dword [ebp - 0x638], 0
mov dword [ebp - 4], 0
je 0x45b757
cmp dword [ebp - 0x634], 8
lea eax, [ebp - 0x648]
cmovae eax, dword [ebp - 0x648]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45b757
cmp dword [ebp - 0x634], 8
lea eax, [ebp - 0x648]
push dword [ebp - 0x638]
cmovae eax, dword [ebp - 0x648]
mov ecx, 0x5ed9c8
push eax
call fcn.00408f30
mov byte [0x5f4124], 1
mov eax, dword [ebp - 0x634]
mov dword [ebp - 4], 1
cmp eax, 8
jb 0x45b783
inc eax
lea ecx, [ebp - 0x648]
push eax
push dword [ebp - 0x648]
call fcn.0040a2e0
xor eax, eax
mov dword [ebp - 0x638], 0
mov dword [ebp - 0x634], 7
mov word [ebp - 0x648], ax
mov dword [ebp - 4], 0xffffffff
push 0x5ed9c8
lea ecx, [ebp - 0x660]
call fcn.0040a1e0
cmp dword [ebp - 0x650], 0
mov dword [ebp - 4], 2
je 0x45b9de
lea eax, [ebp - 0x660]
push edi
push eax
call fcn.00459270
add esp, 8
test al, al
je 0x45b9de
push 0x20a
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x668], 0
push 0
push eax
call fcn.0053f340
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x45b80d
mov eax, dword [esi]
lea ecx, [ebp - 0x668]
push ecx
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push str._s__x__s__u
push eax
call fcn.00467570
add esp, 0x14
cmp eax, 2
jne 0x45b9de
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x6b8]
call fcn.0040e610
push eax
lea eax, [ebp - 0x660]
mov byte [ebp - 4], 3
mov ebx, 9
push eax
mov dword [ebp - 0x664], ebx
call fcn.00459270
add esp, 8
test al, al
jne 0x45b8c5
push str.dwwin.exe
lea ecx, [ebp - 0x688]
call fcn.0040e610
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebp - 0x6a0]
mov dword [ebp - 0x664], 0xb
call fcn.0040e610
push eax
lea eax, [ebp - 0x688]
mov dword [ebp - 4], 5
mov ebx, 0xf
push eax
mov dword [ebp - 0x664], ebx
call fcn.00459270
add esp, 8
test al, al
je 0x45b8d5
cmp dword [ebp - 0x668], 0
mov byte [ebp - 0x66a], 1
jne 0x45b8dc
mov byte [ebp - 0x66a], 0
test bl, 4
je 0x45b8ef
lea ecx, [ebp - 0x6a0]
and ebx, 0xfffffffb
call fcn.0040a280
test bl, 2
je 0x45b902
lea ecx, [ebp - 0x688]
and ebx, 0xfffffffd
call fcn.0040a280
mov dword [ebp - 4], 2
test bl, 1
je 0x45b919
lea ecx, [ebp - 0x6b8]
call fcn.0040a280
cmp byte [ebp - 0x66a], 0
je 0x45b9d8
push 2
push 0
push 0
lea eax, [ebp - 0x664]
mov dword [ebp - 0x664], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov eax, dword [ebp - 0x670]
push dword [ebp - 0x668]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x45b9d8
push dword [ebp - 0x664]
call fcn.004a01f0
add esp, 4
test al, al
je 0x45b9c4
push dword [ebp - 0x668]
cmp dword [ebp - 0x64c], 8
lea eax, [ebp - 0x660]
cmovae eax, dword [ebp - 0x660]
push eax
push str._s__x__s__u
lea eax, [ebp - 0x630]
push 0x209
push eax
call fcn.0040eae0
add esp, 0x14
test eax, eax
js 0x45b9c4
lea eax, [ebp - 0x630]
mov ecx, esi
push eax
call fcn.00440b97
push dword [ebp - 0x664]
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x45b9de
push dword [ebp - 0x664]
mov bl, byte [ebp - 0x669]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x45b9de
mov bl, byte [ebp - 0x669]
mov ecx, dword [ebp - 0x64c]
mov dword [ebp - 4], 6
cmp ecx, 8
jb 0x45ba03
inc ecx
push ecx
push dword [ebp - 0x660]
lea ecx, [ebp - 0x660]
call fcn.0040a2e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401682
mov esp, ebp
pop ebp
ret
push 0x5f4128
call fcn.00410499
add esp, 4
cmp dword [0x5f4128], 0xffffffff
jne 0x45b6df
xor eax, eax
mov dword [0x5ed9d8], 0
push 0x57f6f0
mov dword [0x5ed9dc], 7
mov word [0x5ed9c8], ax
call fcn.00405ffc
push 0x5f4128
call fcn.00410720
add esp, 8
jmp 0x45b6df