Function at 0x406910
Capabilities:
Create process on windows
Read .ini file

Disassembly:
mov eax, 0x406d11
call fcn.00402800
push ecx
mov eax, 0x600f0
call fcn.004038e0
mov eax, dword [0x409254]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], ebx
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0xf
pop esi
push ebx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x34], esi
call fcn.00401303
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x60050], ebx
mov dword [ebp - 0x18], esi
call fcn.00401303
push ebx
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x30]
call fcn.004066aa
cmp al, bl
je 0x4069ee
xor eax, eax
cmp dword [ebp - 0x18], 0x10
mov byte [ebp - 0x50050], bl
mov ecx, 0x3fff
lea edi, [ebp - 0x5004f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp - 0x2c]
jae 0x406999
lea eax, [ebp - 0x2c]
push eax
mov esi, 0xffff
push esi
lea eax, [ebp - 0x50050]
push eax
push 0x407eec
push str.Cmdline
mov edi, str.LaunchTC
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x50050]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00401151
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4069d8
lea eax, [ebp - 0x2c]
push eax
push ebx
push str.RunAs
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x60050], eax
jmp 0x4069f3
mov esi, 0xffff
xor eax, eax
mov dword [ebp - 0x60068], ebx
lea edi, [ebp - 0x60064]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
xor eax, eax
cmp dword [ebp - 0x60050], ebx
pop ecx
lea edi, [ebp - 0x600fc]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x60100], 0x44
mov word [ebp - 0x600d0], 0xa
mov dword [ebp - 0x60054], 1
je 0x406ba3
call fcn.00406678
test al, al
je 0x406ba3
push ebx
push 0x406787
push ebx
push 0x67
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, ebx
mov dword [ebp - 0x60054], eax
je 0x406c44
push str.ADVAPI32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x60058], eax
je 0x406bd1
push str.CreateProcessWithLogonW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x60050], eax
xor eax, eax
mov dword [ebp - 0x60078], ebx
lea edi, [ebp - 0x60074]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
cmp dword [0x409394], 0x10
push 0x10
mov edx, 0x7fff
pop ecx
lea edi, [ebp - 0x600b8]
rep stosd dword es:[edi], eax
mov ecx, edx
lea edi, [ebp - 0x2004a]
mov word [ebp - 0x2004c], bx
rep stosd dword es:[edi], eax
mov ecx, edx
lea edi, [ebp - 0x4004a]
mov word [ebp - 0x4004c], bx
rep stosd dword es:[edi], eax
mov ecx, edx
lea edi, [ebp - 0x6004a]
mov word [ebp - 0x6004c], bx
rep stosd dword es:[edi], eax
mov eax, dword [0x409380]
mov dword [ebp - 0x600bc], 0x44
mov word [ebp - 0x6008c], 0xa
jae 0x406b0e
mov eax, 0x409380
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
lea ecx, [ebp - 0x2004c]
push ecx
push 0xffffffffffffffff
push eax
push 1
push ebx
call edi
cmp dword [0x4093b0], 0x10
mov eax, dword [0x40939c]
jae 0x406b37
mov eax, 0x40939c
push esi
lea ecx, [ebp - 0x4004c]
push ecx
push 0xffffffffffffffff
push eax
push 1
push ebx
call edi
cmp dword [ebp - 0x34], 0x10
mov eax, dword [ebp - 0x48]
jae 0x406b53
lea eax, [ebp - 0x48]
push esi
lea ecx, [ebp - 0x6004c]
push ecx
push 0xffffffffffffffff
push eax
push 1
push ebx
call edi
lea eax, [ebp - 0x60078]
push eax
lea eax, [ebp - 0x600bc]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x6004c]
push eax
push ebx
push 1
lea eax, [ebp - 0x4004c]
push eax
push ebx
lea eax, [ebp - 0x2004c]
push eax
call dword [ebp - 0x60050]
push dword [ebp - 0x60058]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x406bcd
cmp dword [ebp - 0x34], 0x10
mov eax, dword [ebp - 0x48]
jae 0x406baf
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x60068]
push ecx
lea ecx, [ebp - 0x60100]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
cmp edi, ebx
jne 0x406c44
cmp dword [ebp - 0x60054], ebx
je 0x406c44
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x406bf2
push 0x10
push str.ERROR_
push str.This_program_requires_Windows_NT_to_run
jmp 0x406c3d
xor eax, eax
mov byte [ebp - 0x50050], bl
mov ecx, 0x3fff
lea edi, [ebp - 0x5004f]
rep stosd dword es:[edi], eax
push ebx
stosw word es:[edi], ax
push esi
lea eax, [ebp - 0x50050]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0x10
push str.ERROR_
lea eax, [ebp - 0x50050]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.004011df
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.004011df
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
xor eax, eax
call fcn.004051a5
pop edi
pop esi
pop ebx
leave
ret 0x10