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

Disassembly:
mov eax, 0x4260
call fcn.00401ed0
push ebp
lea eax, [esp + 8]
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 0x4017cd
lea ecx, [esp + 0x14]
lea edx, [esp + 0x270]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x1c]
push 0x40796c
push eax
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4017cd
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x270]
lea eax, [esp + 0x11c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov cl, byte [esp + 0x11c]
xor edx, edx
test cl, cl
lea eax, [esp + 0x11c]
je 0x4017cd
cmp cl, 0x5c
jne 0x4017c1
lea edx, [eax + 1]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4017b9
test edx, edx
jne 0x401806
push 1
lea ecx, [esp + 0x1c]
call fcn.00401100
push 2
lea ecx, [esp + 0x378]
call fcn.00401100
lea ecx, [esp + 0x374]
push 0
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
pop ebp
add esp, 0x4260
ret
lea eax, [esp + 0x220]
push 0x50
push eax
push 2
push 0x67
mov byte [edx], 0
mov byte [esp + 0x230], 0
call fcn.00401130
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0x10
lea ecx, [esp + 0x220]
lea edx, [esp + 0x11c]
push ecx
push edx
call ebp
lea eax, [esp + 0x11c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40188b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40188b
push 3
lea ecx, [esp + 0x1c]
call fcn.00401100
lea ecx, [esp + 0x11c]
push 0
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
pop ebp
add esp, 0x4260
ret
lea eax, [esp + 8]
lea ecx, [esp + 0x11c]
mov esi, 1
push eax
push ecx
push esi
call fcn.00401610
add esp, 0xc
test eax, eax
je 0x4018c5
lea edx, [esp + 8]
lea eax, [esp + 0x11c]
inc esi
push edx
push eax
push esi
call fcn.00401610
add esp, 0xc
test eax, eax
jne 0x4018aa
mov eax, dword [esp + 8]
test eax, eax
je 0x4018f8
push 4
lea ecx, [esp + 0x1c]
call fcn.00401100
lea ecx, [esp + 0x11c]
push 0
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
pop ebp
add esp, 0x4260
ret
push ebx
push edi
xor esi, esi
lea edi, [esp + 0x47c]
lea ebx, [esi + 1]
push 0x104
push edi
push ebx
push 0x65
call fcn.00401130
add esp, 0x10
test al, al
je 0x401936
push edi
push str.iniVector:
call fcn.00401000
mov esi, ebx
add esp, 8
add edi, 0x104
cmp esi, 0x14
jl 0x401903
test esi, esi
mov byte [esp + 0x18cc], 0
mov dword [esp + 0x18], 0
jle 0x401a0a
lea ebx, [esp + 0x47c]
push 0x2e
push ebx
call fcn.00401ea0
add esp, 8
test eax, eax
je 0x401a0a
push str..ini
push eax
call fcn.00401e10
add esp, 8
test eax, eax
jne 0x401a0a
lea eax, [esp + 0x20]
push 0x407078
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x124]
lea edx, [esp + 0x20]
push ecx
push edx
call ebp
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x1f], 0x5c
je 0x4019be
lea eax, [esp + 0x20]
push 0x407054
push eax
call ebp
lea ecx, [esp + 0x20]
push ebx
push ecx
call ebp
lea edx, [esp + 0x20]
push 0x407074
push edx
call ebp
lea eax, [esp + 0x20]
push eax
push str.szIniFile:
call fcn.00401000
add esp, 8
lea ecx, [esp + 0x20]
lea edx, [esp + 0x18cc]
push ecx
push edx
call ebp
mov eax, dword [esp + 0x18]
add ebx, 0x104
inc eax
cmp eax, esi
mov dword [esp + 0x18], eax
jl 0x401955
lea eax, [esp + 0x124]
push eax
call fcn.00401000
add esp, 4
lea ecx, [esp + 0x278]
lea edx, [esp + 0x2d1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x2d1c]
push 0x407064
push eax
call ebp
lea ecx, [esp + 0x18cc]
lea edx, [esp + 0x2d1c]
push ecx
push edx
call ebp
lea eax, [esp + 0x2d1c]
push eax
push str.szCmdLine:
call fcn.00401000
add esp, 8
lea ecx, [esp + 0x2d1c]
push 5
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x4260
ret