Function at 0x41a664
Capabilities:
Create directory
Create thread
Get common file path
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0x5e
push 2
mov dword [ebp - 0x20], ecx
pop ebx
jne 0x41a680
add esi, ebx
mov dword [ebp + 8], esi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 0x400
push eax
lea ecx, [ebp - 0x34]
call fcn.00432cd5
mov eax, dword [ebp - 0x34]
push 0x23
pop edi
push 0x24
mov dword [ebp - 0x1c], eax
xor eax, eax
pop ecx
cmp dword [ebp + 0xc], ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], eax
jne 0x41a6b7
mov dword [ebp - 0xc], ecx
jmp 0x41a6bf
cmp dword [ebp + 0xc], edi
jne 0x41a6bf
mov dword [ebp - 0x10], edi
mov ax, word [esi]
cmp ax, cx
jne 0x41a6d3
cmp word [ebp - 0xc], 0
jne 0x41a6d3
mov dword [ebp - 0xc], ecx
jmp 0x41a6e2
cmp ax, di
jne 0x41a6e7
cmp word [ebp - 0x10], 0
jne 0x41a6e7
mov dword [ebp - 0x10], edi
add esi, ebx
mov dword [ebp + 8], esi
cmp word [esi], 0x20
jne 0x41a6f2
add esi, ebx
mov dword [ebp + 8], esi
xor eax, eax
mov ax, word [esi]
cmp ax, 0x2a
je 0x41a703
cmp ax, 0x2d
jne 0x41a70b
add esi, ebx
mov dword [ebp - 0x24], eax
mov dword [ebp + 8], esi
and dword [ebp - 0x28], 0
cmp byte [ebp + 0xc], 0
lea ecx, [ebp - 0x18]
setne byte [ebp - 1]
call fcn.00432cb7
cmp word [esi], 0
jne 0x41a7f1
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x41a7ea
cmp dword [ebp + 0x10], edi
je 0x41a7ea
mov eax, dword [esi + 0x48f794]
mov ebx, dword [ebp - 0x1c]
inc eax
inc eax
push eax
push 0x491820
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 1
lea edi, [esi + 0x48f790]
push dword [edi]
lea ebx, [ebx + eax*2]
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41a7dc
cmp dword [edi], 0x1a
jne 0x41a793
push str.MicrosoftInternet_ExplorerQuick_Launch
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
call fcn.00410354
pop ecx
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.HKCUEnvironment_
lea ecx, [ebp - 0x18]
call fcn.0043cd64
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
call fcn.00432d25
push 1
push dword [ebp - 0x18]
mov edi, 0x4a5f08
mov ecx, edi
call fcn.0044cba7
push ebx
push dword [esi + 0x48f794]
mov ecx, edi
call fcn.00432698
mov ecx, dword [ebp - 0x20]
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x1c]
call fcn.0041a664
add esi, 8
cmp esi, 0x40
jb 0x41a73d
jmp 0x41a7ee
mov byte [ebp - 1], 0x10
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
xor bl, bl
test ecx, ecx
mov byte [ebp + 0xf], bl
mov byte [ebp + 0xb], bl
mov byte [ebp + 0x13], bl
je 0x41a91b
cmp word [ecx], 0
je 0x41a91b
push 0x7e
pop edi
xor edx, edx
mov dx, word [ecx]
mov eax, edx
call fcn.00402b57
test al, al
jne 0x41a907
cmp dx, 0x2e
je 0x41a8fb
cmp dx, 0x24
je 0x41a8fb
cmp dx, 0x25
je 0x41a8fb
cmp dx, 0x2a
jne 0x41a854
or bl, 4
jmp 0x41a8fb
cmp dx, di
jne 0x41a899
lea eax, [ecx + 2]
cmp word [eax], di
jne 0x41a869
or bl, 2
jmp 0x41a8f9
cmp dx, di
jne 0x41a899
lea eax, [ecx + 2]
cmp word [eax], 0x2e
jne 0x41a87c
or bl, 8
jmp 0x41a8f9
cmp dx, di
jne 0x41a899
lea eax, [ecx + 2]
cmp word [eax], 0x2a
jne 0x41a88f
or bl, 9
jmp 0x41a8f9
cmp dx, di
jne 0x41a899
or bl, 1
jmp 0x41a8fb
cmp dx, 0x2d
jne 0x41a8fb
cmp word [ecx + 2], 0x65
jne 0x41a8bc
cmp word [ecx + 4], 0x6e
jne 0x41a8bc
lea eax, [ecx + 6]
cmp word [eax], 0x76
jne 0x41a8bc
or byte [ebp + 0xf], 0x40
jmp 0x41a8f9
cmp dx, 0x2d
jne 0x41a8fb
cmp word [ecx + 2], 0x72
jne 0x41a8df
cmp word [ecx + 4], 0x61
jne 0x41a8df
lea eax, [ecx + 6]
cmp word [eax], 0x77
jne 0x41a8df
or byte [ebp + 0xb], 0x40
jmp 0x41a8f9
cmp dx, 0x2d
jne 0x41a8fb
cmp word [ecx + 2], 0x65
jne 0x41a8fb
lea eax, [ecx + 4]
cmp word [eax], 0x78
jne 0x41a8fb
mov byte [ebp + 0x13], 1
mov ecx, eax
inc ecx
inc ecx
cmp word [ecx], 0
jne 0x41a814
cmp byte [ebp + 0xb], 0
je 0x41a91b
lea eax, [ebp + 0x14]
push eax
xor bl, bl
call fcn.0040417e
mov esi, dword [eax]
pop ecx
push 0x3d
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 8], eax
je 0x41a934
mov word [eax], cx
add dword [ebp - 8], 2
mov edi, dword [ebp - 0x20]
cmp byte [edi + 0x96], 0
mov dword [ebp - 0x14], ecx
jne 0x41a95a
test byte [edi + 0xb], 0xf
jne 0x41a95a
push 1
push ecx
lea eax, [ebp - 0x14]
push eax
push esi
mov ecx, edi
call fcn.0043b070
jmp 0x41a969
push 1
push ecx
lea eax, [ebp - 0x14]
push eax
push esi
mov ecx, edi
call fcn.00439f34
mov esi, dword [ebp - 0x14]
xor eax, eax
test bl, bl
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], eax
je 0x41a99e
cmp dword [ebp - 8], eax
je 0x41a9cf
mov al, byte [ebp + 0xf]
or al, bl
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 8]
call fcn.0043cd64
push eax
mov ecx, edi
call fcn.00449b7c
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [ebp - 8], eax
je 0x41a9cf
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00441799
add esp, 0x10
cmp dword [ebp - 8], 0
je 0x41a9cf
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
shl edi, 1
jmp 0x41a9d1
xor edi, edi
xor ebx, ebx
cmp word [esi], bx
je 0x41aa8a
cmp word [ebp - 0xc], bx
je 0x41aa15
cmp dword [ebp - 8], ebx
jne 0x41a9fc
push esi
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
push 0x80000002
call fcn.0042ebbc
add esp, 0xc
jmp 0x41aa15
push edi
push dword [ebp - 8]
push 1
push esi
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
push 0x80000002
call fcn.0042eb45
add esp, 0x18
cmp word [esi], bx
je 0x41aa8a
cmp word [ebp - 0x10], bx
je 0x41aa53
cmp dword [ebp - 8], ebx
jne 0x41aa3a
push esi
push str.Environment
push 0x80000001
call fcn.0042ebbc
add esp, 0xc
jmp 0x41aa53
push edi
push dword [ebp - 8]
push 1
push esi
push str.Environment
push 0x80000001
call fcn.0042eb45
add esp, 0x18
cmp word [esi], bx
je 0x41aa8a
cmp byte [ebp + 0x13], 0
je 0x41aa6e
push dword [ebp - 8]
push dword [ebp - 0x20]
call fcn.00435ec4
pop ecx
pop ecx
mov dword [ebp - 8], eax
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x41aa81
mov dword [ebp - 0x28], ebx
jmp 0x41aa8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
cmp byte [ebp - 1], 0
pop edi
je 0x41aadb
cmp word [ebp - 0x24], 0x2a
je 0x41aadb
cmp word [ebp - 0x24], 0x2d
je 0x41aac2
mov al, byte [0x4a5d55]
cmp al, 0x2d
je 0x41aac2
cmp byte [ebp - 1], 0x10
je 0x41aabb
test al, al
je 0x41aabb
mov byte [0x4a5d56], 1
jmp 0x41aadb
call fcn.0040d3ba
jmp 0x41aadb
push 0x4a5b6c
mov eax, 0x10000
push eax
push ebx
push 0x41a562
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [ebp - 0x2c]
call fcn.0042dd2d
lea ecx, [ebp - 0x30]
call fcn.0042dd2d
lea ecx, [ebp - 0x14]
call fcn.0042dd2d
lea ecx, [ebp - 0x18]
call fcn.0042dd2d
lea ecx, [ebp - 0x34]
call fcn.0042dd2d
mov eax, dword [ebp - 0x28]
pop esi
pop ebx
leave
ret 0x10