Function at 0x40f3b0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5b5ff6
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x6216ec]
xor eax, esp
mov dword [esp + 0xbc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 0xd4]
mov dword fs:[0], eax
mov eax, dword [esp + 0xe4]
xor ebx, ebx
mov ebp, 8
mov esi, ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
cmp dword [eax + 0x14], ebp
jb 0x40f40e
mov eax, dword [eax]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
je 0x40f6b4
cmp dword [esi + 0x14], ebp
jb 0x40f428
mov eax, dword [esi]
jmp 0x40f42a
mov eax, esi
push eax
call edi
test eax, eax
jne 0x40f6b4
cmp dword [esi + 0x14], ebp
jb 0x40f43e
mov ecx, dword [esi]
jmp 0x40f440
mov ecx, esi
xor eax, eax
mov word [esp + 0x98], ax
mov edi, 7
mov eax, ecx
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x40f462
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0xa0]
call fcn.00401d20
push 0xffffffffffffffff
mov dword [esp + 0xe0], ebx
xor ecx, ecx
push ebx
lea edx, [esp + 0xa0]
mov word [esp + 0x4c], cx
push edx
lea ecx, [esp + 0x50]
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
call fcn.004019e0
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0xe0], 1
call fcn.00472520
push eax
mov byte [esp + 0xe0], 2
call 0x4722f0
add esp, 4
test al, al
sete byte [esp + 0x17]
mov byte [esp + 0xdc], 1
cmp dword [esp + 0xc8], ebp
jb 0x40f4fb
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.00548a36
add esp, 4
xor edx, edx
mov byte [esp + 0xdc], bl
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], ebx
mov word [esp + 0xb4], dx
cmp dword [esp + 0x58], ebp
jb 0x40f52d
mov eax, dword [esp + 0x44]
push eax
call fcn.00548a36
add esp, 4
xor ecx, ecx
mov dword [esp + 0xdc], 0xffffffff
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], cx
cmp dword [esp + 0xac], ebp
jb 0x40f560
mov edx, dword [esp + 0x98]
push edx
call fcn.00548a36
add esp, 4
cmp byte [esp + 0x17], bl
jne 0x40f6b4
xor eax, eax
lea esi, [esp + 0x44]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov word [esp + 0x3c], ax
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], ax
call fcn.0040f870
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x80]
push edx
mov ebx, esi
mov dword [esp + 0xe4], 6
call fcn.0040fb30
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x6c]
push ecx
mov byte [esp + 0xec], 7
call fcn.0040fb30
add esp, 0x10
mov dword [esp + 0x24], 2
cmp dword [esp + 0x90], ebp
jb 0x40f5f7
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x28], edx
jmp 0x40f5ff
lea eax, [esp + 0x7c]
mov dword [esp + 0x28], eax
cmp dword [esp + 0x74], ebp
jb 0x40f60f
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x2c], ecx
jmp 0x40f617
lea edx, [esp + 0x60]
mov dword [esp + 0x2c], edx
lea ecx, [esp + 0x20]
mov eax, 0x614
push ecx
mov word [esp + 0x34], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [esp + 0xdc], ebp
mov ebx, 7
mov byte [esp + 0xdc], bl
cmp dword [esp + 0x74], ebp
jb 0x40f652
mov edx, dword [esp + 0x60]
push edx
call fcn.00548a36
add esp, 4
xor esi, esi
xor eax, eax
mov byte [esp + 0xdc], 6
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], esi
mov word [esp + 0x60], ax
cmp dword [esp + 0x90], ebp
jb 0x40f681
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.00548a36
add esp, 4
xor edx, edx
mov dword [esp + 0xdc], 0xffffffff
mov dword [esp + 0x90], ebx
mov dword [esp + 0x8c], esi
mov word [esp + 0x7c], dx
cmp dword [esp + 0x58], ebp
jb 0x40f6b4
mov eax, dword [esp + 0x44]
push eax
call fcn.00548a36
add esp, 4
mov ecx, dword [esp + 0xd4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xbc]
xor ecx, esp
call fcn.00548a41
add esp, 0xcc
ret