Function at 0x401290
Capabilities:
Create process on windows
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
mov eax, dword [0x433c20]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x238], ax
push 0x206
push 0
lea ecx, [ebp - 0x236]
push ecx
call fcn.00416d60
add esp, 0xc
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x244], 0x104
xor edx, edx
mov word [ebp - 0x2c], dx
xor eax, eax
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
mov dword [ebp - 0x254], 0x438658
mov ecx, dword [ebp - 0x254]
add ecx, 2
mov dword [ebp - 0x258], ecx
mov edx, dword [ebp - 0x254]
mov ax, word [edx]
mov word [ebp - 0x25a], ax
add dword [ebp - 0x254], 2
cmp word [ebp - 0x25a], 0
jne 0x401320
mov ecx, dword [ebp - 0x254]
sub ecx, dword [ebp - 0x258]
sar ecx, 1
mov dword [ebp - 0x260], ecx
je 0x40137f
push 0x438658
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
je 0x40137f
xor eax, eax
jmp 0x4016c7
lea edx, [ebp - 0x30]
push edx
push 0xf003f
push 0
push 0x42e558
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401400
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x23c]
push edx
push 0
push 0x42e5c4
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4013f6
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
je 0x4013f6
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4016c7
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
lea ecx, [ebp - 0x238]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x264], 0x438658
mov edx, dword [ebp - 0x264]
add edx, 2
mov dword [ebp - 0x268], edx
mov eax, dword [ebp - 0x264]
mov cx, word [eax]
mov word [ebp - 0x26a], cx
add dword [ebp - 0x264], 2
cmp word [ebp - 0x26a], 0
jne 0x40143f
mov edx, dword [ebp - 0x264]
sub edx, dword [ebp - 0x268]
sar edx, 1
mov dword [ebp - 0x270], edx
jne 0x4014ff
push 0x42e5d4
push 0x104
lea eax, [ebp - 0x238]
push eax
call fcn.004147dd
add esp, 0xc
mov dword [ebp - 0x274], str.sege
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x278], ecx
mov edx, dword [ebp - 0x278]
mov dword [ebp - 0x27c], edx
mov eax, dword [ebp - 0x274]
mov cx, word [eax]
mov word [ebp - 0x27e], cx
mov edx, dword [ebp - 0x278]
mov ax, word [ebp - 0x27e]
mov word [edx], ax
mov ecx, dword [ebp - 0x274]
add ecx, 2
mov dword [ebp - 0x274], ecx
mov edx, dword [ebp - 0x278]
add edx, 2
mov dword [ebp - 0x278], edx
cmp word [ebp - 0x27e], 0
jne 0x4014b2
jmp 0x40157f
push 0x438658
push 0x104
lea eax, [ebp - 0x238]
push eax
call fcn.004147dd
add esp, 0xc
mov dword [ebp - 0x284], 0x438658
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x288], ecx
mov edx, dword [ebp - 0x288]
mov dword [ebp - 0x28c], edx
mov eax, dword [ebp - 0x284]
mov cx, word [eax]
mov word [ebp - 0x28e], cx
mov edx, dword [ebp - 0x288]
mov ax, word [ebp - 0x28e]
mov word [edx], ax
mov ecx, dword [ebp - 0x284]
add ecx, 2
mov dword [ebp - 0x284], ecx
mov edx, dword [ebp - 0x288]
add edx, 2
mov dword [ebp - 0x288], edx
cmp word [ebp - 0x28e], 0
jne 0x401537
push 0x42e5ec
push 0x104
lea eax, [ebp - 0x238]
push eax
call fcn.004147dd
add esp, 0xc
lea ecx, [ebp - 0x248]
push ecx
push str.IDR_BINARY
push 0x82
call fcn.00405da0
add esp, 0xc
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
jne 0x4015ca
jmp 0x4016a1
mov edx, dword [ebp - 0x24c]
push edx
lea eax, [ebp - 0x238]
push eax
mov eax, dword [ebp - 0x248]
call fcn.00405e20
add esp, 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0x42e610
lea ecx, [ebp - 0x238]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea edx, [ebp - 0x30]
push edx
push 3
push 0
push 0x42e618
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4016a1
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x294], eax
mov ecx, dword [ebp - 0x294]
add ecx, 2
mov dword [ebp - 0x298], ecx
mov edx, dword [ebp - 0x294]
mov ax, word [edx]
mov word [ebp - 0x29a], ax
add dword [ebp - 0x294], 2
cmp word [ebp - 0x29a], 0
jne 0x40163c
mov ecx, dword [ebp - 0x294]
sub ecx, dword [ebp - 0x298]
sar ecx, 1
mov dword [ebp - 0x2a0], ecx
mov edx, dword [ebp - 0x2a0]
lea eax, [edx + edx + 2]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push 1
push 0
push str.TrayKey
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4016a1
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x24c], 0
je 0x4016c5
mov ecx, dword [ebp - 0x24c]
mov dword [ebp - 0x250], ecx
mov edx, dword [ebp - 0x250]
push edx
call fcn.0040a393
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004147ce
mov esp, ebp
pop ebp
ret