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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438fc4
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x448664]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edi, 7
mov dword [ebp - 0x1c], edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
xor ecx, ecx
mov word [ebp - 0x30], cx
push ebx
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004017f0
mov dword [ebp - 4], ebx
lea eax, [edi + 0x19]
lea ecx, [ebp - 0x30]
call fcn.004193b0
lea esi, [edi + 1]
cmp dword [ebp - 0x20], ebx
je 0x418406
cmp dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x30]
jae 0x4183f5
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
cmp al, bl
jne 0x41842e
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], esi
jb 0x41841e
mov edx, dword [ebp - 0x30]
push edx
call fcn.0041d491
add esp, 4
mov dword [ebp - 0x1c], edi
xor eax, eax
mov word [ebp - 0x30], ax
mov al, 1
jmp 0x418729
cmp dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x30]
jae 0x418439
lea eax, [ebp - 0x30]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x418440
sub eax, edx
sar eax, 1
lea esi, [eax + 2]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041c7c6
add esp, 4
mov edi, eax
mov dword [ebp - 0xac], edi
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x418481
lea eax, [ebp - 0x30]
push eax
push esi
push edi
call fcn.0041dbac
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x20]
mov word [edi + ecx*2], ax
xor edx, edx
mov eax, dword [ebp - 0x20]
mov word [edi + eax*2 + 2], dx
xor eax, eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
mov word [ebp - 0x8c], ax
mov ecx, 0x414
or ax, cx
mov dword [ebp - 0x92], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0x8e], ebx
mov dword [ebp - 0xa4], 3
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0x9c], ebx
mov edx, 0xffbf
and ax, dx
mov word [ebp - 0x98], ax
mov byte [ebp - 0x85], 1
mov byte [ebp - 4], 1
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x41860a
lea ecx, [ebp - 0x148]
push ecx
call fcn.00404f30
mov byte [ebp - 4], 2
lea edx, [ebp - 0x30]
push edx
push 0x43de8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.bRt__false._GetLastError:
lea eax, [ebp - 0x148]
push eax
call fcn.00408460
add esp, 8
push eax
call fcn.004043e0
push eax
call fcn.00408460
add esp, 8
push eax
call fcn.004086c0
add esp, 8
push str.CFileUtility::DeleteDir
lea ecx, [ebp - 0x68]
call fcn.00404160
mov byte [ebp - 4], 3
push str.FileUtility.cpp
lea ecx, [ebp - 0x4c]
call fcn.00404160
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebp - 0x148]
push edx
call fcn.00405030
mov byte [ebp - 4], 5
push eax
push 0x361
push ebx
call fcn.00404d10
push eax
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x4c]
call fcn.00416210
mov byte [ebp - 4], 4
lea esi, [ebp - 0x84]
call fcn.004016d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
call fcn.004041a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x68]
call fcn.004041a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x148]
call fcn.00403150
mov byte [ebp - 0x85], bl
mov dword [ebp - 4], ebx
jmp 0x4186f0
cmp edi, ebx
je 0x4186fd
push edi
call fcn.0041d783
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 8
jb 0x418716
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0041d491
add esp, 4
mov dword [ebp - 0x1c], 7
xor edx, edx
mov word [ebp - 0x30], dx
mov al, byte [ebp - 0x85]
mov dword [ebp - 0x20], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041cfa8
mov esp, ebp
pop ebp
ret