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

Disassembly:
push 0xffffffffffffffff
push 0x403e1b
mov eax, dword fs:[0]
push eax
mov eax, 0x15b0
call fcn.00403c70
mov eax, dword [0x40601c]
xor eax, esp
mov dword [esp + 0x15a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40601c]
xor eax, esp
push eax
lea eax, [esp + 0x15c4]
mov dword fs:[0], eax
mov esi, dword [esp + 0x15d4]
mov eax, dword [esp + 0x15d8]
mov ebp, dword [esp + 0x15dc]
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], eax
je 0x401a9a
cmp eax, ebx
jne 0x401aa1
xor eax, eax
jmp 0x401d83
push 0x3ff
lea eax, [esp + 0xdc1]
push ebx
push eax
mov byte [esp + 0xdc8], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
push ebp
push str._sKernel
mov eax, 0x400
lea edi, [esp + 0xdc4]
call fcn.00401000
push 0x3ff
lea ecx, [esp + 0x11c9]
push ebx
push ecx
mov byte [esp + 0x11d0], bl
call sub.MSVCR80.dll_memset
mov edx, dword [esp + 0x2c]
add esp, 0x14
push edx
push esi
push str._s_s.exe
mov eax, 0x400
lea edi, [esp + 0x11c8]
call fcn.00401000
add esp, 0xc
push 0x3ff
lea eax, [esp + 0x5c1]
push ebx
push eax
mov byte [esp + 0x5c8], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
lea esi, [esp + 0xa4]
call fcn.00401100
mov ecx, esi
call fcn.004012a0
lea esi, [esp + 0x2ac]
call fcn.00401100
lea ecx, [esp + 0x3b0]
push ecx
push 0x400
lea edx, [esp + 0x5c4]
push edx
push 0x404544
push str.SetupPath
push str.Kernel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x5bc]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x401b81
sub eax, edx
je 0x401a9a
lea eax, [esp + 0x5bc]
push ebx
push eax
call dword [sym.imp.MSVCR80.dll__access]
add esp, 8
neg eax
sbb eax, eax
inc eax
je 0x401d83
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.00402020
neg eax
sbb eax, eax
inc eax
je 0x401d83
lea eax, [esp + 0x38]
call fcn.004017b0
push 0x3ff
lea ecx, [esp + 0x9c1]
push ebx
mov dword [esp + 0x15d4], ebx
push ecx
mov byte [esp + 0x9c8], bl
call sub.MSVCR80.dll_memset
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x54]
add esp, 0xc
push ebp
push esi
push edx
push eax
lea ecx, [esp + 0x5cc]
push ecx
push str.__s___h__d__d___s___n__s__c__s
mov eax, 0x400
lea edi, [esp + 0x9d4]
call fcn.00401000
add esp, 0x18
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x60]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
mov ecx, edi
push ecx
push ebx
mov dword [esp + 0x84], 0x44
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0xb0], ebx
mov word [esp + 0xb6], bx
mov dword [esp + 0xb8], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x401cc0
push 0x103
lea edx, [esp + 0x4b9]
push ebx
push edx
mov byte [esp + 0x4c0], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
push ebp
push 0x404308
mov eax, 0x104
lea edi, [esp + 0x4bc]
call fcn.00401000
add esp, 8
push ebx
push ebp
mov eax, edi
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401d6e
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
lea esi, [esp + 0x40]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
call fcn.00401830
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x14]
push 4
push eax
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esp + 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esp + 0x28]
push edx
call edi
cmp esi, ebx
jne 0x401d6e
push 0x103
lea eax, [esp + 0x4b9]
push ebx
push eax
mov byte [esp + 0x4c0], bl
call sub.MSVCR80.dll_memset
mov ecx, dword [esp + 0x28]
add esp, 0xc
push ecx
push ebp
push 0x40432c
mov eax, 0x104
lea edi, [esp + 0x4c0]
call fcn.00401000
add esp, 0xc
push 5
push ebp
mov edx, edi
push edx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 4
jne 0x401d6e
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push ebp
push eax
push ecx
mov ecx, dword [esp + 0x30]
call fcn.00401a30
mov dword [esp + 0x14], eax
lea esi, [esp + 0x38]
mov dword [esp + 0x38], vtable.CSetupHelper.0
call fcn.004014c0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x15c4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x15a8]
xor ecx, esp
call fcn.0040339f
add esp, 0x15bc
ret 0xc