Function at 0x407110
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
push edi
push 0x426930
lea ecx, [esp + 0x24]
call fcn.00401120
push 0x104
call fcn.00407619
mov edi, eax
push 0x104
mov dword [esp + 0x1c], edi
call fcn.00407619
push 0x104
mov dword [esp + 0x1c], eax
call fcn.00407619
push 0x104
push 0x20
push eax
mov dword [esp + 0x30], eax
call fcn.00410d80
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebp, dword [esp + 0x5c]
xor ebx, ebx
push 0x20a
push ebx
push ebp
mov esi, eax
mov dword [esp + 0x28], ebx
call fcn.00410d80
add esp, 0xc
test edi, edi
je 0x40743b
cmp dword [esp + 0x10], ebx
je 0x407432
push esi
call fcn.004104d0
add esp, 4
push 0x104
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x407432
push 0x5c
push edi
call fcn.004116ac
add esp, 8
test eax, eax
je 0x4071ef
mov byte [eax], bl
mov ebx, dword [esp + 0x18]
mov edx, ebx
mov eax, edi
sub edx, edi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4071d0
push ebx
lea eax, [esp + 0x24]
push str.lptWorkingPath:__s
push eax
call fcn.00401410
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push esi
call fcn.00406ff0
mov edi, dword [esp + 0x24]
add esp, 8
xor esi, esi
test edi, edi
mov ebx, eax
jle 0x40729d
lea ecx, [ecx]
mov eax, dword [ebx + esi*4]
push 0x426918
push eax
call fcn.004117db
add esp, 8
test eax, eax
jne 0x407254
mov edx, dword [ebx + esi*4 + 4]
add esi, 1
push 0x104
push edx
lea eax, [ebp + 0x104]
push eax
call fcn.004115d5
mov ecx, dword [ebx + esi*4]
push ecx
lea edx, [esp + 0x30]
push str.found__m:__s
push edx
call fcn.00401410
add esp, 0x18
mov eax, dword [ebx + esi*4]
push 0x426904
push eax
call fcn.004117db
add esp, 8
test eax, eax
jne 0x407292
mov eax, dword [ebx + esi*4 + 4]
add esi, 1
push 0x104
push eax
push ebp
call fcn.004115d5
mov ecx, dword [ebx + esi*4]
push ecx
lea edx, [esp + 0x30]
push str.found__i:__s
push edx
call fcn.00401410
add esp, 0x18
add esi, 1
cmp esi, edi
jl 0x407210
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4072a2
sub eax, edx
jne 0x4072d2
push 0x104
push str.StubApp.ini
push ebp
call fcn.004115d5
push ebp
lea eax, [esp + 0x30]
push str.WARN:_no_File__i__specified__using__s._n
push eax
call fcn.00401410
add esp, 0x18
lea esi, [ebp + 0x104]
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4072e0
sub eax, edx
jne 0x407310
push 0x104
push str.AutoLaunch
push esi
call fcn.004115d5
push esi
lea ecx, [esp + 0x30]
push str.WARN:_no_Section__m__specified__using__s._n
push ecx
call fcn.00401410
add esp, 0x18
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, edi
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x407320
add edi, 0xffffffff
nop
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x407330
mov dx, word [0x425b14]
mov eax, ebp
mov word [edi], dx
mov esi, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407348
mov edx, dword [esp + 0x10]
mov edi, edx
sub eax, esi
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x407360
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push edx
mov ecx, eax
lea eax, [esp + 0x24]
and ecx, 3
push str.lptIniFileName:__s
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00401410
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x34]
push ecx
push esi
call fcn.00411eed
add esp, 0x14
test eax, eax
push esi
jne 0x4073bf
push str.1:_ini_file_found:__s
lea edx, [esp + 0x28]
push edx
call fcn.00401410
push 0x104
push esi
push ebp
call fcn.004115d5
add esp, 0x18
jmp 0x40742e
lea eax, [esp + 0x24]
push str.not_1:__s
push eax
call fcn.00401410
mov edx, esi
add esp, 0xc
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4073d7
lea ecx, [esp + 0x28]
push ecx
push esi
call fcn.00411eed
add esp, 8
test eax, eax
push esi
jne 0x4073fd
push str.2:_ini_file_found:__s
jmp 0x4073a4
lea eax, [esp + 0x24]
push str.not_2:__s
push eax
call fcn.00401410
lea ecx, [esp + 0x2c]
push str.no_ini_file_found.
push ecx
call fcn.00401410
push 0x104
push 0x42589b
push ebp
call fcn.004115d5
add esp, 0x20
mov edi, dword [esp + 0x14]
push edi
call fcn.00407614
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40744c
push eax
call fcn.00407614
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40745d
push eax
call fcn.00407614
add esp, 4
test ebx, ebx
je 0x40746a
push ebx
call fcn.00407614
add esp, 4
lea ecx, [esp + 0x20]
call fcn.004012d0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x48
ret