Function at 0x402391
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, 0x454
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x206
xor ebx, ebx
push esi
lea eax, [ebp - 0x236]
push ebx
push eax
mov word [ebp - 0x238], bx
call fcn.00408c60
add esp, 0xc
push esi
lea eax, [ebp - 0x43e]
push ebx
push eax
mov word [ebp - 0x440], bx
call fcn.00408c60
add esp, 0xc
push 9
mov word [ebp - 0x2c], bx
pop ecx
xor eax, eax
lea edi, [ebp - 0x2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x4250a0
mov esi, 0x104
push edi
mov dword [ebp - 0x44c], ebx
mov dword [ebp - 0x450], esi
call fcn.00409cbb
test eax, eax
pop ecx
je 0x402424
push edi
push ebx
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
jne 0x4025e5
lea eax, [ebp - 0x444]
push eax
push 0xf003f
push ebx
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40249e
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44c]
push eax
push ebx
push str.TrayKey
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402492
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x402492
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4025e5
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x440]
push eax
push esi
call edi
push str.gbp.ini
lea eax, [ebp - 0x440]
push esi
push eax
call fcn.00408d82
add esp, 0xc
push dword [0x424e0a]
mov ecx, 0x424e0e
push dword [0x424e06]
lea ebx, [ebp - 0x440]
call fcn.0040210f
pop ecx
pop ecx
lea eax, [ebp - 0x238]
push eax
xor ebx, ebx
push esi
mov dword [ebp - 0x448], ebx
call edi
mov edi, 0x4250c0
push edi
call fcn.00409cbb
test eax, eax
pop ecx
lea eax, [ebp - 0x238]
jne 0x40250e
mov edi, str.secu
push edi
push esi
push eax
call fcn.00408d82
add esp, 0xc
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.00408d34
pop ecx
pop ecx
push str..exe
lea eax, [ebp - 0x238]
push esi
push eax
call fcn.00408d82
lea eax, [ebp - 0x448]
add esp, 0xc
push eax
call fcn.00402915
mov esi, eax
cmp esi, ebx
pop ecx
je 0x4025e5
push dword [ebp - 0x448]
lea eax, [ebp - 0x238]
push esi
push eax
call fcn.004021d6
add esp, 0xc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push ebx
push 0x41ddcc
lea eax, [ebp - 0x238]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [ebp - 0x444]
push eax
push 3
push ebx
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4025de
lea eax, [ebp - 0x2c]
push eax
call fcn.00409cbb
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x2c]
push eax
push 1
push ebx
push str.TrayKey
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4025de
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0040b479
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00408c4c
leave
ret