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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5413bf
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x5d8024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x278], eax
mov edi, ecx
mov dword [ebp - 0x270], edi
mov dword [ebp - 0x26c], edi
mov edx, dword [ebp + 8]
mov ecx, eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x280], edi
mov dword [ebp - 0x264], 0
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x274], edx
mov dword [ebp - 0x268], esi
jb 0x409bff
mov ecx, dword [eax]
lea eax, [ebp - 0x218]
push eax
push 0
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x409c3e
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
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 0x409fb2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409c47
sub ecx, edx
mov dword [ebp - 0x220], 0
xor eax, eax
sar ecx, 1
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.00407c60
test esi, esi
je 0x409f49
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 - 0x27c], esp
push eax
call fcn.00406c50
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.00486920
add esp, 0x18
mov byte [ebp - 4], 5
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x260]
call fcn.00486d50
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x230]
call fcn.00407f30
mov edx, dword [ebp - 0x268]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409d40
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x248]
call fcn.00407c60
mov byte [ebp - 4], 9
lea eax, [ebp - 0x248]
mov ecx, dword [ebp - 0x234]
cmp ecx, 8
mov edx, dword [ebp - 0x248]
cmovae eax, edx
cmp word [eax], 0x2e
jne 0x409de3
mov esi, dword [ebp - 0x238]
lea edi, [ebp - 0x248]
cmp ecx, 8
lea eax, [ebp - 0x248]
cmovae eax, edx
cmovae edi, edx
sub edi, eax
mov edx, 1
sar edi, 1
mov eax, esi
sub eax, edi
cmp eax, edx
cmovb edx, eax
cmp ecx, 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
sub esi, edx
mov dword [ebp - 0x238], esi
sub esi, edi
lea ecx, [eax + edi*2]
lea eax, [esi*2 + 2]
push eax
lea eax, [ecx + edx*2]
push eax
push ecx
call fcn.00523bb0
mov edi, dword [ebp - 0x270]
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x260]
call fcn.00485ba0
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x260]
call fcn.00486640
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 8
jb 0x409e13
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.00407f30
test esi, esi
jne 0x409edb
push dword [ebp - 0x268]
mov edx, dword [ebp - 0x278]
lea ecx, [ebp - 0x230]
push dword [ebp - 0x274]
call fcn.00409b90
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 + 0x10], esi
xor eax, eax
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.00407f30
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x248]
call fcn.00407f30
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x260]
jmp 0x409fad
movups xmm0, xmmword [ebp - 0x260]
mov dword [edi + 0x10], 0
xor eax, eax
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.00407f30
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x260]
jmp 0x409fad
mov dword [ebp - 4], 0x16
lea eax, [ebp - 0x230]
push 1
sub esp, 0x18
mov dword [ebp - 0x27c], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x26c], esp
push eax
call fcn.00406c50
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 0x16
mov ecx, esi
call fcn.00486920
add esp, 0x18
mov byte [ebp - 4], 0x18
mov byte [ebp - 4], 0x16
mov ecx, edi
call fcn.00486d50
mov byte [ebp - 4], 0x16
mov dword [ebp - 0x264], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00407f30
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.00521dac
mov esp, ebp
pop ebp
ret