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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push ebx
push esi
push edi
mov dword [ebp - 0x24], ecx
push dword [ebp + 8]
call fcn.00413a5d
test eax, eax
je 0x413c90
lea ecx, [ebp - 0x14]
call fcn.00401502
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x18f]
mov byte [ebp - 0x190], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
push eax
push 1
push ebx
push 0x421cf5
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x20], 0x104
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], 4
call edi
test eax, eax
jne 0x413b2d
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0x421590
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x413b17
cmp dword [ebp - 0x1c], ebx
jne 0x413b2d
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x14]
call fcn.00416a21
jmp 0x413c90
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
lea eax, [ebp - 8]
push eax
push 1
push ebx
push 0x420ca8
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x413bb8
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x190]
push eax
push ebx
push ebx
push 0x420c98
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x413bb8
lea eax, [ebp - 0x15]
lea ecx, [ebp - 0x38]
push eax
call fcn.004037f7
lea eax, [ebp - 0x190]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x190]
push eax
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x38]
call fcn.00403806
lea eax, [ebp - 1]
lea ecx, [ebp - 0x14]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.0040152a
lea ecx, [ebp - 0x38]
call fcn.00416a21
mov eax, dword [ebp - 0x14]
push dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jne 0x413bd2
call esi
lea ecx, [ebp - 0x14]
call fcn.00416a21
jmp 0x413c90
call esi
push 0x44
lea eax, [ebp - 0x8c]
pop esi
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x48]
push ebx
push eax
mov dword [ebp - 0x8c], esi
call sub.MSVCRT.dll_memset
mov esi, 0x420c74
push esi
call sub.MSVCRT.dll_strlen
add esp, 0x1c
lea ecx, [ebp - 1]
add eax, esi
push ecx
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.00403823
lea eax, [ebp - 0x14]
push eax
push 0x4224c8
call fcn.00403793
pop ecx
test al, al
pop ecx
jne 0x413c82
mov esi, 0x4203d4
push esi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, esi
lea ecx, [ebp - 1]
push ecx
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.00403823
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x8c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x413c82
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ecx]
cmp eax, ecx
je 0x413c82
mov edx, dword [ebp + 8]
cmp dword [eax + 8], edx
je 0x413c7c
mov eax, dword [eax]
jmp 0x413c6c
mov ecx, dword [ebp - 0x48]
mov dword [eax + 0x2c], ecx
cmp dword [ebp - 0x14], ebx
je 0x413c90
push dword [ebp - 0x14]
call sub.MFC42.DLL_operatordelete
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4