Function at 0x4080a0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4e39f7
push eax
mov eax, 0x2270
mov dword fs:[0], esp
call fcn.004af1d0
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2290]
push 0x5c
push edi
call fcn.004aec96
add eax, 2
push 0x2e
push eax
call fcn.004aec96
mov esi, eax
xor ebp, ebp
add esp, 0x10
cmp esi, ebp
jne 0x408262
push str.grldr
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x40829a
cmp word [edi], 0x7a
jbe 0x4084f4
cmp esi, ebp
je 0x408501
push esi
lea ecx, [esp + 0x14]
call fcn.00404170
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x280]
push ecx
lea edx, [esp + 0x24]
push edx
push 0x4ebd38
push esi
mov ebx, 0x2000
push SysReAllocStringLen
mov dword [esp + 0x22a0], 4
mov word [esp + 0x294], bp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
call edi
cmp word [esp + 0x27c], bp
je 0x40817e
lea eax, [esp + 0x27c]
push eax
lea ecx, [esp + 0x14]
call fcn.00402d00
mov esi, dword [eax]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x280]
push edx
lea eax, [esp + 0x24]
push eax
push str.shell
push esi
push SysReAllocStringLen
mov dword [esp + 0x30], ebx
mov word [esp + 0x294], bp
call edi
cmp word [esp + 0x27c], 0
mov ebp, str.open
je 0x4081c0
lea ebp, [esp + 0x27c]
push esi
lea ecx, [esp + 0x14]
call fcn.00402d00
push str._shell_
lea ecx, [esp + 0x14]
call fcn.00403b80
push ebp
lea ecx, [esp + 0x14]
call fcn.00403b80
push 0x4ec4b0
lea ecx, [esp + 0x14]
call fcn.00403b80
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x280]
push edx
lea eax, [esp + 0x24]
push eax
push 0x4ebd38
mov dword [esp + 0x28], ebx
push ecx
xor ebx, ebx
push SysReAllocStringLen
mov word [esp + 0x294], bx
call edi
lea esi, [esp + 0x27c]
mov edx, esi
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esp + 0x27c], bx
lea ebp, [esp + eax*2 + 0x27c]
mov word [esp + 0x74], bx
je 0x40846d
jmp 0x408250
cmp word [esi], 0x25
je 0x408389
add esi, 2
jmp 0x408464
push str..exe
push esi
call fcn.004af274
add esp, 8
test eax, eax
jne 0x408284
push str.grub
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x40829a
push str..lst
push esi
call fcn.004af274
add esp, 8
test eax, eax
jne 0x408100
push str.OnEditFile
lea ecx, [esp + 0x18]
call fcn.00404170
push 0x22
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x2294], ebp
call fcn.004062d0
push edi
push eax
lea edx, [esp + 0x2c]
mov bl, 1
push edx
mov byte [esp + 0x22a0], bl
call fcn.00406210
push 0x22
push eax
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x22ac], 2
call fcn.004062d0
add esp, 0x24
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x228c], 3
call fcn.00402490
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x2288], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408325
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x2288], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40834a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x2288], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408370
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [0x5184fc]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov eax, dword [esp + 0x14]
jmp 0x4084cd
mov ax, word [esi + 2]
cmp ax, 0x31
lea ecx, [esi + 2]
jne 0x4083b6
mov edx, dword [esp + 0x2290]
lea eax, [esp + 0x74]
push 0x104
mov ecx, eax
push ecx
push edx
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
jmp 0x4083c7
cmp ax, 0x4c
jne 0x408422
mov eax, dword [esp + 0x2290]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [esp + 0x227a]
sub eax, esi
sar eax, 1
cmp edi, eax
jle 0x4083e5
mov edi, eax
cmp edi, 2
je 0x408406
mov edx, ebp
sub edx, esi
sub edx, 2
sar edx, 1
shl edx, 1
push edx
lea eax, [esi + 4]
push eax
lea ecx, [esi + edi*2]
push ecx
call fcn.004aee50
add esp, 0xc
mov edx, dword [esp + 0x14]
lea ebx, [edi + edi]
push ebx
push edx
push esi
call fcn.004aee50
add esp, 0xc
add esi, ebx
lea ebp, [ebp + edi*2 - 4]
xor ebx, ebx
jmp 0x408464
cmp ax, 0x25
jne 0x40843e
mov eax, ebp
sub eax, esi
sar eax, 1
push eax
push ecx
push esi
call fcn.004aee50
add esp, 0xc
sub ebp, 2
jmp 0x408464
cmp ax, 0x2a
jne 0x408462
mov ecx, ebp
sub ecx, esi
sub ecx, 2
sar ecx, 1
shl ecx, 1
push ecx
lea edx, [esi + 4]
push edx
push esi
call fcn.004aee50
add esp, 0xc
sub ebp, 4
jmp 0x408464
mov esi, ecx
cmp word [esi], bx
jne 0x408250
xor eax, eax
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x34], ebx
mov ecx, 0xf
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push ebx
push ebx
push ebx
push ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
push ebx
mov dword [esp + 0x48], eax
push ebx
lea eax, [esp + 0x29c]
push eax
push ebx
mov dword [esp + 0x48], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x24]
push edx
call esi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x2288], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408501
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x408501
push 5
push ebp
push ebp
push edi
push ebp
push ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x2280]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x227c
ret