Function at 0x42e5b0
Capabilities:
Create process on windows
Get common file path
Hide graphical window
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a6bf
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x230], ebx
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0
call fcn.0046b860
test eax, eax
jne 0x42e612
push 0x30
push 0x49794c
push str.The_full_name_of_the_selected_key_or_value_is_not_available.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x42eae9
mov dword [ebp - 0x228], 0
xor ebx, ebx
mov byte [ebp - 4], 1
xor edi, edi
mov ecx, dword [edi + 0x49cb44]
mov esi, ecx
lea edx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42e630
sub esi, edx
sar esi, 1
push esi
push ecx
lea ecx, [ebp + 0xc]
call fcn.0046b310
push eax
call fcn.00473d2b
add esp, 0xc
test eax, eax
je 0x42e664
add edi, 0xc
inc ebx
cmp edi, 0x3c
jb 0x42e624
jmp 0x42e7f8
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x220], 0
call fcn.0046b310
lea edi, [ebx + ebx*2]
lea esi, [eax + esi*2]
lea eax, [ebp - 0x220]
push eax
lea eax, [esi + 2]
push eax
push dword [edi*4 + 0x49cb4c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push esi
mov ebx, eax
call fcn.0046b670
push eax
push esi
call fcn.0046b800
mov dword [ebp - 0x224], eax
mov esi, dword [edi*4 + 0x49cb48]
push esi
mov byte [ebp - 4], 2
call fcn.0046b670
push eax
push esi
call fcn.0046b800
add esp, 0x18
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0046b3d0
mov esi, eax
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x42e6f9
call fcn.0046b840
mov ecx, dword [esi]
mov dword [ebp + 0xc], ecx
test ecx, ecx
je 0x42e707
call fcn.0046b5c0
mov ecx, dword [ebp - 0x22c]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x42e71a
call fcn.0046b840
mov ecx, dword [ebp - 0x21c]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x42e72d
call fcn.0046b840
mov ecx, dword [ebp - 0x224]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x42e740
call fcn.0046b840
test ebx, ebx
jne 0x42e762
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x49b9c8
lea ecx, [ebp + 0xc]
call fcn.0046b530
jmp 0x42e7f8
push 0x5c
lea ecx, [ebp + 0xc]
call fcn.0046b310
push eax
call fcn.00472b95
add esp, 8
lea ecx, [ebp - 0x228]
add eax, 2
push eax
call fcn.0046b290
lea ecx, [ebp - 0x228]
call fcn.0046b860
or esi, 0xffffffff
lea ecx, [ebp + 0xc]
sub esi, eax
call fcn.0046b860
lea ecx, [ebp + 0xc]
lea edi, [esi + eax]
call fcn.0046b310
mov ecx, edi
neg ecx
sbb ecx, ecx
and ecx, 2
push ecx
push 0x490b00
lea ecx, [edi + edi]
push ecx
push eax
call fcn.0046b7a0
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x22c], esi
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x42e7db
call fcn.0046b840
mov dword [ebp + 0xc], esi
test esi, esi
je 0x42e7e9
mov ecx, esi
call fcn.0046b5c0
mov byte [ebp - 4], 1
test esi, esi
je 0x42e7f8
mov ecx, esi
call fcn.0046b840
push 0x38
lea eax, [ebp - 0x268]
mov dword [ebp - 0x26c], 0
push 0
push eax
call fcn.00471730
mov esi, dword [sym.imp.USER32.dll_FindWindowW]
add esp, 0xc
push 0
push str.RegEdit_RegEdit
call esi
mov edi, dword [sym.imp.USER32.dll_WaitForInputIdle]
mov ebx, eax
mov dword [ebp - 0x224], ebx
test ebx, ebx
jne 0x42e8b1
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0x3c
push eax
mov dword [ebp - 0x268], 0x40
mov dword [ebp - 0x260], 0x497138
mov dword [ebp - 0x25c], str.regedit.exe
mov dword [ebp - 0x250], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0xffffffffffffffff
push dword [ebp - 0x234]
call edi
push 0
push str.RegEdit_RegEdit
call esi
mov ebx, eax
mov dword [ebp - 0x224], ebx
jmp 0x42e8d5
lea eax, [ebp - 0x22c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x22c]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x234], eax
test ebx, ebx
jne 0x42e8f6
push 0x10
push 0x49794c
push str.Process_Monitor_was_unable_to_launch_Regedit.
push dword [ebp - 0x230]
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x42ead6
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x42e905
push 1
jmp 0x42e907
push 5
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push 0x49ccd4
push 0
push ebx
call dword [sym.imp.USER32.dll_FindWindowExW]
mov esi, eax
push esi
mov dword [ebp - 0x21c], esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call dword [sym.imp.USER32.dll_SetFocus]
push 0xffffffffffffffff
push dword [ebp - 0x234]
call edi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x10288
push 0x111
push ebx
call esi
push 0xffffffffffffffff
push dword [ebp - 0x234]
call edi
mov ebx, dword [ebp - 0x21c]
mov dword [ebp - 0x220], 0x1e
push 0
push 0x25
push 0x100
push ebx
call esi
push 0xffffffffffffffff
push dword [ebp - 0x234]
call edi
dec dword [ebp - 0x220]
jne 0x42e974
lea ecx, [ebp + 0xc]
call fcn.0046b310
mov ebx, dword [ebp - 0x224]
mov dword [ebp - 0x220], eax
movzx ecx, word [eax]
test cx, cx
je 0x42ea03
mov ebx, dword [ebp - 0x21c]
cmp cx, 0x5c
jne 0x42e9c5
push 0
push 0x27
push 0x100
jmp 0x42e9d9
movzx eax, cx
push eax
call fcn.00473ea5
add esp, 4
push 0
push eax
push 0x102
push ebx
call esi
push 0xffffffffffffffff
push dword [ebp - 0x234]
call edi
mov eax, dword [ebp - 0x220]
add eax, 2
mov dword [ebp - 0x220], eax
movzx ecx, word [eax]
test cx, cx
jne 0x42e9b4
mov ebx, dword [ebp - 0x224]
push 0xffffffffffffffff
push dword [ebp - 0x234]
call edi
lea ecx, [ebp - 0x228]
call fcn.0046b860
test eax, eax
je 0x42eac8
push 0
push 0x499044
push 0
push ebx
call dword [sym.imp.USER32.dll_FindWindowExW]
push eax
mov dword [ebp - 0x21c], eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [ebp - 0x21c]
call dword [sym.imp.USER32.dll_SetFocus]
push 0xffffffffffffffff
push dword [ebp - 0x234]
call edi
push 0
push 0x24
push 0x100
push dword [ebp - 0x21c]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x234]
call edi
lea ecx, [ebp - 0x228]
call fcn.0046b310
mov dword [ebp - 0x230], eax
movzx eax, word [eax]
test ax, ax
je 0x42eac8
mov ebx, dword [ebp - 0x230]
lea ecx, [ecx]
movzx ecx, ax
push ecx
call fcn.00473ea5
add esp, 4
push 0
push eax
push 0x102
push dword [ebp - 0x21c]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x234]
call edi
movzx eax, word [ebx + 2]
lea ebx, [ebx + 2]
test ax, ax
jne 0x42ea90
mov ebx, dword [ebp - 0x224]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 0x228]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x42eae9
call fcn.0046b840
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x42eafc
call fcn.0046b840
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00470e77
mov esp, ebp
pop ebp
ret