Function at 0x401620
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 0x40300c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4013f2
lea ecx, [esp + 0x10]
lea edx, [esp + 0x570]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x1c]
push 0x403054
push eax
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4013f2
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 0x4013f2
cmp cl, 0x5c
jne 0x4013e6
lea edx, [eax + 1]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4013de
test edx, edx
jne 0x401431
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.004011e0
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 0x4014b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4014b3
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.00401250
add esp, 0xc
test eax, eax
je 0x4014e8
lea edx, [esp + 0xc]
lea eax, [esp + 0x18]
inc edi
push edx
push eax
push edi
call fcn.00401250
add esp, 0xc
test eax, eax
jne 0x4014d0
mov eax, dword [esp + 0xc]
pop edi
test eax, eax
je 0x40151f
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 0x403008
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x268]
push ecx
push edx
call esi
lea eax, [esp + 0x268]
push section..data
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.004011e0
add esp, 0x10
test al, al
jne 0x4015b9
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 0x403008
push eax
call esi
lea ecx, [esp + 0x570]
lea edx, [esp + 0x46c]
push ecx
push edx
call ebx
lea eax, [esp + 0x46c]
push 0x403004
push eax
call esi
lea ecx, [esp + 0x268]
lea edx, [esp + 0x46c]
push ecx
push edx
call esi
lea eax, [esp + 0x46c]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop esi
pop ebx
add esp, 0x66c
ret
call fcn.004010e0
test eax, eax
je 0x401637
call fcn.00401180
test eax, eax
je 0x401637
jmp 0x401360
ret