Function at 0x408550
Capabilities:
Create process on windows
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4e7bc2
push eax
mov eax, 0x2274
mov dword fs:[0], esp
call fcn.004b3e50
push ebx
push ebp
mov ebp, dword [esp + 0x228c]
push esi
push edi
push 0x5c
push ebp
call fcn.004b3956
add esp, 8
test eax, eax
lea edi, [eax + 2]
jne 0x40858e
mov edi, ebp
add eax, 2
push 0x2e
push eax
call fcn.004b3956
mov esi, eax
add esp, 8
test esi, esi
jne 0x4085b7
push str.grldr
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x4085d5
jmp 0x408764
push str..exe
push esi
call fcn.004b3ef4
add esp, 8
test eax, eax
jne 0x4085d5
push str.grub
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
push str.TEAM_SET_::UDM_EDIT0_OnEditFile
lea ecx, [esp + 0x14]
call fcn.004044c0
push 0x22
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2298], 0
call fcn.00406670
push ebp
push eax
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x22a4], 1
call fcn.004065b0
push 0x4f04f4
push eax
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x22b0], 2
call fcn.004065b0
mov ecx, dword [esp + 0x22bc]
push ecx
push eax
lea edx, [esp + 0x48]
mov bl, 3
push edx
mov byte [esp + 0x22bc], bl
call fcn.004065b0
add esp, 0x30
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2290], 4
call fcn.004024d0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edi, 0xffffffff
mov byte [esp + 0x228c], bl
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408683
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 + 0x228c], 2
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4086a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x228c], 1
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4086cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x228c], 0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4086f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push str._EXIT__UDM_EDIT_
call fcn.004b3af1
add esp, 4
push eax
push str._EXIT__UDM_EDIT_
lea ecx, [esp + 0x18]
call fcn.00402340
mov ecx, dword [0x51c63c]
mov edx, dword [esp + 0x10]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
test eax, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x228c], edi
jle 0x40874d
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x408a5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x408a5b
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x408764
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp word [ebp], 0x7a
jbe 0x408a4a
xor edi, edi
cmp esi, edi
je 0x408a5b
push esi
lea ecx, [esp + 0x18]
call fcn.004044c0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x284]
push ecx
lea edx, [esp + 0x24]
push edx
push 0x4efd50
push esi
mov word [esp + 0x294], di
mov dword [esp + 0x30], edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ebx, 0x2000
push SysReAllocStringLen
mov dword [esp + 0x22a4], 5
mov dword [esp + 0x30], ebx
call edi
cmp word [esp + 0x280], 0
je 0x4087e6
lea eax, [esp + 0x280]
push eax
lea ecx, [esp + 0x18]
call fcn.00402d60
mov esi, dword [eax]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x284]
push edx
lea eax, [esp + 0x24]
push eax
push str.shell
push esi
push SysReAllocStringLen
mov dword [esp + 0x30], ebx
mov word [esp + 0x298], 0
call edi
cmp word [esp + 0x280], 0
mov ebp, str.open
je 0x40882a
lea ebp, [esp + 0x280]
push esi
lea ecx, [esp + 0x18]
call fcn.00402d60
push str._shell_
call fcn.004b3af1
add esp, 4
push eax
push str._shell_
lea ecx, [esp + 0x1c]
call fcn.00402340
push ebp
lea ecx, [esp + 0x18]
call fcn.00403ed0
push 0x4f0490
call fcn.004b3af1
add esp, 4
push eax
push 0x4f0490
lea ecx, [esp + 0x1c]
call fcn.00402340
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x284]
push edx
lea eax, [esp + 0x24]
push eax
push 0x4efd50
mov dword [esp + 0x28], ebx
push ecx
xor ebx, ebx
push SysReAllocStringLen
mov word [esp + 0x298], bx
call edi
lea esi, [esp + 0x280]
mov edx, esi
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esp + 0x280], bx
lea ebp, [esp + eax*2 + 0x280]
mov word [esp + 0x78], bx
je 0x4089c3
cmp word [esi], 0x25
je 0x4088df
add esi, 2
jmp 0x4089ba
mov ax, word [esi + 2]
cmp ax, 0x31
lea ecx, [esi + 2]
jne 0x40890c
mov edx, dword [esp + 0x2294]
lea eax, [esp + 0x78]
push 0x104
mov ecx, eax
push ecx
push edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
jmp 0x40891d
cmp ax, 0x4c
jne 0x408978
mov eax, dword [esp + 0x2294]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [esp + 0x227e]
sub eax, esi
sar eax, 1
cmp edi, eax
jle 0x40893b
mov edi, eax
cmp edi, 2
je 0x40895c
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.004b3b10
add esp, 0xc
mov edx, dword [esp + 0x10]
lea ebx, [edi + edi]
push ebx
push edx
push esi
call fcn.004b3b10
add esp, 0xc
add esi, ebx
lea ebp, [ebp + edi*2 - 4]
xor ebx, ebx
jmp 0x4089ba
cmp ax, 0x25
jne 0x408994
mov eax, ebp
sub eax, esi
sar eax, 1
push eax
push ecx
push esi
call fcn.004b3b10
add esp, 0xc
sub ebp, 2
jmp 0x4089ba
cmp ax, 0x2a
jne 0x4089b8
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.004b3b10
add esp, 0xc
sub ebp, 4
jmp 0x4089ba
mov esi, ecx
cmp word [esi], bx
jne 0x4088d1
xor eax, eax
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x38], ebx
mov ecx, 0xf
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x38]
push edx
push ebx
push ebx
push ebx
push ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
push ebx
mov dword [esp + 0x4c], eax
push ebx
lea eax, [esp + 0x2a0]
push eax
push ebx
mov dword [esp + 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x28]
push edx
call esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x228c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408a5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x408a5b
push 5
push 0
push 0
push ebp
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x2284]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2280
ret