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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0x5e
push 2
mov dword [ebp - 0x14], ecx
pop ebx
jne 0x418b4b
add edi, ebx
mov dword [ebp + 8], edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 0x400
push eax
lea ecx, [ebp - 0x34]
call fcn.0042aed6
mov eax, dword [ebp - 0x34]
push 0x23
pop esi
push 0x24
mov dword [ebp - 0x20], 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 0x418b82
mov dword [ebp - 0xc], ecx
jmp 0x418b8a
cmp dword [ebp + 0xc], esi
jne 0x418b8a
mov dword [ebp - 0x10], esi
mov ax, word [edi]
cmp ax, cx
jne 0x418b9e
cmp word [ebp - 0xc], 0
jne 0x418b9e
mov dword [ebp - 0xc], ecx
jmp 0x418bad
cmp ax, si
jne 0x418bb2
cmp word [ebp - 0x10], 0
jne 0x418bb2
mov dword [ebp - 0x10], esi
add edi, ebx
mov dword [ebp + 8], edi
cmp word [edi], 0x20
jne 0x418bbd
add edi, ebx
mov dword [ebp + 8], edi
xor eax, eax
mov ax, word [edi]
cmp ax, 0x2a
je 0x418bce
cmp ax, 0x2d
jne 0x418bd6
add edi, ebx
mov dword [ebp - 0x24], eax
mov dword [ebp + 8], edi
and dword [ebp - 0x28], 0
cmp byte [ebp + 0xc], 0
lea ecx, [ebp - 0x1c]
setne byte [ebp - 1]
call fcn.0042aeb8
cmp word [edi], 0
jne 0x418cdf
cmp dword [ebp + 0x10], 0
je 0x418cdb
cmp dword [ebp + 0x10], esi
je 0x418cdb
xor esi, esi
xor eax, eax
cmp word [edi], ax
je 0x418c2b
mov ecx, dword [ebp - 0x14]
push eax
push eax
mov eax, dword [esi + 0x47b51c]
push dword [ebp + 0xc]
inc eax
inc eax
push eax
call fcn.00418b2f
jmp 0x418ccd
mov eax, dword [esi + 0x47b51c]
mov ebx, dword [ebp - 0x20]
inc eax
inc eax
push eax
push 0x47d9f8
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 1
lea edi, [esi + 0x47b518]
push dword [edi]
lea ebx, [ebx + eax*2]
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x418cca
cmp dword [edi], 0x1a
jne 0x418c81
push str.MicrosoftInternet_ExplorerQuick_Launch
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
call fcn.0040f598
pop ecx
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.HKCUEnvironment_
lea ecx, [ebp - 0x1c]
call fcn.004346c9
push dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
call fcn.0042af26
push 1
push dword [ebp - 0x1c]
mov edi, 0x48feb8
mov ecx, edi
call fcn.00443030
push ebx
push dword [esi + 0x47b51c]
mov ecx, edi
call fcn.00429dbf
mov ecx, dword [ebp - 0x14]
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x20]
call fcn.00418b2f
mov edi, dword [ebp + 8]
add esi, 8
cmp esi, 0x40
jb 0x418c09
jmp 0x418cdf
mov byte [ebp - 1], 0x10
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 0x418e09
cmp word [ecx], 0
je 0x418e09
push 0x7e
pop esi
xor edx, edx
mov dx, word [ecx]
mov eax, edx
call fcn.00426083
test al, al
jne 0x418df5
cmp dx, 0x2e
je 0x418de9
cmp dx, 0x24
je 0x418de9
cmp dx, 0x25
je 0x418de9
cmp dx, 0x2a
jne 0x418d42
or bl, 4
jmp 0x418de9
cmp dx, si
jne 0x418d87
lea eax, [ecx + 2]
cmp word [eax], si
jne 0x418d57
or bl, 2
jmp 0x418de7
cmp dx, si
jne 0x418d87
lea eax, [ecx + 2]
cmp word [eax], 0x2e
jne 0x418d6a
or bl, 8
jmp 0x418de7
cmp dx, si
jne 0x418d87
lea eax, [ecx + 2]
cmp word [eax], 0x2a
jne 0x418d7d
or bl, 9
jmp 0x418de7
cmp dx, si
jne 0x418d87
or bl, 1
jmp 0x418de9
cmp dx, 0x2d
jne 0x418de9
cmp word [ecx + 2], 0x65
jne 0x418daa
cmp word [ecx + 4], 0x6e
jne 0x418daa
lea eax, [ecx + 6]
cmp word [eax], 0x76
jne 0x418daa
or byte [ebp + 0xf], 0x40
jmp 0x418de7
cmp dx, 0x2d
jne 0x418de9
cmp word [ecx + 2], 0x72
jne 0x418dcd
cmp word [ecx + 4], 0x61
jne 0x418dcd
lea eax, [ecx + 6]
cmp word [eax], 0x77
jne 0x418dcd
or byte [ebp + 0xb], 0x40
jmp 0x418de7
cmp dx, 0x2d
jne 0x418de9
cmp word [ecx + 2], 0x65
jne 0x418de9
lea eax, [ecx + 4]
cmp word [eax], 0x78
jne 0x418de9
mov byte [ebp + 0x13], 1
mov ecx, eax
inc ecx
inc ecx
cmp word [ecx], 0
jne 0x418d02
cmp byte [ebp + 0xb], 0
je 0x418e09
lea eax, [ebp + 0x14]
push eax
xor bl, bl
call fcn.00403b20
mov edi, dword [eax]
pop ecx
push 0x3d
push edi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 8], eax
je 0x418e22
mov word [eax], cx
add dword [ebp - 8], 2
mov esi, dword [ebp - 0x14]
cmp byte [esi + 0x86], 0
mov dword [ebp - 0x18], ecx
jne 0x418e48
test byte [esi + 0xb], 0xf
jne 0x418e48
push 1
push ecx
lea eax, [ebp - 0x18]
push eax
push edi
mov ecx, esi
call fcn.0043b094
jmp 0x418e57
push 1
push ecx
lea eax, [ebp - 0x18]
push eax
push edi
mov ecx, esi
call fcn.00439f58
mov edi, dword [ebp - 0x18]
xor eax, eax
test bl, bl
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], eax
je 0x418e8c
cmp dword [ebp - 8], eax
je 0x418ebd
mov al, byte [ebp + 0xf]
or al, bl
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 8]
call fcn.004346c9
push eax
mov ecx, esi
call fcn.00440850
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [ebp - 8], eax
je 0x418ebd
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00437911
add esp, 0x10
cmp dword [ebp - 8], 0
je 0x418ebd
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
shl esi, 1
jmp 0x418ebf
xor esi, esi
xor ebx, ebx
cmp word [edi], bx
je 0x418f78
cmp word [ebp - 0xc], bx
je 0x418f03
cmp dword [ebp - 8], ebx
jne 0x418eea
push edi
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
push 0x80000002
call fcn.00426ea6
add esp, 0xc
jmp 0x418f03
push esi
push dword [ebp - 8]
push 1
push edi
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
push 0x80000002
call fcn.00426e2f
add esp, 0x18
cmp word [edi], bx
je 0x418f78
cmp word [ebp - 0x10], bx
je 0x418f41
cmp dword [ebp - 8], ebx
jne 0x418f28
push edi
push str.Environment
push 0x80000001
call fcn.00426ea6
add esp, 0xc
jmp 0x418f41
push esi
push dword [ebp - 8]
push 1
push edi
push str.Environment
push 0x80000001
call fcn.00426e2f
add esp, 0x18
cmp word [edi], bx
je 0x418f78
cmp byte [ebp + 0x13], 0
je 0x418f5c
push dword [ebp - 8]
push dword [ebp - 0x14]
call fcn.0042dff9
pop ecx
pop ecx
mov dword [ebp - 8], eax
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x418f6f
mov dword [ebp - 0x28], ebx
jmp 0x418f78
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
cmp byte [ebp - 1], 0
pop esi
je 0x418fc9
cmp word [ebp - 0x24], 0x2a
je 0x418fc9
cmp word [ebp - 0x24], 0x2d
je 0x418fb0
mov al, byte [0x48fd59]
cmp al, 0x2d
je 0x418fb0
cmp byte [ebp - 1], 0x10
je 0x418fa9
test al, al
je 0x418fa9
mov byte [0x48fd5a], 1
jmp 0x418fc9
call fcn.0040b8f1
jmp 0x418fc9
push 0x48fb8c
mov eax, 0x10000
push eax
push ebx
push 0x418a2d
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [ebp - 0x2c]
call fcn.0042602e
lea ecx, [ebp - 0x30]
call fcn.0042602e
lea ecx, [ebp - 0x18]
call fcn.0042602e
lea ecx, [ebp - 0x1c]
call fcn.0042602e
lea ecx, [ebp - 0x34]
call fcn.0042602e
mov eax, dword [ebp - 0x28]
pop edi
pop ebx
leave
ret 0x10