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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54eb3f
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x5e8024]
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 0x40a66f
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 0x40a6b0
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 0x40aa40
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a6c0
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.004082a0
test esi, esi
je 0x40a9d7
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.00407250
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.0048de20
add esp, 0x18
mov byte [ebp - 4], 5
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x260]
call fcn.0048e260
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x230]
call fcn.00408570
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 0x40a7c6
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x248]
call fcn.004082a0
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 0x40a869
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.0052fcd0
mov edi, dword [ebp - 0x270]
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x260]
call fcn.0048d060
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x260]
call fcn.0048db40
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 8
jb 0x40a899
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.00408570
test esi, esi
jne 0x40a963
push dword [ebp - 0x268]
mov edx, dword [ebp - 0x278]
lea ecx, [ebp - 0x230]
push dword [ebp - 0x274]
call fcn.0040a600
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.00408570
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x248]
call fcn.00408570
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x260]
jmp 0x40aa3b
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.00408570
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x260]
jmp 0x40aa3b
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.00407250
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 0x16
mov ecx, esi
call fcn.0048de20
add esp, 0x18
mov byte [ebp - 4], 0x18
mov byte [ebp - 4], 0x16
mov ecx, edi
call fcn.0048e260
mov byte [ebp - 4], 0x16
mov dword [ebp - 0x264], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00408570
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.0052df57
mov esp, ebp
pop ebp
ret