Function at 0x40f230
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x41e6d6
push eax
mov eax, 0x5140
mov dword fs:[0], esp
call fcn.0041ae80
mov eax, dword [esp + 0x5150]
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x1150]
push eax
push ecx
call sub.MSVCRT.dll_wcscpy
lea edx, [esp + 0x1158]
lea eax, [esp + 0x158]
push edx
push eax
call sub.MSVCRT.dll_wcscpy
lea ecx, [esp + 0x5174]
lea edx, [esp + 0x3160]
push ecx
push edx
call sub.MSVCRT.dll_wcscpy
add esp, 0x18
lea eax, [esp + 0x3150]
mov ecx, esi
push eax
call fcn.0040f6e0
lea ecx, [esp + 0x3150]
lea edx, [esp + 0x1150]
push ecx
push edx
call sub.MSVCRT.dll_wcscat
mov ebp, dword [0x4256f0]
add esp, 8
xor ebx, ebx
xor eax, eax
cmp ebp, 1
lea ecx, [esp + 0x18]
sete al
push eax
mov dword [esp + 0x18], ebx
call fcn.00401f60
lea ecx, [esp + 0x150]
mov dword [esp + 0x5158], ebx
push ecx
push SysReAllocString
lea ecx, [esp + 0x20]
call fcn.00401fb0
test eax, eax
jne 0x40f322
lea edx, [esp + 0x150]
push ebx
push edx
push SysReAllocString
lea ecx, [esp + 0x24]
call fcn.004023f0
cmp eax, 1
jne 0x40f4f0
jmp 0x40f4e7
lea eax, [esp + 0x2c]
push ebx
push eax
push 0x423db8
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], ebx
call fcn.00402170
test eax, eax
je 0x40f34f
mov eax, dword [esp + 0x2c]
cmp eax, 0x3e8
sbb ecx, ecx
and ecx, eax
mov dword [esp + 0x14], ecx
xor ebp, ebp
lea ecx, [esp + 0x30]
lea edx, [esp + 0x4150]
push ecx
push edx
push ebp
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0x800
call fcn.004020b0
test eax, eax
je 0x40f4e7
lea eax, [esp + 0x150]
lea ecx, [esp + 0x2150]
push eax
push ecx
call sub.MSVCRT.dll_wcscpy
lea edx, [esp + 0x4158]
lea eax, [esp + 0x2158]
push edx
push eax
call sub.MSVCRT.dll_wcscat
mov eax, dword [0x4256f0]
add esp, 0x10
xor ecx, ecx
cmp eax, 1
sete cl
push ecx
lea ecx, [esp + 0x3c]
call fcn.00401f60
lea edx, [esp + 0x2150]
lea ecx, [esp + 0x38]
push edx
push SysReAllocString
mov byte [esp + 0x5160], 1
call fcn.00401fb0
test eax, eax
je 0x40f4d7
lea eax, [esp + 0x10]
push ebx
push eax
push 0x423db0
lea ecx, [esp + 0x44]
xor esi, esi
mov dword [esp + 0x1c], ebx
call fcn.00402170
cmp eax, 1
jne 0x40f49e
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jne 0x40f49e
lea edx, [esp + 0x34]
lea ecx, [esp + 0x38]
push edx
push 0x423d9c
mov dword [esp + 0x3c], 0x428
call fcn.00402230
mov esi, eax
cmp esi, ebx
je 0x40f499
cmp dword [0x4256f0], 1
jne 0x40f478
push ebx
push ebx
lea eax, [esp + 0x54]
push 0x104
push eax
lea ecx, [esi + 0x218]
push 0xffffffffffffffff
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40f490
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40f490
lea edi, [esi + 0x218]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f490
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, 1
lea ecx, [esp + 0x38]
call fcn.00402080
cmp esi, ebx
jne 0x40f4c1
lea ecx, [esp + 0x38]
inc ebp
mov byte [esp + 0x5158], bl
call fcn.00401fa0
jmp 0x40f351
lea ecx, [esp + 0x2150]
push ecx
push SysReAllocString
lea ecx, [esp + 0x40]
call fcn.004024e0
lea ecx, [esp + 0x38]
mov byte [esp + 0x5158], bl
call fcn.00401fa0
lea ecx, [esp + 0x18]
call fcn.00402080
lea edx, [esp + 0x1150]
lea ecx, [esp + 0x18]
push edx
push SysReAllocString
mov edi, 1
call fcn.00401fb0
test eax, eax
jne 0x40f533
lea eax, [esp + 0x1150]
push ebx
push eax
push SysReAllocString
lea ecx, [esp + 0x24]
call fcn.004023f0
cmp eax, edi
jne 0x40f61d
jmp 0x40f614
lea ecx, [esp + 0x10]
mov ebp, 0x428
push ecx
push 0x423d9c
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], ebp
call fcn.00402230
mov esi, eax
cmp esi, ebx
je 0x40f614
cmp dword [esp + 0x10], ebp
jne 0x40f60b
lea edx, [esp + 0x5164]
push esi
push edx
call sub.MSVCRT.dll__wcsicmp
add esp, 8
test eax, eax
jne 0x40f60b
mov eax, dword [esi + 0x208]
mov ecx, dword [esp + 0x536c]
cmp eax, ecx
jne 0x40f60b
mov ecx, dword [esi + 0x20c]
mov eax, dword [esp + 0x5370]
cmp ecx, eax
jne 0x40f60b
mov edx, dword [esi + 0x420]
mov eax, dword [esp + 0x5584]
cmp edx, eax
jne 0x40f60b
cmp dword [0x4256f0], 1
jne 0x40f5f1
push ebx
push ebx
lea eax, [esp + 0x54]
push 0x104
push eax
lea ecx, [esi + 0x218]
push 0xffffffffffffffff
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40f609
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40f609
lea edi, [esi + 0x218]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f609
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x18]
call fcn.00402080
lea ecx, [esp + 0x1150]
push ecx
push SysReAllocString
lea ecx, [esp + 0x20]
call fcn.00401fb0
push 0x428
lea edx, [esp + 0x5168]
push 3
push edx
push 0x423d88
lea ecx, [esp + 0x28]
call fcn.00402330
mov esi, dword [esp + 0x14]
push ebx
push esi
push 0x423db0
lea ecx, [esp + 0x24]
call fcn.004022f0
lea ecx, [esp + 0x18]
call fcn.00402080
cmp edi, ebx
je 0x40f6a5
lea eax, [esp + 0x150]
lea ecx, [esp + 0x18]
push eax
push SysReAllocString
call fcn.00401fb0
test eax, eax
je 0x40f6a5
inc esi
push ebx
push esi
push 0x423db8
lea ecx, [esp + 0x24]
call fcn.004022f0
lea ecx, [esp + 0x18]
call fcn.00402080
lea ecx, [esp + 0x18]
mov dword [esp + 0x5158], 0xffffffff
call fcn.00401fa0
mov ecx, dword [esp + 0x5150]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x514c
ret 0x42c