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

Disassembly:
mov eax, 0x1d6c
call fcn.004195b0
mov eax, dword [0x4251ac]
xor eax, esp
mov dword [esp + 0x1d68], eax
push ebp
push esi
push edi
push 0x800
lea eax, [esp + 0x574]
push 0
push eax
call fcn.00410510
add esp, 0xc
push 0x400
lea ecx, [esp + 0x574]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x570]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407881
sub eax, edx
sar eax, 1
dec eax
test eax, eax
jle 0x4078bb
mov ecx, 0x5c
lea ebx, [ebx]
cmp word [esp + eax*2 + 0x570], cx
je 0x4078b1
dec eax
test eax, eax
jg 0x4078a0
jmp 0x4078bb
xor edx, edx
mov word [esp + eax*2 + 0x570], dx
lea eax, [esp + 0x570]
push eax
lea ecx, [esp + 0x1574]
push 0x400
push ecx
call fcn.0040a931
push 0x4219c4
lea edx, [esp + 0x1580]
push 0x400
push edx
call fcn.0040bb4d
mov eax, dword [str.Redist]
mov ecx, dword [0x4219e0]
mov edx, dword [0x4219e4]
push 0x32
mov dword [esp + 0x88], ecx
mov dword [esp + 0x84], eax
mov ax, word [0x4219e8]
lea ecx, [esp + 0x92]
push 0
push ecx
mov dword [esp + 0x94], edx
mov word [esp + 0x98], ax
call fcn.00410510
add esp, 0x24
cmp byte [esp + 0x1d7c], 0
je 0x407952
push str.Redist.x64
lea edx, [esp + 0x6c]
push 0x20
push edx
call fcn.0040a931
add esp, 0xc
lea eax, [esp + 0x1570]
push eax
push 0
push str.count
lea ecx, [esp + 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, dword [esp + 0x1d84]
inc esi
push esi
push str.Module_d
lea edx, [esp + 0xb0]
call fcn.004099b0
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 8
lea edx, [esp + 0x1570]
push edx
push 0x200
lea eax, [esp + 0x178]
push eax
push 0x421a24
lea ecx, [esp + 0xb8]
push ecx
lea edx, [esp + 0x7c]
push edx
call edi
push 0x421a28
lea eax, [esp + 0xd74]
push 0x400
push eax
call fcn.0040a931
lea ecx, [esp + 0x57c]
push ecx
lea edx, [esp + 0xd80]
push 0x400
push edx
call fcn.0040bb4d
push 0x421a2c
lea eax, [esp + 0xd8c]
push 0x400
push eax
call fcn.0040bb4d
lea ecx, [esp + 0x194]
push ecx
lea edx, [esp + 0xd98]
push 0x400
push edx
call fcn.0040bb4d
push 0x421a30
lea eax, [esp + 0xda4]
push 0x400
push eax
call fcn.0040bb4d
push esi
push str.Cmd_d
lea edx, [esp + 0xec]
call fcn.004099b0
add esp, 0x44
lea ecx, [esp + 0x1570]
push ecx
push 0x200
lea edx, [esp + 0x178]
push edx
push 0x421a24
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x7c]
push ecx
call edi
lea edx, [esp + 0x170]
push edx
lea eax, [esp + 0xd74]
push 0x400
push eax
call fcn.0040bb4d
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push 0x44
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00410510
add esp, 0x18
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0
push 1
push 0
mov edx, 8
mov word [esp + 0x6c], dx
push 0
lea edx, [esp + 0xd90]
push edx
push 0
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x74], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebp
cmp byte [esp + 0x1d80], 0
jne 0x407b4c
push esi
push str.Title_d
lea edx, [esp + 0xb0]
call fcn.004099b0
add esp, 8
lea ecx, [esp + 0x1570]
push ecx
push 0x200
lea edx, [esp + 0x178]
push edx
push 0x421a24
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x7c]
push ecx
call edi
lea esi, [esp + 0x170]
call fcn.00401df0
mov edx, dword [esp + 0x10]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
push eax
call ebp
mov eax, dword [0x427a94]
test eax, eax
je 0x407b83
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [0x427a94]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x1d74]
pop edi
pop esi
pop ebp
xor ecx, esp
mov dword [0x427a94], 0
call fcn.0040a922
add esp, 0x1d6c
ret