Function at 0x401a90
Capabilities:
Copy file
Get common file path
Get startup folder
Write file to startup folder

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 0x40f44c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4b0
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
lea eax, [ebp - 0x428]
push eax
push 0
push 0
push 7
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x401f4a
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea esi, [ebp - 0x220]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401b10
sub ecx, edx
mov dword [ebp - 0x47c], 0
sar ecx, 1
xorps xmm0, xmm0
push ecx
push esi
lea ecx, [ebp - 0x48c]
mov dword [ebp - 0x478], 0
movups xmmword [ebp - 0x48c], xmm0
call fcn.00402960
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x48c]
cmp dword [ebp - 0x478], 7
mov eax, dword [ebp - 0x47c]
cmova ecx, dword [ebp - 0x48c]
lea edi, [ecx + eax*2]
mov edx, edi
mov esi, edi
call fcn.00401230
cmp eax, edi
je 0x401b95
nop dword [eax + eax]
movzx edx, word [esi - 2]
cmp edx, 0x5c
je 0x401b95
cmp edx, 0x2f
je 0x401b95
add esi, 0xfffffffe
cmp eax, esi
jne 0x401b80
sub edi, esi
mov dword [ebp - 0x464], 0
sar edi, 1
lea ecx, [ebp - 0x474]
push edi
xorps xmm0, xmm0
mov dword [ebp - 0x460], 0
push esi
movups xmmword [ebp - 0x474], xmm0
call fcn.00402960
mov byte [ebp - 4], 1
lea eax, [ebp - 0x474]
cmp dword [ebp - 0x460], 7
xorps xmm0, xmm0
mov esi, dword [ebp - 0x474]
mov edi, dword [ebp - 0x464]
cmova eax, esi
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], eax
movups xmmword [ebp - 0x45c], xmm0
cmp edi, 0x7ffffffe
ja 0x401f6d
mov dword [ebp - 0x448], 7
cmp edi, 7
ja 0x401c38
movups xmm0, xmmword [eax]
mov dword [ebp - 0x44c], edi
movups xmmword [ebp - 0x45c], xmm0
jmp 0x401cdd
mov esi, edi
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x401c53
mov eax, closesocket
mov esi, 0x7ffffffe
add eax, eax
jmp 0x401c74
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x401f68
add eax, eax
cmp eax, 0x1000
jb 0x401c9b
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x401f68
push ecx
call fcn.00402ff5
add esp, 4
test eax, eax
je 0x401f72
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x401cae
test eax, eax
je 0x401cac
push eax
call fcn.00402ff5
add esp, 4
mov ecx, eax
jmp 0x401cae
xor ecx, ecx
lea eax, [edi*2 + 2]
mov dword [ebp - 0x45c], ecx
push eax
push dword [ebp - 0x444]
mov dword [ebp - 0x44c], edi
push ecx
mov dword [ebp - 0x448], esi
call fcn.00404320
mov esi, dword [ebp - 0x474]
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x428]
xorps xmm0, xmm0
mov dword [ebp - 0x494], 0
movups xmmword [ebp - 0x4a4], xmm0
mov dword [ebp - 0x490], 0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401d10
sub ecx, edx
lea eax, [ebp - 0x428]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4a4]
call fcn.00402960
push 0x415ae8
lea ecx, [ebp - 0x4a4]
mov byte [ebp - 4], 3
call fcn.004022f0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x4bc], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x4ac], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x45c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x4bc]
push eax
push dword [ebp - 0x444]
lea ecx, [ebp - 0x440]
call fcn.00402a60
mov ecx, dword [ebp - 0x4a8]
cmp ecx, 7
jbe 0x401dd3
mov edx, dword [ebp - 0x4bc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401dc9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401f72
push ecx
push edx
call fcn.00403025
add esp, 8
mov ecx, dword [ebp - 0x490]
cmp ecx, 7
jbe 0x401e13
mov edx, dword [ebp - 0x4a4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401e09
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401f72
push ecx
push edx
call fcn.00403025
add esp, 8
mov ecx, dword [ebp - 0x448]
xor eax, eax
mov dword [ebp - 0x494], 0
mov dword [ebp - 0x490], 7
mov word [ebp - 0x4a4], ax
cmp ecx, 7
jbe 0x401e70
mov edx, dword [ebp - 0x45c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401e66
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401f72
push ecx
push edx
call fcn.00403025
add esp, 8
mov eax, dword [ebp - 0x460]
cmp eax, 7
jbe 0x401eaa
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x401ea0
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401f72
push ecx
push esi
call fcn.00403025
add esp, 8
mov ecx, dword [ebp - 0x478]
cmp ecx, 7
jbe 0x401eea
mov edx, dword [ebp - 0x48c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401ee0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401f72
push ecx
push edx
call fcn.00403025
add esp, 8
cmp dword [ebp - 0x42c], 7
lea eax, [ebp - 0x440]
push 0
cmova eax, dword [ebp - 0x440]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0x42c]
cmp ecx, 7
jbe 0x401f4a
mov edx, dword [ebp - 0x440]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401f40
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401f77
push ecx
push edx
call fcn.00403025
add esp, 8
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
call fcn.00401160
call fcn.00401200
call fcn.004063cb
call fcn.004063cb
int3