Function at 0x41d2a1
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 0x41d2bd
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.00435d80
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 0x41d2f4
mov dword [ebp - 0xc], ecx
jmp 0x41d2fc
cmp dword [ebp + 0xc], edi
jne 0x41d2fc
mov dword [ebp - 0x10], edi
mov ax, word [esi]
cmp ax, cx
jne 0x41d310
cmp word [ebp - 0xc], 0
jne 0x41d310
mov dword [ebp - 0xc], ecx
jmp 0x41d31f
cmp ax, di
jne 0x41d324
cmp word [ebp - 0x10], 0
jne 0x41d324
mov dword [ebp - 0x10], edi
add esi, ebx
mov dword [ebp + 8], esi
cmp word [esi], 0x20
jne 0x41d32f
add esi, ebx
mov dword [ebp + 8], esi
xor eax, eax
mov ax, word [esi]
cmp ax, 0x2a
je 0x41d340
cmp ax, 0x2d
jne 0x41d348
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.00435d62
cmp word [esi], 0
jne 0x41d42e
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x41d427
cmp dword [ebp + 0x10], edi
je 0x41d427
mov eax, dword [esi + 0x495984]
mov ebx, dword [ebp - 0x1c]
inc eax
inc eax
push eax
push str._s
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 1
lea edi, [esi + 0x495980]
push dword [edi]
lea ebx, [ebx + eax*2]
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41d419
cmp dword [edi], 0x1a
jne 0x41d3d0
push str.MicrosoftInternet_ExplorerQuick_Launch
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push ebx
call fcn.004104d1
pop ecx
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
push str.HKCUEnvironment_
lea ecx, [ebp - 0x18]
call fcn.0044042b
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
call fcn.00435dd0
push 1
push dword [ebp - 0x18]
mov edi, 0x4acf10
mov ecx, edi
call fcn.004509d7
push ebx
push dword [esi + 0x495984]
mov ecx, edi
call fcn.00435749
mov ecx, dword [ebp - 0x20]
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x1c]
call fcn.0041d2a1
add esi, 8
cmp esi, 0x40
jb 0x41d37a
jmp 0x41d42b
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 0x41d558
cmp word [ecx], 0
je 0x41d558
push 0x7e
pop edi
xor edx, edx
mov dx, word [ecx]
mov eax, edx
call fcn.0040bc38
test al, al
jne 0x41d544
cmp dx, 0x2e
je 0x41d538
cmp dx, 0x24
je 0x41d538
cmp dx, 0x25
je 0x41d538
cmp dx, 0x2a
jne 0x41d491
or bl, 4
jmp 0x41d538
cmp dx, di
jne 0x41d4d6
lea eax, [ecx + 2]
cmp word [eax], di
jne 0x41d4a6
or bl, 2
jmp 0x41d536
cmp dx, di
jne 0x41d4d6
lea eax, [ecx + 2]
cmp word [eax], 0x2e
jne 0x41d4b9
or bl, 8
jmp 0x41d536
cmp dx, di
jne 0x41d4d6
lea eax, [ecx + 2]
cmp word [eax], 0x2a
jne 0x41d4cc
or bl, 9
jmp 0x41d536
cmp dx, di
jne 0x41d4d6
or bl, 1
jmp 0x41d538
cmp dx, 0x2d
jne 0x41d538
cmp word [ecx + 2], 0x65
jne 0x41d4f9
cmp word [ecx + 4], 0x6e
jne 0x41d4f9
lea eax, [ecx + 6]
cmp word [eax], 0x76
jne 0x41d4f9
or byte [ebp + 0xf], 0x40
jmp 0x41d536
cmp dx, 0x2d
jne 0x41d538
cmp word [ecx + 2], 0x72
jne 0x41d51c
cmp word [ecx + 4], 0x61
jne 0x41d51c
lea eax, [ecx + 6]
cmp word [eax], 0x77
jne 0x41d51c
or byte [ebp + 0xb], 0x40
jmp 0x41d536
cmp dx, 0x2d
jne 0x41d538
cmp word [ecx + 2], 0x65
jne 0x41d538
lea eax, [ecx + 4]
cmp word [eax], 0x78
jne 0x41d538
mov byte [ebp + 0x13], 1
mov ecx, eax
inc ecx
inc ecx
cmp word [ecx], 0
jne 0x41d451
cmp byte [ebp + 0xb], 0
je 0x41d558
lea eax, [ebp + 0x14]
push eax
xor bl, bl
call fcn.0040459d
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 0x41d571
mov word [eax], cx
add dword [ebp - 8], 2
mov edi, dword [ebp - 0x20]
cmp byte [edi + 0x92], 0
mov dword [ebp - 0x14], ecx
jne 0x41d597
test byte [edi + 9], 0xf
jne 0x41d597
push 1
push ecx
lea eax, [ebp - 0x14]
push eax
push esi
mov ecx, edi
call fcn.0043e6fb
jmp 0x41d5a6
push 1
push ecx
lea eax, [ebp - 0x14]
push eax
push esi
mov ecx, edi
call fcn.0043d5b3
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 0x41d5db
cmp dword [ebp - 8], eax
je 0x41d60c
mov al, byte [ebp + 0xf]
or al, bl
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 8]
call fcn.0044042b
push eax
mov ecx, edi
call fcn.0044dda1
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [ebp - 8], eax
je 0x41d60c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00444e35
add esp, 0x10
cmp dword [ebp - 8], 0
je 0x41d60c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, eax
shl edi, 1
jmp 0x41d60e
xor edi, edi
xor ebx, ebx
cmp word [esi], bx
je 0x41d6c7
cmp word [ebp - 0xc], bx
je 0x41d652
cmp dword [ebp - 8], ebx
jne 0x41d639
push esi
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
push 0x80000002
call fcn.004317de
add esp, 0xc
jmp 0x41d652
push edi
push dword [ebp - 8]
push 1
push esi
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
push 0x80000002
call fcn.00431794
add esp, 0x18
cmp word [esi], bx
je 0x41d6c7
cmp word [ebp - 0x10], bx
je 0x41d690
cmp dword [ebp - 8], ebx
jne 0x41d677
push esi
push str.Environment
push 0x80000001
call fcn.004317de
add esp, 0xc
jmp 0x41d690
push edi
push dword [ebp - 8]
push 1
push esi
push str.Environment
push 0x80000001
call fcn.00431794
add esp, 0x18
cmp word [esi], bx
je 0x41d6c7
cmp byte [ebp + 0x13], 0
je 0x41d6ab
push dword [ebp - 8]
push dword [ebp - 0x20]
call fcn.0043916a
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 0x41d6be
mov dword [ebp - 0x28], ebx
jmp 0x41d6c7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x28], eax
cmp byte [ebp - 1], 0
pop edi
je 0x41d718
cmp word [ebp - 0x24], 0x2a
je 0x41d718
cmp word [ebp - 0x24], 0x2d
je 0x41d6ff
mov al, byte [0x4acd55]
cmp al, 0x2d
je 0x41d6ff
cmp byte [ebp - 1], 0x10
je 0x41d6f8
test al, al
je 0x41d6f8
mov byte [0x4acd56], 1
jmp 0x41d718
call fcn.0040ddec
jmp 0x41d718
push 0x4acb70
mov eax, 0x10000
push eax
push ebx
push 0x41d0e9
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
lea ecx, [ebp - 0x2c]
call fcn.0043092f
lea ecx, [ebp - 0x30]
call fcn.0043092f
lea ecx, [ebp - 0x14]
call fcn.0043092f
lea ecx, [ebp - 0x18]
call fcn.0043092f
lea ecx, [ebp - 0x34]
call fcn.0043092f
mov eax, dword [ebp - 0x28]
pop esi
pop ebx
leave
ret 0x10