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

Disassembly:
sub esp, 0x66c
lea eax, [esp + 4]
push ebx
push esi
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsCEAPPMGR.EXE
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4013e2
lea ecx, [esp + 0x10]
lea edx, [esp + 0x570]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x1c]
push 0x40698c
push eax
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4013e2
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x570]
lea eax, [esp + 0x14]
push edx
push eax
call ebx
mov cl, byte [esp + 0x14]
xor edx, edx
test cl, cl
lea eax, [esp + 0x14]
je 0x4013e2
cmp cl, 0x5c
jne 0x4013d6
lea edx, [eax + 1]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4013ce
test edx, edx
jne 0x401421
push 1
lea ecx, [esp + 0x16c]
call fcn.00401000
push 2
lea ecx, [esp + 0x370]
call fcn.00401000
lea ecx, [esp + 0x36c]
push 0
lea edx, [esp + 0x16c]
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
pop ebx
add esp, 0x66c
ret
lea eax, [esp + 0x118]
push 0x50
push eax
push 2
push 0x67
mov byte [edx], 0
mov byte [esp + 0x128], 0
call fcn.00401030
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0x10
lea ecx, [esp + 0x118]
lea edx, [esp + 0x14]
push ecx
push edx
call esi
lea eax, [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4014a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4014a3
push 3
lea ecx, [esp + 0x16c]
call fcn.00401000
lea ecx, [esp + 0x14]
push 0
lea edx, [esp + 0x16c]
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
pop ebx
add esp, 0x66c
ret
lea eax, [esp + 8]
push edi
lea ecx, [esp + 0x18]
mov edi, 1
push eax
push ecx
push edi
call fcn.004010e0
add esp, 0xc
test eax, eax
je 0x4014d8
lea edx, [esp + 0xc]
lea eax, [esp + 0x18]
inc edi
push edx
push eax
push edi
call fcn.004010e0
add esp, 0xc
test eax, eax
jne 0x4014c0
mov eax, dword [esp + 0xc]
pop edi
test eax, eax
je 0x40150f
push 4
lea ecx, [esp + 0x16c]
call fcn.00401000
lea ecx, [esp + 0x14]
push 0
lea edx, [esp + 0x16c]
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
pop ebx
add esp, 0x66c
ret
lea eax, [esp + 0x268]
push 0x40609c
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x268]
push ecx
push edx
call esi
lea eax, [esp + 0x268]
push 0x406030
push eax
call esi
lea ecx, [esp + 0x268]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, 0x104
sub edx, eax
lea eax, [esp + eax + 0x268]
push edx
push eax
push 1
push 0x65
call fcn.00401030
add esp, 0x10
test al, al
jne 0x4015a9
push 5
lea ecx, [esp + 0x370]
call fcn.00401000
push 2
lea ecx, [esp + 0x16c]
call fcn.00401000
lea ecx, [esp + 0x168]
push 0
lea edx, [esp + 0x370]
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
pop ebx
add esp, 0x66c
ret
lea eax, [esp + 0x268]
push 0x40609c
push eax
call esi
lea ecx, [esp + 0x14]
push ecx
call fcn.004011f0
add esp, 4
lea edx, [esp + 0x570]
lea eax, [esp + 0x46c]
push edx
push eax
call ebx
lea ecx, [esp + 0x46c]
push 0x406098
push ecx
call esi
lea edx, [esp + 0x268]
lea eax, [esp + 0x46c]
push edx
push eax
call esi
lea ecx, [esp + 0x46c]
push 5
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop esi
pop ebx
add esp, 0x66c
ret