Function at 0x40e862
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43bfb9
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x4516e0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x14], ebx
cmp dword [0x45f4a8], 0
jne 0x40ec84
cmp dword [0x45f4ac], 0
jne 0x40ec84
mov ecx, dword [ebx + 0x14]
sub ecx, 0x10
call fcn.004080e8
lea edi, [eax + 0x10]
mov dword [esp + 0x44], edi
and dword [esp + 0x58], 0
mov ecx, dword [ebx + 0x10]
sub ecx, 0x10
call fcn.004080e8
lea esi, [eax + 0x10]
mov dword [esp + 0x48], esi
mov byte [esp + 0x58], 1
push dword [ebx + 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e8f1
mov ecx, dword [ebx + 0x18]
call fcn.0041ac60
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call ebx
test eax, eax
je 0x40e918
push esi
call ebx
test eax, eax
jne 0x40e911
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x40e918
mov ecx, edi
call fcn.0041ac60
mov ecx, esi
call fcn.0041107f
call fcn.004083ea
push eax
lea ecx, [esp + 0x20]
call fcn.00407e3b
lea eax, [esp + 0x20]
mov byte [esp + 0x58], 2
push eax
call fcn.0040a7d7
mov ecx, eax
call fcn.00413be7
mov byte [esp + 0x58], 3
push dword [eax]
lea eax, [esp + 0x20]
push esi
push 0x448dec
push eax
call fcn.0040a280
mov byte [esp + 0x68], 2
add esp, 0x10
mov ecx, dword [esp + 0x20]
lea ecx, [ecx - 0x10]
call fcn.0040233b
mov ebx, dword [esp + 0x1c]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e985
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004083ea
push eax
lea ecx, [esp + 0x24]
call fcn.00407e3b
lea eax, [esp + 0x2c]
mov byte [esp + 0x58], 4
push eax
call fcn.0040a7d7
mov ecx, eax
call fcn.00413c2b
mov byte [esp + 0x58], 5
push dword [eax]
lea eax, [esp + 0x24]
push esi
push 0x448dec
push eax
call fcn.0040a280
mov byte [esp + 0x68], 4
add esp, 0x10
mov ecx, dword [esp + 0x2c]
lea ecx, [ecx - 0x10]
call fcn.0040233b
mov ebx, dword [esp + 0x20]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e9eb
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x34]
push eax
call fcn.0040a7d7
mov ecx, eax
call fcn.00413be7
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x30]
add eax, 0x28
mov byte [esp + 0x58], 6
push 0x448d58
mov edx, eax
mov dword [esp + 0x40], eax
call fcn.004133f8
pop ecx
mov byte [esp + 0x58], 7
lea ecx, [esp + 0x18]
push dword [esp + 0x2c]
mov edx, eax
call fcn.004133a3
pop ecx
mov ecx, dword [esp + 0x30]
lea ecx, [ecx - 0x10]
call fcn.0040233b
mov byte [esp + 0x58], 0xa
mov ecx, dword [esp + 0x34]
lea ecx, [ecx - 0x10]
call fcn.0040233b
push dword [esp + 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ea6b
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x28]
push eax
call fcn.0040a7d7
mov ecx, eax
call fcn.00413a19
lea eax, [esp + 0x2c]
mov byte [esp + 0x58], 0xb
push eax
call fcn.0040a7d7
mov ecx, eax
call fcn.004139bf
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
mov byte [esp + 0x58], 0xc
push eax
call fcn.0040a7d7
mov ecx, eax
call fcn.00413b46
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x58], 0xd
push dword [esp + 0x28]
mov edx, dword [esp + 0x38]
mov ecx, dword [ecx + 0x3c]
push ecx
push ecx
push dword [edx]
mov edx, esi
push ecx
push ecx
push dword [eax]
call fcn.0041af80
mov ecx, dword [esp + 0x4c]
add esp, 0x1c
lea ecx, [ecx - 0x10]
call fcn.0040233b
mov byte [esp + 0x58], 0xb
mov ecx, dword [esp + 0x2c]
lea ecx, [ecx - 0x10]
call fcn.0040233b
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x34]
push 0x448d58
lea edx, [edx + 0x44]
call fcn.004133f8
mov byte [esp + 0x5c], 0xe
lea ecx, [esp + 0x28]
mov edx, eax
mov dword [esp], 0x449784
call fcn.004133f8
pop ecx
mov byte [esp + 0x58], 0x10
mov ecx, dword [esp + 0x34]
lea ecx, [ecx - 0x10]
call fcn.0040233b
lea eax, [esp + 0x38]
push eax
call fcn.0040a7d7
mov ecx, eax
call fcn.00413a46
mov dword [esp + 0x30], eax
lea eax, [esp + 0x2c]
mov byte [esp + 0x58], 0x11
push eax
call fcn.0040a7d7
mov ecx, eax
call fcn.00413b8a
mov byte [esp + 0x58], 0x12
mov ecx, dword [esp + 0x30]
push dword [ecx]
push 0
push ecx
mov ecx, dword [esp + 0x30]
push ecx
push ecx
push ecx
push dword [eax]
mov edx, esi
call fcn.0041af80
mov ecx, dword [esp + 0x48]
add esp, 0x1c
lea ecx, [ecx - 0x10]
call fcn.0040233b
mov byte [esp + 0x58], 0x10
mov ecx, dword [esp + 0x38]
lea ecx, [ecx - 0x10]
call fcn.0040233b
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x14a0], 0
je 0x40ec3c
lea eax, [esp + 0x40]
push eax
call fcn.0040a7d7
mov ecx, eax
call fcn.00413a19
mov dword [esp + 0x38], eax
lea eax, [esp + 0x2c]
mov byte [esp + 0x58], 0x13
push eax
call fcn.0040a7d7
mov ecx, eax
call fcn.004139bf
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
mov byte [esp + 0x58], 0x14
push eax
call fcn.0040a7d7
mov ecx, eax
call fcn.00413b46
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x58], 0x15
mov edx, dword [esp + 0x38]
mov ecx, dword [ecx + 0x3c]
push dword [edx]
mov edx, dword [esp + 0x38]
push ecx
push ecx
push dword [edx]
mov edx, dword [esp + 0x4c]
push ecx
push ecx
push dword [eax]
mov edx, dword [edx]
call fcn.0041af80
mov ecx, dword [esp + 0x4c]
add esp, 0x1c
lea ecx, [ecx - 0x10]
call fcn.0040233b
mov ecx, dword [esp + 0x2c]
lea ecx, [ecx - 0x10]
call fcn.0040233b
mov ecx, dword [esp + 0x40]
lea ecx, [ecx - 0x10]
call fcn.0040233b
mov ecx, dword [esp + 0x24]
lea ecx, [ecx - 0x10]
call fcn.0040233b
mov ecx, dword [esp + 0x28]
lea ecx, [ecx - 0x10]
call fcn.0040233b
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040233b
lea ecx, [ebx - 0x10]
call fcn.0040233b
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.0040233b
lea ecx, [esi - 0x10]
call fcn.0040233b
lea ecx, [edi - 0x10]
call fcn.0040233b
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4