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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42328e
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x42ea58]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x42ea58]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, ecx
push str.CStubApp::LaunchApplications
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], esi
call fcn.00401120
xor edi, edi
push 0x104
mov dword [esp + 0x8c], edi
mov dword [esp + 0x3c], edi
call fcn.00407619
add esp, 4
cmp eax, edi
mov dword [esp + 0x2c], eax
je 0x404ef3
mov byte [eax], 0
mov ecx, dword [esi]
cmp ecx, edi
jne 0x404f06
mov dword [esp + 0x38], 0x57
jmp 0x40590f
call fcn.004014c0
cmp eax, edi
mov dword [esp + 0x44], eax
je 0x40590f
mov eax, dword [eax + 0xc]
test eax, eax
je 0x40590f
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx + 4]
add eax, 0xffffffff
test eax, eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x48], edi
jle 0x40590f
xor eax, eax
cmp dword [ebp + 8], eax
sete al
mov dword [esp + 0x58], eax
jmp 0x404f50
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x2c]
mov byte [ecx], 0
mov edx, dword [eax]
mov ebx, dword [eax + 8]
mov eax, dword [ebx]
push eax
lea ecx, [esp + 0x14]
xor esi, esi
push str.Application_to_launch:__s
push ecx
mov dword [esp + 0x58], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x5c], edx
call fcn.00401410
mov edx, dword [ebx + 4]
push edx
lea eax, [esp + 0x20]
push str.Application_parameters:__s
push eax
call fcn.00401410
mov ecx, dword [ebx + 8]
push ecx
lea edx, [esp + 0x2c]
push str.Wait_for_application_to_finish:__s
push edx
call fcn.00401410
mov eax, dword [ebx + 0xc]
push eax
lea ecx, [esp + 0x38]
push str.When_to_run_application:__s
push ecx
call fcn.00401410
mov edx, dword [ebx + 0x10]
push edx
lea eax, [esp + 0x44]
push str.If_we_should_use_CreateProcess:__s
push eax
call fcn.00401410
mov ecx, dword [ebx + 0x14]
push ecx
lea edx, [esp + 0x50]
push str.if_we_should_check_the_registry:__s
push edx
call fcn.00401410
mov eax, dword [ebx + 0xc]
add esp, 0x48
push 0x4259c8
push eax
call fcn.00411a08
mov ecx, dword [ebp + 8]
add esp, 8
neg eax
sbb eax, eax
add eax, 1
test ecx, eax
je 0x40501f
mov edx, dword [ebx]
push edx
lea eax, [esp + 0x14]
push str.SW_1st_only___Launching:__s
push eax
call fcn.00401410
mov esi, 1
add esp, 0xc
mov dword [esp + 0x18], esi
mov eax, dword [ebx + 0xc]
push 0x4265e0
push eax
call fcn.00411a08
mov edi, dword [esp + 0x60]
add esp, 8
neg eax
sbb eax, eax
add eax, 1
test edi, eax
je 0x40505d
mov ecx, dword [ebx]
push ecx
lea edx, [esp + 0x14]
push str.HW_1st_only___Launching:__s
push edx
call fcn.00401410
mov esi, 1
add esp, 0xc
mov dword [esp + 0x18], esi
mov eax, dword [ebx + 0xc]
push 0x4265c0
push eax
call fcn.00411a08
add esp, 8
neg eax
sbb eax, eax
add eax, 1
test edi, eax
je 0x4050bd
mov ecx, dword [esp + 0x40]
call fcn.004045b0
test eax, eax
je 0x4050a2
mov eax, dword [ebx]
push eax
lea ecx, [esp + 0x14]
push str.PNP_is_not_running___Launching:__s
push ecx
call fcn.00401410
add esp, 0xc
mov esi, 1
jmp 0x4050b9
mov edx, dword [ebx]
push edx
lea eax, [esp + 0x14]
push str.PNP_is_running___not_Launching:__s
push eax
call fcn.00401410
add esp, 0xc
xor esi, esi
mov dword [esp + 0x18], esi
mov eax, dword [ebx + 0xc]
push 0x426574
push eax
call fcn.00411a08
add esp, 8
test eax, eax
jne 0x4050f1
mov ecx, dword [ebx]
push ecx
lea edx, [esp + 0x14]
push str.SW_1st_or_HW_1st___Launching:__s
push edx
call fcn.00401410
add esp, 0xc
mov dword [esp + 0x18], 1
jmp 0x4050f9
test esi, esi
je 0x4058f2
mov eax, dword [ebx + 0x14]
push 0x4265e0
push eax
call fcn.00411a08
add esp, 8
test eax, eax
je 0x405151
mov eax, dword [ebx + 0x14]
push 0x426574
push eax
call fcn.00411a08
add esp, 8
test eax, eax
je 0x405151
mov eax, dword [ebx + 0x14]
push 0x4265c0
push eax
call fcn.00411a08
add esp, 8
test eax, eax
je 0x405151
mov eax, dword [ebx + 0x14]
push 0x42654c
push eax
call fcn.00411a08
add esp, 8
test eax, eax
jne 0x40574a
push 0x104
call fcn.00407619
xor esi, esi
push 0x104
mov dword [esp + 0x5c], eax
mov dword [esp + 0x2c], esi
call fcn.00407619
mov edi, eax
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], esi
mov byte [esp + 0x68], 0
push 0x104
mov byte [esp + 0x94], 1
call fcn.00407619
add esp, 0xc
test byte [0x42fe68], 1
mov dword [esp + 0x30], eax
jne 0x4051cb
or dword [0x42fe68], 1
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
mov byte [esp + 0x88], 2
call fcn.00401500
mov dword [0x42fe64], eax
mov byte [esp + 0x88], 1
cmp edi, esi
je 0x4051e2
mov ecx, dword [ebx + 0x18]
mov edx, edi
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x4051d4
push edi
lea ecx, [esp + 0x14]
push str.evaluating_RegKey:__s
push ecx
call fcn.00401410
push 0x425b14
push edi
call fcn.004103ba
add esp, 0x14
cmp eax, esi
jne 0x40521c
push edi
lea edx, [esp + 0x14]
push str.Invalid_Registry_Key_format:__s
push edx
call fcn.00401410
add esp, 0xc
jmp 0x4056db
push eax
mov byte [eax], 0
call fcn.00411ac5
mov esi, eax
push 0x425b14
push esi
mov dword [esp + 0x28], esi
call fcn.004103ba
add esp, 0xc
test eax, eax
je 0x40526b
lea ecx, [ecx]
mov eax, dword [esp + 0x1c]
push 0x425b14
push eax
call fcn.004103ba
push eax
call fcn.00411ac5
push 0x425b14
push eax
mov dword [esp + 0x30], eax
call fcn.004103ba
add esp, 0x14
test eax, eax
jne 0x405240
mov ecx, dword [esp + 0x1c]
push ecx
push edi
call fcn.00411ab2
push eax
mov byte [eax], 0
call fcn.00411ac5
push str.HKLM
push edi
mov dword [esp + 0x30], eax
call fcn.00411a08
add esp, 0x14
test eax, eax
jne 0x4052a2
mov dword [esp + 0x20], VariantCopy
jmp 0x405330
push str.HKEY_LOCAL_MACHINE
push edi
call fcn.00411a08
add esp, 8
test eax, eax
jne 0x4052be
mov dword [esp + 0x20], VariantCopy
jmp 0x405330
push str.HKEY_CLASSES_ROOT
push edi
call fcn.00411a08
add esp, 8
test eax, eax
jne 0x4052da
mov dword [esp + 0x20], 0x80000000
jmp 0x405330
push str.HKEY_CURRENT_USER
push edi
call fcn.00411a08
add esp, 8
test eax, eax
jne 0x4052f6
mov dword [esp + 0x20], VariantClear
jmp 0x405330
push str.HKEY_USERS
push edi
call fcn.00411a08
add esp, 8
test eax, eax
jne 0x405312
mov dword [esp + 0x20], VariantCopy
jmp 0x405330
push str.HKEY_CURRENT_CONFIG
push edi
call fcn.00411a08
add esp, 8
test eax, eax
jne 0x405853
mov dword [esp + 0x20], VariantCopy
mov edx, dword [ebx + 0x1c]
push edx
lea eax, [esp + 0x14]
push str.value_to_match_in_registry:__s
push eax
call fcn.00401410
xor eax, eax
push eax
push eax
lea ecx, [esp + 0x24]
push str.KeyExists_d__KeyMatch_d
push ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x44], eax
call fcn.00401410
mov eax, dword [0x42fe64]
add esp, 0x1c
cmp eax, 4
je 0x405379
cmp eax, 6
je 0x405379
cmp eax, 8
jne 0x4054c9
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
push edx
push 0x101
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
push esi
push edi
je 0x4053ae
lea ecx, [esp + 0x18]
push str.64Bit:_Error_opening_registry_key:__s_s
push ecx
call fcn.00401410
add esp, 0x10
jmp 0x4054a2
lea edx, [esp + 0x18]
push str.64Bit:_opened_regkey_key:__s_subkey:__s
push edx
call fcn.00401410
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
add esp, 0x10
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x28]
push ecx
push 0
push 0
push edx
push eax
mov dword [esp + 0x54], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x405408
mov ecx, dword [esp + 0x1c]
push ecx
push esi
push edi
lea edx, [esp + 0x1c]
push str.64Bit:_Error_reading_registry_value:__s_s_s
push edx
call fcn.00401410
add esp, 0x14
jmp 0x4054a2
mov eax, dword [esp + 0x1c]
push eax
push esi
push edi
lea ecx, [esp + 0x1c]
push str.64Bit:_opened_registry_value:__s_s_s
push ecx
call fcn.00401410
mov edx, dword [esp + 0x44]
push edx
lea eax, [esp + 0x28]
push str.64Bit:_registry_value_retrieved:__s
push eax
call fcn.00401410
lea ecx, [esp + 0x30]
push str.64Bit:_KeyExists
push ecx
call fcn.00401410
mov edx, dword [esp + 0x58]
add esp, 0x28
push edx
lea ecx, [esp + 0x60]
mov dword [esp + 0x38], 1
call fcn.00404db0
mov eax, dword [ebx + 0x1c]
push 0
push eax
lea ecx, [esp + 0x64]
call fcn.00404920
cmp eax, 0xffffffff
je 0x405487
lea ecx, [esp + 0x10]
push str.64Bit:_KeyMatch__TRUE
push ecx
call fcn.00401410
mov dword [esp + 0x30], 1
jmp 0x405496
lea edx, [esp + 0x10]
push str.64Bit:_KeyMatch__FALSE
push edx
call fcn.00401410
add esp, 8
lea ecx, [esp + 0x5c]
call fcn.00404de0
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
push ecx
push edx
lea eax, [esp + 0x18]
push str.64Bit:_KeyExists_d__KeyMatch_d
push eax
call fcn.00401410
add esp, 0x10
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push ecx
push 1
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
push esi
push edi
je 0x4054fb
lea eax, [esp + 0x18]
push str.Error_opening_registry_key:__s_s
push eax
call fcn.00401410
add esp, 0x10
jmp 0x4055eb
lea ecx, [esp + 0x18]
push str.opened_regkey_key:__s_subkey:__s
push ecx
call fcn.00401410
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
add esp, 0x10
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x28]
push eax
push 0
push 0
push ecx
push edx
mov dword [esp + 0x54], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x405555
mov eax, dword [esp + 0x1c]
push eax
push esi
push edi
lea ecx, [esp + 0x1c]
push str.Error_reading_registry_value:__s_s_s
push ecx
call fcn.00401410
add esp, 0x14
jmp 0x4055eb
mov edx, dword [esp + 0x1c]
push edx
push esi
push edi
lea eax, [esp + 0x1c]
push str.opened_registry_value:__s_s_s
push eax
call fcn.00401410
mov esi, dword [esp + 0x44]
push esi
lea ecx, [esp + 0x28]
push str.registry_value:__s
push ecx
call fcn.00401410
lea edx, [esp + 0x30]
push str.KeyExists
push edx
call fcn.00401410
add esp, 0x28
push esi
lea ecx, [esp + 0x60]
mov dword [esp + 0x38], 1
call fcn.00404db0
mov eax, dword [ebx + 0x1c]
push 0
push eax
lea ecx, [esp + 0x64]
call fcn.00404920
cmp eax, 0xffffffff
je 0x4055d0
lea ecx, [esp + 0x10]
push str.KeyMatch__TRUE
push ecx
call fcn.00401410
mov dword [esp + 0x30], 1
jmp 0x4055df
lea edx, [esp + 0x10]
push str.KeyMatch__FALSE
push edx
call fcn.00401410
add esp, 8
lea ecx, [esp + 0x5c]
call fcn.00404de0
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebx + 0x14]
push 0x4265e0
push eax
call fcn.00411a08
mov esi, dword [esp + 0x3c]
add esp, 8
test eax, eax
jne 0x40562c
mov ecx, dword [esp + 0x28]
push esi
push ecx
push esi
lea edx, [esp + 0x1c]
push str.regDisplay:_regkeyexists__KeyExists_d__KeyMatch_d._bRunIt__d
push edx
mov dword [esp + 0x2c], esi
call fcn.00401410
add esp, 0x14
mov eax, dword [ebx + 0x14]
push 0x426574
push eax
call fcn.00411a08
add esp, 8
test eax, eax
jne 0x405663
test esi, esi
sete al
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
push eax
push esi
push str.regDisplay:_regkeynotexists__KeyExists_d__KeyMatch_d._bRunIt__d
push ecx
call fcn.00401410
add esp, 0x14
mov eax, dword [ebx + 0x14]
push 0x4265c0
push eax
call fcn.00411a08
add esp, 8
test eax, eax
jne 0x405695
mov eax, dword [esp + 0x28]
push eax
push eax
push esi
lea edx, [esp + 0x1c]
push str.regDisplay:_regkeymatches__KeyExists_d__KeyMatch_d._bRunIt__d
push edx
mov dword [esp + 0x2c], eax
call fcn.00401410
add esp, 0x14
mov eax, dword [ebx + 0x14]
push 0x42654c
push eax
call fcn.00411a08
add esp, 8
test eax, eax
jne 0x4056cc
mov ecx, dword [esp + 0x28]
test ecx, ecx
sete al
push eax
push ecx
push esi
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
push str.regDisplay:_regkeynotmatches__KeyExists_d__KeyMatch_d._bRunIt__d
push eax
call fcn.00401410
add esp, 0x14
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4056db
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4056ea
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4056fb
push eax
call fcn.00407614
add esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
je 0x40570c
push eax
call fcn.00407614
add esp, 4
test edi, edi
je 0x405719
push edi
call fcn.00407614
add esp, 4
cmp dword [esp + 0x74], 0x10
mov byte [esp + 0x88], 0
jb 0x405735
mov edx, dword [esp + 0x60]
push edx
call fcn.00407614
add esp, 4
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
cmp dword [esp + 0x18], 0
je 0x4058f2
mov eax, dword [ebx + 0x10]
push 0x4265e0
push eax
call fcn.00411a08
add esp, 8
test eax, eax
lea eax, [esp + 0x10]
jne 0x405890
push str.CreateProcess__1__using_CreateProcess
push eax
call fcn.00401410
mov ecx, dword [ebx]
mov edi, dword [esp + 0x34]
push ecx
push str.__s_
push edi
call fcn.00410cdc
add esp, 0x14
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x405795
mov dx, word [0x42620c]
mov word [edi], dx
mov eax, dword [ebx + 4]
mov edi, eax
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4057b0
sub eax, edi
mov esi, edi
mov edi, dword [esp + 0x2c]
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4057c4
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x2c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push str.Application_to_launch:__s
push ecx
call fcn.00401410
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x4c]
add esp, 0xc
push 0
lea edx, [esp + 0x50]
push edx
push eax
call fcn.004040a0
test eax, eax
mov dword [esp + 0x38], eax
jne 0x40586b
mov eax, dword [ebx + 8]
push 0x4265e0
push eax
call fcn.00411a08
mov esi, dword [esp + 0x54]
add esp, 8
test eax, eax
jne 0x405847
mov ecx, dword [ebx]
push ecx
lea edx, [esp + 0x14]
push str._s___Application_launched._Waiting_for_it_to_finish
push edx
call fcn.00401410
add esp, 0xc
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4058f2
push edi
lea ecx, [esp + 0x14]
push str.Unknown_registry_key:__s
push ecx
call fcn.00401410
add esp, 0xc
jmp 0x4056db
mov eax, dword [ebx]
push eax
lea ecx, [esp + 0x14]
push str.ERROR____s___Application_failed_to_launch
push ecx
call fcn.00401410
mov edx, dword [esp + 0x44]
add esp, 0xc
push edx
lea ecx, [esp + 0x14]
call fcn.00401390
jmp 0x4058f2
push str.CreateProcess__0_or_null__using_ShellExecute
push eax
call fcn.00401410
mov ecx, dword [ebx]
push ecx
lea edx, [esp + 0x1c]
push str.Application_to_launch:__s
push edx
call fcn.00401410
mov eax, dword [ebx + 4]
push eax
lea ecx, [esp + 0x28]
push str.Application_params:__s
push ecx
call fcn.00401410
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
add esp, 0x20
push 5
push 0
push edx
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push eax
lea ecx, [esp + 0x14]
push str.ShellExecute_returned__d___32_success_
push ecx
mov dword [esp + 0x44], eax
call fcn.00401410
add esp, 0xc
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov eax, dword [edx + 0xc]
add ecx, 1
add eax, 0xffffffff
cmp ecx, eax
mov dword [esp + 0x48], ecx
jl 0x404f50
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x405920
push eax
call fcn.00407614
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x88], 0xffffffff
call fcn.004012d0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00410afa
mov esp, ebp
pop ebp
ret 4