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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ce26
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x438928]
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.00407830
mov esi, dword [ebp - 0x22c]
add esp, 4
test eax, eax
je 0x40e5e8
mov edi, dword [ebp - 0x228]
cmp esi, edi
je 0x40e5e6
push 0x434f78
push str.Shlwapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40e5e6
push ebx
call eax
test eax, eax
je 0x40e3ef
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40e3ef
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.00416250
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40e5e6
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x40e5e6
push 1
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x40e5e6
push ecx
lea ecx, [ebp - 0x2d4]
call fcn.00410730
sub esp, 8
lea ecx, [ebp - 0x2d0]
push ebx
mov byte [ebp - 4], 2
call fcn.004114c0
test eax, eax
mov eax, dword [ebp - 0x2d4]
lea ecx, [ebp - 0x2d4]
mov eax, dword [eax + 4]
jne 0x40e434
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x40e443
or eax, 4
jmp 0x40e443
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
mov edx, 4
cmove eax, edx
push 0
push eax
call fcn.0040a950
cmp dword [ebp - 0x280], 0
je 0x40e4e8
push 0
sub edi, esi
push edi
push esi
lea ecx, [ebp - 0x2d4]
call fcn.00410100
lea ecx, [ebp - 0x2d4]
call fcn.0040ade0
lea eax, [ebp - 0x2ec]
push eax
lea ecx, [ebp - 0x2d4]
call fcn.00410250
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 0x40e4a9
cmp ecx, edx
jne 0x40e4a9
mov dword [ebp - 0x220], 1
jmp 0x40e4b1
xor eax, eax
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x2d0]
call fcn.00411580
test eax, eax
jne 0x40e4e8
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 0x40e4e0
or eax, 4
push 0
push eax
call fcn.0040a950
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2d4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x2d4], 0x435000
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], 0x434fc4
je 0x40e556
mov edx, dword [ebp - 0x2c4]
lea eax, [ebp - 0x28c]
cmp dword [edx], eax
jne 0x40e556
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 0x40e56a
lea ecx, [ebp - 0x2d0]
call fcn.00411580
mov edi, dword [ebp - 0x29c]
mov dword [ebp - 0x2d0], 0x435014
test edi, edi
je 0x40e59e
mov ecx, dword [edi]
test ecx, ecx
je 0x40e595
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x40e595
mov eax, dword [ecx]
push 1
call dword [eax]
push edi
call fcn.00413c44
add esp, 4
mov eax, dword [ebp - 0x2d4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x2d4], 0x434ec0
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], 0x434f00
call fcn.004137b8
mov edi, dword [ebp - 0x220]
add esp, 4
jmp 0x40e5e8
xor edi, edi
test esi, esi
je 0x40e60d
push esi
call fcn.00413c44
add esp, 4
jmp 0x40e60d
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.00413c49
mov esp, ebp
pop ebp
ret