Function at 0x40b160
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4328d6
mov eax, dword fs:[0]
push eax
sub esp, 0x2e4
mov eax, dword [0x43a4a0]
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
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, edx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
lea eax, [ebp - 0x230]
push eax
push ecx
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00405060
add esp, 8
cmp eax, ebx
je 0x40b3f5
mov edi, dword [ebp - 0x22c]
cmp dword [ebp - 0x230], edi
je 0x40b3f5
push 0x4368d8
push str.Shlwapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40b3f5
push esi
call eax
cmp eax, ebx
je 0x40b27c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40b27c
push 0x206
lea eax, [ebp - 0x21a]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x21c], dx
call fcn.00421da0
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40b3f5
lea edx, [ebp - 0x21c]
push edx
push ebx
push ebx
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x40b3f5
push 1
lea ecx, [ebp - 0x21c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x40b3f5
lea edx, [ebp - 0x2d8]
push edx
call fcn.0040d750
push esi
lea ecx, [ebp - 0x2d4]
mov byte [ebp - 4], 2
call fcn.0040e640
cmp eax, ebx
jne 0x40b2c0
mov eax, dword [ebp - 0x2d8]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0x2cc]
lea ecx, [ebp + ecx - 0x2d8]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x40b2e1
or eax, 4
jmp 0x40b2e1
mov ecx, dword [ebp - 0x2d8]
mov ecx, dword [ecx + 4]
mov eax, dword [ebp + ecx - 0x2a0]
lea ecx, [ebp + ecx - 0x2d8]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
push ebx
call fcn.00407ed0
cmp dword [ebp - 0x280], ebx
je 0x40b3cd
mov eax, dword [ebp - 0x230]
push ebx
sub edi, eax
push edi
push eax
lea edx, [ebp - 0x2d8]
push edx
call fcn.0040d0e0
mov eax, dword [ebp - 0x2d8]
mov eax, dword [eax + 4]
xor esi, esi
test byte [ebp + eax - 0x2cc], 6
jne 0x40b339
mov eax, dword [ebp + eax - 0x2a0]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x40b339
mov esi, 4
mov ecx, dword [ebp - 0x2d8]
mov ecx, dword [ecx + 4]
lea ecx, [ebp + ecx - 0x2d8]
cmp esi, ebx
je 0x40b360
mov eax, dword [ecx + 0xc]
or eax, esi
cmp dword [ecx + 0x38], ebx
jne 0x40b35a
or eax, 4
push ebx
call fcn.00407ed0
lea esi, [ebp - 0x2f0]
lea eax, [ebp - 0x2d8]
call fcn.0040d290
mov ecx, eax
mov eax, dword [ecx + 8]
cdq
add eax, dword [ecx]
adc edx, dword [ecx + 4]
xor ecx, ecx
cmp edi, eax
jne 0x40b390
mov dword [ebp - 0x220], 1
cmp ecx, edx
je 0x40b396
mov dword [ebp - 0x220], ebx
lea eax, [ebp - 0x2d4]
call fcn.0040e730
cmp eax, ebx
jne 0x40b3cd
mov edx, dword [ebp - 0x2d8]
mov ecx, dword [edx + 4]
mov eax, dword [ebp + ecx - 0x2cc]
lea ecx, [ebp + ecx - 0x2d8]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x40b3c7
or eax, 4
push ebx
call fcn.00407ed0
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 1
call fcn.0040d870
lea eax, [ebp - 0x278]
push eax
mov dword [ebp - 0x278], 0x43692c
call fcn.0041f8b4
add esp, 4
mov eax, dword [ebp - 0x230]
cmp eax, ebx
je 0x40b408
push eax
call fcn.0041fd5b
add esp, 4
mov eax, dword [ebp - 0x220]
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.0041fd66
mov esp, ebp
pop ebp
ret