Function at 0x403920
Capabilities:
Create process on windows
Create process suspended
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, ecx
sub esp, 0xac
cmp ecx, 1
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x78], 0
sbb eax, eax
mov dword [ebp - 0x74], 0
and eax, 0xfff2ffda
mov dword [esp + 0x20], ecx
lea ecx, [ebp - 0x84]
add eax, 0xf003f
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], esi
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
sub esp, 0x24
test eax, eax
jne 0x403a54
cmp dword [ebp - 0x80], 1
mov eax, dword [ebp - 0x84]
je 0x403a03
lea edx, [ebp - 0x78]
xor edi, edi
xor esi, esi
mov dword [esp], eax
mov dword [esp + 0x24], edx
lea edx, [ebp - 0x74]
mov dword [esp + 0x20], edx
lea edx, [ebp - 0x7c]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], edi
mov dword [esp + 8], edi
mov dword [esp + 4], edi
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyW]
sub esp, 0x30
test eax, eax
jne 0x403a03
mov edi, dword [ebp - 0x7c]
test edi, edi
jne 0x403a5c
test byte [0x40939c], 8
jne 0x403e01
xor edx, edx
xor esi, esi
mov dword [esp], edx
mov ebx, dword [sym.imp.ucrtbase.dll_free]
call ebx
mov dword [esp], esi
call ebx
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
push eax
test byte [0x40939c], 8
je 0x403a54
mov dword [esp + 0xc], str.Done._n
mov dword [esp + 8], str.process_run_key
mov dword [esp + 4], 0x40939c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [sym.imp.ucrtbase.dll_malloc]
mov eax, dword [ebp - 0x78]
mov dword [esp], eax
mov dword [ebp - 0x88], edx
call edx
mov edx, dword [ebp - 0x88]
test eax, eax
mov esi, eax
je 0x403ec9
mov eax, dword [ebp - 0x74]
add eax, 1
mov dword [ebp - 0x74], eax
add eax, eax
mov dword [esp], eax
call edx
mov edx, eax
test eax, eax
je 0x403e87
mov dword [ebp - 0x88], ebx
mov ebx, eax
jmp 0x403ada
mov ecx, dword [ebp - 0x88]
test ecx, ecx
jne 0x403b6f
mov eax, dword [ebp - 0x68]
cmp eax, 1
je 0x403ba3
mov edi, dword [ebp - 0x7c]
test byte [0x40939c], 2
jne 0x403c7d
test edi, edi
je 0x403c92
mov eax, dword [ebp - 0x74]
sub edi, 1
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x68]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x70]
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumValueW]
sub esp, 0x20
test eax, eax
je 0x403aa8
mov edi, dword [ebp - 0x7c]
test byte [0x40939c], 2
je 0x403ad2
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.Couldnt_read_value__lu___ld_._n
mov dword [esp + 8], str.process_run_key
mov dword [esp + 4], 0x40939c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
mov edi, dword [ebp - 0x7c]
jmp 0x403ad2
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
push edx
push edx
test eax, eax
je 0x403ab6
test byte [0x40939c], 2
jne 0x403e2a
cmp dword [ebp - 0x68], 1
jne 0x403c75
xor edi, edi
xor eax, eax
lea edx, [ebp - 0x60]
mov ecx, 0x10
mov dword [ebp - 0x64], edi
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
mov edi, edx
mov ecx, 4
mov dword [ebp - 0x50], 0x44
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x50]
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
je 0x403c99
test byte [0x40939c], 8
jne 0x403d24
cmp dword [ebp + 8], 0
jne 0x403cf4
mov eax, dword [ebp - 0x5c]
mov edi, dword [sym.imp.kernelbase.dll_CloseHandle]
mov dword [esp], eax
call edi
push edx
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call edi
push ecx
cmp dword [ebp - 0x64], 0xffffffff
movzx eax, byte [0x40939c]
je 0x403ca8
mov edi, dword [ebp - 0x7c]
test al, 8
je 0x403ad2
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.Done_processing_cmd__lu._n
mov dword [esp + 8], str.process_run_key
mov dword [esp + 4], 0x40939c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov edi, dword [ebp - 0x7c]
jmp 0x403ad2
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.Incorrect_type_of_value__lu___lu_._n
jmp 0x403b4b
mov edx, ebx
jmp 0x403a07
movzx eax, byte [0x40939c]
test al, 4
jne 0x403d93
test al, 2
je 0x403c42
mov eax, dword fs:[0x18]
mov edi, dword [eax + 0x34]
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0xc], str.Error_running_cmd__s___lu_._n
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.process_run_key
mov dword [esp + 4], 0x40939c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
movzx eax, byte [0x40939c]
jmp 0x403c42
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_WaitForSingleObject]
lea eax, [ebp - 0x64]
push edi
push edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_GetExitCodeProcess]
push eax
push eax
jmp 0x403c1d
mov eax, esi
mov edi, dword [ebp - 0x60]
shr eax, 0x10
je 0x403d81
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push edx
push edx
test eax, eax
jne 0x403e5e
mov eax, esi
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Successfully_ran_command__s___Created_process_handle__p_n
mov dword [esp + 8], str.runCmd
mov dword [esp + 4], 0x40939c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x403c13
mov dword [esp + 4], esi
mov dword [esp], 0x40b228
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x403d50
mov eax, dword fs:[0x18]
mov edi, dword [eax + 0x34]
mov eax, esi
shr eax, 0x10
je 0x403e68
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push ecx
push ecx
test eax, eax
jne 0x403e7d
mov eax, esi
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_run_command__s___ld__n
mov dword [esp + 8], str.runCmd
mov dword [esp + 4], 0x40939c
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
movzx eax, byte [0x40939c]
jmp 0x403ca8
mov dword [esp + 0xc], str.No_commands_to_execute._n
mov dword [esp + 8], str.process_run_key
mov dword [esp + 4], 0x40939c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x403a03
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x7c]
mov dword [esp + 0xc], str.Couldnt_delete_value__lu___ld_._Running_command_anyways._n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.process_run_key
mov dword [esp + 4], 0x40939c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x403ab6
mov eax, str._invalid_
jmp 0x403d50
mov dword [esp + 4], esi
mov dword [esp], 0x40b228
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x403dc9
mov eax, str._invalid_
jmp 0x403dc9
test byte [0x40939c], 2
je 0x403a07
mov dword [ebp - 0x88], eax
mov dword [esp + 0xc], str.Couldnt_allocate_memory_for_the_value_names._n
mov dword [esp + 8], str.process_run_key
mov dword [esp + 4], 0x40939c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [ebp - 0x88]
jmp 0x403a07
test byte [0x40939c], 2
je 0x403a03
mov dword [esp + 0xc], str.Couldnt_allocate_memory_for_the_commands_to_be_executed._n
mov dword [esp + 8], str.process_run_key
mov dword [esp + 4], 0x40939c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x403a03