Function at 0x409bb0
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54122f
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x5d6024]
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 - 0x278], 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 - 0x274], ecx
mov dword [ebp - 0x268], esi
jb 0x409c17
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 0x409c56
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 0x409f7e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409c60
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.00407c80
test esi, esi
je 0x409f15
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 - 0x270], esp
push eax
call fcn.00406c70
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.00486890
add esp, 0x18
mov byte [ebp - 4], 5
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x260]
call fcn.00486cc0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x230]
call fcn.00407f50
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]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409d52
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x248]
call fcn.00407c80
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 0x409daf
cmp ecx, 8
lea eax, [ebp - 0x248]
lea ecx, [ebp - 0x248]
cmovae eax, edx
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.0040a340
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x260]
call fcn.00485b00
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x260]
call fcn.004865b0
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 8
jb 0x409ddf
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.00407f50
test esi, esi
jne 0x409ea7
push dword [ebp - 0x268]
mov edx, dword [ebp - 0x278]
lea ecx, [ebp - 0x230]
push dword [ebp - 0x274]
call fcn.00409bb0
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.00407f50
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x248]
call fcn.00407f50
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x260]
jmp 0x409f79
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.00407f50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x260]
jmp 0x409f79
mov dword [ebp - 4], 0x16
lea eax, [ebp - 0x230]
push 1
sub esp, 0x18
mov dword [ebp - 0x270], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x26c], esp
push eax
call fcn.00406c70
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 0x16
mov ecx, esi
call fcn.00486890
add esp, 0x18
mov byte [ebp - 4], 0x18
mov byte [ebp - 4], 0x16
mov ecx, edi
call fcn.00486cc0
mov byte [ebp - 4], 0x16
mov dword [ebp - 0x264], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00407f50
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.00521461
mov esp, ebp
pop ebp
ret