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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b161f
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x69001c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x274], edx
mov edi, ecx
mov dword [ebp - 0x26c], edi
mov ecx, dword [ebp + 8]
mov eax, edx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x27c], edi
mov dword [ebp - 0x264], 0
cmp dword [edx + 0x14], 8
mov dword [ebp - 0x270], ecx
mov dword [ebp - 0x268], esi
jb 0x40af87
mov eax, dword [edx]
lea edx, [ebp - 0x218]
push edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x40afc8
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
mov dword [edi], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x264], 1
jmp 0x40b33b
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40afd1
sub ecx, edx
mov dword [ebp - 0x230], 0
xor eax, eax
sar ecx, 1
mov dword [ebp - 0x220], 0
push ecx
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x230]
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
push eax
mov dword [ebp - 0x21c], 7
call fcn.00406e80
test esi, esi
je 0x40b2d2
mov dword [ebp - 4], 3
lea eax, [ebp - 0x230]
push 1
sub esp, 0x18
mov dword [ebp - 0x26c], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x278], esp
push eax
call fcn.00406350
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.004f1920
add esp, 0x18
mov byte [ebp - 4], 5
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x260]
call fcn.004f1d70
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x230]
call fcn.004075e0
mov edx, dword [ebp - 0x268]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
lea esi, [ecx + 2]
mov word [ebp - 0x248], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b0d7
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x248]
call fcn.00406e80
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
cmovae ecx, dword [ebp - 0x248]
setae dl
cmp word [ecx], 0x2e
jne 0x40b164
mov esi, dword [ebp - 0x238]
mov ecx, 1
test dl, dl
je 0x40b136
xor edx, edx
mov eax, esi
sub eax, edx
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [ebp - 0x248]
jmp 0x40b144
xor edx, edx
lea eax, [ebp - 0x248]
cmp esi, 1
cmovb ecx, esi
sub esi, ecx
lea edx, [eax + edx*2]
lea ecx, [edx + ecx*2]
mov dword [ebp - 0x238], esi
lea eax, [esi*2 + 2]
push eax
push ecx
push edx
call fcn.00592470
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x260]
call fcn.004f0b60
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x260]
call fcn.004f1640
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 8
jb 0x40b194
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov esi, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x230]
call fcn.004075e0
test esi, esi
jne 0x40b25e
push dword [ebp - 0x268]
mov edx, dword [ebp - 0x274]
lea ecx, [ebp - 0x230]
push dword [ebp - 0x270]
call fcn.0040af20
add esp, 8
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
movups xmm0, xmmword [ebp - 0x230]
mov dword [edi], esi
xor eax, eax
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], esi
movups xmmword [edi], xmm0
mov word [ebp - 0x230], ax
movq xmm0, qword [ebp - 0x220]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 7
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x264], 1
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x230]
call fcn.004075e0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x248]
call fcn.004075e0
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x260]
jmp 0x40b336
movups xmm0, xmmword [ebp - 0x260]
mov dword [edi], 0
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
mov word [ebp - 0x260], ax
movq xmm0, qword [ebp - 0x250]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov byte [ebp - 4], 9
mov dword [ebp - 0x264], 1
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x248]
call fcn.004075e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x260]
jmp 0x40b336
mov dword [ebp - 4], 0x16
lea eax, [ebp - 0x230]
push 1
sub esp, 0x18
mov dword [ebp - 0x278], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x26c], esp
push eax
call fcn.00406350
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 0x16
mov ecx, esi
call fcn.004f1920
add esp, 0x18
mov byte [ebp - 4], 0x18
mov byte [ebp - 4], 0x16
mov ecx, edi
call fcn.004f1d70
mov byte [ebp - 4], 0x16
mov dword [ebp - 0x264], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.004075e0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059046a
mov esp, ebp
pop ebp
ret