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

Disassembly:
sub esp, 0x670
mov eax, dword [0x40c010]
xor eax, esp
mov dword [esp + 0x66c], eax
push ebx
lea eax, [esp + 8]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsCEAPPMGR.EXE
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401418
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x570]
push edx
push eax
push eax
mov eax, dword [esp + 0x18]
push 0x409202
push eax
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401418
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x56c]
push edx
lea eax, [esp + 0x214]
push eax
call ebx
mov cl, byte [esp + 0x210]
xor edx, edx
lea eax, [esp + 0x210]
test cl, cl
je 0x401418
cmp cl, 0x5c
jne 0x40140c
lea edx, [eax + 1]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401404
test edx, edx
jne 0x40145e
push 1
lea ecx, [esp + 0x14]
call fcn.00401150
push 2
lea ecx, [esp + 0x114]
call fcn.00401150
push 0
lea ecx, [esp + 0x114]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
mov ecx, dword [esp + 0x66c]
xor ecx, esp
call fcn.00402169
add esp, 0x670
ret
push esi
push 0x50
lea eax, [esp + 0x31c]
push eax
push 2
push 0x67
mov byte [edx], 0
mov byte [esp + 0x328], 0
call fcn.004011b0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0x10
lea ecx, [esp + 0x318]
push ecx
lea edx, [esp + 0x218]
push edx
call esi
push 0
lea eax, [esp + 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4014f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4014f2
push 3
lea ecx, [esp + 0x18]
call fcn.00401150
push 0
lea ecx, [esp + 0x218]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
pop ebx
mov ecx, dword [esp + 0x66c]
xor ecx, esp
call fcn.00402169
add esp, 0x670
ret
push edi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x21c]
push ecx
mov edi, 1
push edi
call fcn.00401250
add esp, 0xc
test eax, eax
je 0x40152d
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x21c]
push eax
inc edi
push edi
call fcn.00401250
add esp, 0xc
test eax, eax
jne 0x401512
cmp dword [esp + 0xc], 0
pop edi
je 0x40156e
push 4
lea ecx, [esp + 0x18]
call fcn.00401150
push 0
lea ecx, [esp + 0x218]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
pop ebx
mov ecx, dword [esp + 0x66c]
xor ecx, esp
call fcn.00402169
add esp, 0x670
ret
push 0x409200
lea eax, [esp + 0x36c]
push eax
call ebx
lea ecx, [esp + 0x214]
push ecx
lea edx, [esp + 0x36c]
push edx
call esi
push 0x4091f8
lea eax, [esp + 0x36c]
push eax
call esi
lea ecx, [esp + 0x368]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, 0x104
sub edx, eax
push edx
lea eax, [esp + eax + 0x36c]
push eax
push 1
push 0x65
call fcn.004011b0
add esp, 0x10
test al, al
jne 0x401613
push 5
lea ecx, [esp + 0x118]
call fcn.00401150
push 2
lea ecx, [esp + 0x18]
call fcn.00401150
push 0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x11c]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
pop ebx
mov ecx, dword [esp + 0x66c]
xor ecx, esp
call fcn.00402169
add esp, 0x670
ret
push 0x409200
lea eax, [esp + 0x36c]
push eax
call esi
lea ecx, [esp + 0x570]
push ecx
lea edx, [esp + 0x470]
push edx
call ebx
push 0x4091fc
lea eax, [esp + 0x470]
push eax
call esi
lea ecx, [esp + 0x368]
push ecx
lea edx, [esp + 0x470]
push edx
call esi
push 5
lea eax, [esp + 0x470]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [esp + 0x674]
pop esi
pop ebx
xor ecx, esp
call fcn.00402169
add esp, 0x670
ret