Function at 0x3000ae7d
Capabilities:
Create process on windows
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x710
mov eax, dword [0x30001dbc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x6b8], ecx
movzx ecx, byte [eax + 0xf]
push edi
push ecx
movzx ecx, byte [eax + 0xe]
push ecx
movzx ecx, byte [eax + 0xd]
push ecx
movzx ecx, byte [eax + 0xc]
push ecx
movzx ecx, byte [eax + 0xb]
push ecx
movzx ecx, byte [eax + 0xa]
push ecx
movzx ecx, byte [eax + 9]
push ecx
movzx ecx, byte [eax + 8]
push ecx
movzx ecx, word [eax + 6]
push ecx
movzx ecx, word [eax + 4]
push ecx
push dword [eax]
lea eax, [ebp - 0x88]
push 0x300020c8
push eax
call fcn.3000ae2c
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0x34
lea eax, [ebp - 0x6ac]
push eax
xor ebx, ebx
mov edi, 0x20019
push edi
push ebx
push 0x30001428
push SysReAllocString
mov word [ebp - 0x394], bx
mov dword [ebp - 0x6ac], ebx
call esi
test eax, eax
jne 0x3000b044
lea eax, [ebp - 0x6a4]
push eax
push edi
push ebx
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x6ac]
mov dword [ebp - 0x6a4], ebx
call esi
test eax, eax
jne 0x3000b030
lea eax, [ebp - 0x6b0]
push eax
lea eax, [ebp - 0x6b4]
push eax
push ebx
push ebx
push 0x300020ac
push dword [ebp - 0x6a4]
mov dword [ebp - 0x6b0], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x3000afc6
cmp dword [ebp - 0x6b0], 4
jne 0x3000afc6
cmp dword [ebp - 0x6b4], 1
jne 0x3000afaf
cmp dword [ebp - 0x6a4], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x3000af98
push dword [ebp - 0x6a4]
call esi
cmp dword [ebp - 0x6ac], ebx
je 0x3000afa8
push dword [ebp - 0x6ac]
call esi
xor al, al
jmp 0x3000b2ed
cmp dword [ebp - 0x6b4], 2
jne 0x3000afc6
mov eax, dword [ebp - 0x6b8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x3000af82
lea eax, [ebp - 0x6a8]
push eax
push edi
push ebx
push 0x3000208c
push dword [ebp - 0x6a4]
mov dword [ebp - 0x6a8], ebx
call esi
test eax, eax
jne 0x3000b01c
lea eax, [ebp - 0x6b0]
push eax
lea eax, [ebp - 0x394]
push eax
push ebx
push ebx
push 0x300017bc
push dword [ebp - 0x6a8]
mov dword [ebp - 0x6b0], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x3000b01c
mov word [ebp - 0x394], bx
cmp dword [ebp - 0x6a8], ebx
je 0x3000b030
push dword [ebp - 0x6a8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x6a4], ebx
je 0x3000b044
push dword [ebp - 0x6a4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x6ac], ebx
je 0x3000b058
push dword [ebp - 0x6ac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [ebp - 0x394], bx
je 0x3000b149
push 0x30002074
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x3000205c
push eax
mov dword [ebp - 0x6b0], eax
call esi
lea ecx, [ebp - 0x6b4]
push ecx
lea ecx, [ebp - 0x394]
push ecx
call eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push ebx
mov dword [ebp - 0x6b4], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp - 0x6a8], eax
je 0x3000b163
push 0x30002048
push dword [ebp - 0x6b0]
call esi
push dword [ebp - 0x6a8]
lea ecx, [ebp - 0x394]
push dword [ebp - 0x6b4]
push ebx
push ecx
call eax
test eax, eax
je 0x3000b137
push 0x30002038
push dword [ebp - 0x6b0]
call esi
lea ecx, [ebp - 0x6b0]
push ecx
lea ecx, [ebp - 0x6b8]
push ecx
push 0x30001c5c
push dword [ebp - 0x6a8]
call eax
test eax, eax
je 0x3000b137
mov eax, dword [ebp - 0x6b8]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
lea eax, [ebp - 0x38]
push 0x30002020
push eax
call fcn.3000ae46
add esp, 0x18
push dword [ebp - 0x6a8]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x3000b163
push 0x3000200c
lea eax, [ebp - 0x394]
push 0x104
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
cmp word [ebp - 0x38], bx
jne 0x3000b17d
push 0x3000200c
lea eax, [ebp - 0x38]
push 0x19
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x6cc], ebx
lea edi, [ebp - 0x6c8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x70c]
push ebx
push eax
mov dword [ebp - 0x710], 0x44
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x18c]
push eax
mov esi, 0x104
push esi
mov dword [ebp - 0x6e4], 0x80
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x3000b2eb
lea eax, [ebp - 0x498]
push eax
push ebx
push 0x30002008
lea eax, [ebp - 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x3000b2eb
push esi
lea eax, [ebp - 0x18c]
push eax
call fcn.3000adce
test al, al
je 0x3000b2eb
push 0x30002004
lea eax, [ebp - 0x498]
push eax
lea eax, [ebp - 0x6bc]
push eax
call dword [sym.imp.MSVCR80.dll_fopen_s]
add esp, 0xc
test eax, eax
jne 0x3000b2eb
lea eax, [ebp - 0x394]
push 0x5c
push eax
call dword [sym.imp.MSVCR80.dll_wcsrchr]
cmp eax, ebx
pop ecx
pop ecx
jne 0x3000b247
lea eax, [ebp - 0x394]
jmp 0x3000b249
inc eax
inc eax
lea ecx, [ebp - 0x498]
push ecx
push 1
push 1
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
push 0x20000
push 0x30001e50
push dword [ebp - 0x6bc]
call dword [sym.imp.MSVCR80.dll_fwprintf_s]
push dword [ebp - 0x6bc]
call dword [sym.imp.MSVCR80.dll_fclose]
lea eax, [ebp - 0x498]
push eax
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x6a0]
push 0x30001e40
push eax
call fcn.3000ae60
add esp, 0x38
lea eax, [ebp - 0x6cc]
push eax
lea eax, [ebp - 0x710]
push eax
push ebx
push ebx
push 0x4000020
push 1
push ebx
push ebx
lea eax, [ebp - 0x6a0]
push eax
lea eax, [ebp - 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x3000b2eb
push dword [ebp - 0x6c8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x6cc]
call esi
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.3000adb6
leave
ret 4