Function at 0x401390
Capabilities:
Delete file
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f3dc
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x698
mov eax, dword [0x418040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x664], esi
mov edi, ecx
mov dword [ebp - 0x66c], edi
lea eax, [ebp - 0x220]
mov dword [ebp - 0x66c], edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4016eb
xorps xmm0, xmm0
mov dword [ebp - 0x690], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x68c], 0
movups xmmword [ebp - 0x6a0], xmm0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401430
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x6a0]
call fcn.00402960
mov dword [ebp - 4], 0
mov ecx, esi
cmp dword [esi + 0x14], 7
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x66c], edx
mov dword [ebp - 0x688], esi
jbe 0x401478
mov ecx, dword [esi]
mov dword [ebp - 0x688], ecx
mov eax, dword [ebp - 0x690]
mov dword [ebp - 0x668], eax
mov eax, dword [ebp - 0x68c]
sub eax, dword [ebp - 0x668]
cmp edx, eax
ja 0x4014ed
mov ecx, dword [ebp - 0x668]
lea esi, [ebp - 0x6a0]
cmp dword [ebp - 0x68c], 7
cmova esi, dword [ebp - 0x6a0]
lea eax, [edx + ecx]
mov dword [ebp - 0x690], eax
lea eax, [edx + edx]
push eax
push dword [ebp - 0x688]
lea ecx, [esi + ecx*2]
push ecx
call fcn.00404320
mov eax, dword [ebp - 0x66c]
add esp, 0xc
add eax, dword [ebp - 0x668]
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x6a0]
mov esi, dword [ebp - 0x664]
jmp 0x401508
push edx
push ecx
mov byte [ebp - 0x664], 0
lea ecx, [ebp - 0x6a0]
push dword [ebp - 0x664]
push edx
call fcn.004027d0
mov dword [ebp - 0x638], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x648], xmm0
mov dword [ebp - 0x634], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x648], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x638], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x68c]
cmp ecx, 7
jbe 0x401594
mov edx, dword [ebp - 0x6a0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40158a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a6c
push ecx
push edx
call fcn.00403025
add esp, 8
push 0
push 0x80
push 1
xor eax, eax
mov dword [ebp - 0x690], 0
cmp dword [ebp - 0x634], 7
push 0
mov word [ebp - 0x6a0], ax
lea eax, [ebp - 0x648]
cmova eax, dword [ebp - 0x648]
push 0
push 0x40000000
push eax
mov dword [ebp - 0x68c], 7
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4016a4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x634], 7
lea eax, [ebp - 0x648]
cmova eax, dword [ebp - 0x648]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xorps xmm0, xmm0
lea ecx, [ebp - 0x220]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
lea edx, [ecx + 2]
mov dword [edi + 0x14], 0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401626
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00402960
mov ecx, dword [ebp - 0x634]
cmp ecx, 7
jbe 0x401684
mov edx, dword [ebp - 0x648]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40167a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a71
push ecx
push edx
call fcn.00403025
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00402fe7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x634]
cmp ecx, 7
jbe 0x4016eb
mov edx, dword [ebp - 0x648]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4016e1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a71
push ecx
push edx
call fcn.00403025
add esp, 8
lea eax, [ebp - 0x428]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
test eax, eax
js 0x4017a6
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x638], 0
movups xmmword [ebp - 0x648], xmm0
mov dword [ebp - 0x634], 0
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401730
sub ecx, edx
lea eax, [ebp - 0x428]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x648]
call fcn.00402960
push str.Downloads_
lea ecx, [ebp - 0x648]
mov dword [ebp - 4], 3
call fcn.004022f0
movups xmm0, xmmword [ebp - 0x648]
xor eax, eax
mov word [ebp - 0x648], ax
movups xmmword [ebp - 0x660], xmm0
movq xmm0, qword [ebp - 0x638]
movq qword [ebp - 0x650], xmm0
mov dword [ebp - 0x638], 0
mov dword [ebp - 0x634], 7
jmp 0x4017d3
push 0
push 0x415ae4
lea ecx, [ebp - 0x660]
mov dword [ebp - 0x650], 0
movups xmmword [ebp - 0x660], xmm0
mov dword [ebp - 0x64c], 0
call fcn.00402960
mov dword [ebp - 4], 4
cmp dword [ebp - 0x650], 0
je 0x40192a
push esi
lea edx, [ebp - 0x660]
lea ecx, [ebp - 0x684]
call fcn.00402520
add esp, 4
cmp dword [eax + 0x14], 7
jbe 0x401804
mov eax, dword [eax]
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x670]
mov dword [ebp - 0x664], eax
cmp ecx, 7
jbe 0x401869
mov edx, dword [ebp - 0x684]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401859
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a76
push ecx
push edx
call fcn.00403025
mov eax, dword [ebp - 0x664]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x674], 0
mov dword [ebp - 0x670], 7
mov word [ebp - 0x684], cx
cmp eax, 0xffffffff
je 0x40192a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
lea edx, [ebp - 0x660]
lea ecx, [ebp - 0x684]
call fcn.00402520
add esp, 4
cmp dword [eax + 0x14], 7
jbe 0x4018b3
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x670]
cmp ecx, 7
jbe 0x4018fa
mov edx, dword [ebp - 0x684]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4018f0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a7b
push ecx
push edx
call fcn.00403025
add esp, 8
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
movups xmm0, xmmword [ebp - 0x660]
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x650]
movq qword [edi + 0x10], xmm0
jmp 0x401684
lea eax, [ebp - 0x630]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xorps xmm0, xmm0
mov dword [ebp - 0x674], 0
lea ecx, [ebp - 0x630]
mov dword [ebp - 0x670], 0
movups xmmword [ebp - 0x684], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401963
sub ecx, edx
lea eax, [ebp - 0x630]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x684]
call fcn.00402960
push 0x415ae8
lea ecx, [ebp - 0x684]
mov byte [ebp - 4], 5
call fcn.004022f0
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [edi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x670]
cmp ecx, 7
jbe 0x401a0c
mov edx, dword [ebp - 0x684]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401a02
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a67
push ecx
push edx
call fcn.00403025
add esp, 8
mov ecx, dword [ebp - 0x64c]
xor eax, eax
mov dword [ebp - 0x674], 0
mov dword [ebp - 0x670], 7
mov word [ebp - 0x684], ax
cmp ecx, 7
jbe 0x401684
mov edx, dword [ebp - 0x660]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40167a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40167a
call fcn.004063cb
call fcn.004063cb
call fcn.004063cb
call fcn.004063cb
call fcn.004063cb
int3