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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438f36
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x444690]
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, edx
mov ebx, ecx
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], edi
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x22c]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00404f70
mov esi, dword [ebp - 0x22c]
add esp, 4
test eax, eax
je 0x40bd48
mov edi, dword [ebp - 0x228]
cmp esi, edi
je 0x40bd46
push 0x440f98
push str.Shlwapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40bd46
push ebx
call eax
test eax, eax
je 0x40bb4f
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40bb4f
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.00422330
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40bd46
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x40bd46
push 1
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x40bd46
push ecx
lea ecx, [ebp - 0x2d4]
call fcn.0040de90
sub esp, 8
lea ecx, [ebp - 0x2d0]
push ebx
mov byte [ebp - 4], 2
call fcn.0040ec20
test eax, eax
mov eax, dword [ebp - 0x2d4]
lea ecx, [ebp - 0x2d4]
mov eax, dword [eax + 4]
jne 0x40bb94
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x40bba3
or eax, 4
jmp 0x40bba3
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
mov edx, 4
cmove eax, edx
push 0
push eax
call fcn.00408090
cmp dword [ebp - 0x280], 0
je 0x40bc48
push 0
sub edi, esi
push edi
push esi
lea ecx, [ebp - 0x2d4]
call fcn.0040d860
lea ecx, [ebp - 0x2d4]
call fcn.00408520
lea eax, [ebp - 0x2ec]
push eax
lea ecx, [ebp - 0x2d4]
call fcn.0040d9b0
mov ecx, eax
mov eax, dword [ecx + 8]
add eax, dword [ecx]
mov edx, dword [ecx + 0xc]
adc edx, dword [ecx + 4]
xor ecx, ecx
cmp edi, eax
jne 0x40bc09
cmp ecx, edx
jne 0x40bc09
mov dword [ebp - 0x220], 1
jmp 0x40bc11
xor eax, eax
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x2d0]
call fcn.0040ece0
test eax, eax
jne 0x40bc48
mov eax, dword [ebp - 0x2d4]
lea ecx, [ebp - 0x2d4]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x40bc40
or eax, 4
push 0
push eax
call fcn.00408090
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2d4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x2d4], 0x441020
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ebp + ecx - 0x2d8], eax
cmp dword [ebp - 0x280], 0
mov dword [ebp - 0x2d0], 0x440fe4
je 0x40bcb6
mov edx, dword [ebp - 0x2c4]
lea eax, [ebp - 0x28c]
cmp dword [edx], eax
jne 0x40bcb6
mov eax, dword [ebp - 0x298]
mov ecx, dword [ebp - 0x294]
mov dword [edx], eax
mov eax, dword [ebp - 0x2b4]
mov dword [eax], ecx
mov eax, dword [ebp - 0x2a4]
sub ecx, ecx
mov dword [eax], ecx
cmp byte [ebp - 0x284], 0
je 0x40bcca
lea ecx, [ebp - 0x2d0]
call fcn.0040ece0
mov edi, dword [ebp - 0x29c]
mov dword [ebp - 0x2d0], 0x441034
test edi, edi
je 0x40bcfe
mov ecx, dword [edi]
test ecx, ecx
je 0x40bcf5
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x40bcf5
mov eax, dword [ecx]
push 1
call dword [eax]
push edi
call fcn.0041fd2d
add esp, 4
mov eax, dword [ebp - 0x2d4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x2d4], 0x440ecc
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x2d8], eax
lea eax, [ebp - 0x274]
push eax
mov dword [ebp - 0x274], 0x440f0c
call fcn.0041f8a1
mov edi, dword [ebp - 0x220]
add esp, 4
jmp 0x40bd48
xor edi, edi
test esi, esi
je 0x40bd6d
push esi
call fcn.0041fd2d
add esp, 4
jmp 0x40bd6d
mov eax, edi
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.0041fd32
mov esp, ebp
pop ebp
ret