Function at 0x1007c5b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1038
call fcn.10132000
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x1034], eax
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
push 0x7fe
mov esi, ecx
lea ecx, [esp + 0x83e]
push edi
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0x844], di
call sub.MSVCR80.dll_memset
push 0x7fe
lea edx, [esp + 0x4a]
push edi
push edx
mov word [esp + 0x50], di
call sub.MSVCR80.dll_memset
mov eax, dword [str.Error_Value]
mov ecx, dword [0x10159814]
mov edx, dword [0x10159818]
mov dword [esp + 0x38], eax
mov eax, dword [0x1015981c]
mov dword [esp + 0x3c], ecx
mov ecx, dword [0x10159820]
mov dword [esp + 0x40], edx
mov edx, dword [0x10159824]
add esp, 0x18
test ebx, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
jne 0x1007c664
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1034]
xor ecx, esp
call fcn.10130e50
mov esp, ebp
pop ebp
ret 4
push 0
push str._dCmdLine
lea eax, [esp + 0x840]
push 0x400
push eax
call dword [sym.imp.MSVCR80.dll_swprintf_s]
add esp, 0x10
add esi, 0x440
push esi
push 0x400
lea ecx, [esp + 0x40]
push ecx
push 0x10152144
lea edx, [esp + 0x848]
push edx
push ebx
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x1007c82e
test esi, esi
je 0x1007c82e
push 0x10
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
xor esi, esi
add esp, 4
cmp eax, esi
je 0x1007c6f4
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax], vtable.CScript.0
mov dword [eax + 0xc], 0xffffffff
mov esi, eax
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
push edi
mov ecx, esi
mov dword [esp + 0x18], esi
call eax
mov edx, dword [esi]
mov edx, dword [edx]
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call edx
push edi
push str._dParameters
lea eax, [esp + 0x840]
push 0x400
push eax
call dword [sym.imp.MSVCR80.dll_swprintf_s]
mov ecx, dword [esp + 0x20]
add esp, 0x10
push ecx
push 0x400
lea edx, [esp + 0x40]
push edx
push 0x10152144
lea eax, [esp + 0x848]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x1007c773
mov eax, dword [esi]
mov edx, dword [eax + 8]
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call edx
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 4]
add edi, 1
test eax, eax
jne 0x1007c785
xor edx, edx
jmp 0x1007c78d
mov edx, dword [ecx + 8]
sub edx, eax
sar edx, 2
test eax, eax
je 0x1007c7ae
mov ecx, dword [ecx + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
mov ecx, dword [esp + 0xc]
jae 0x1007c7ae
mov eax, dword [ecx + 8]
mov dword [eax], esi
add eax, 4
mov dword [ecx + 8], eax
jmp 0x1007c7d2
mov esi, dword [ecx + 8]
cmp eax, esi
jbe 0x1007c7bf
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0xc]
push esi
push ecx
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x24]
push edx
mov eax, ecx
call fcn.10079360
push edi
push str._dCmdLine
lea eax, [esp + 0x840]
push 0x400
push eax
call dword [sym.imp.MSVCR80.dll_swprintf_s]
mov ecx, dword [esp + 0x20]
add esp, 0x10
push ecx
push 0x400
lea edx, [esp + 0x40]
push edx
push 0x10152144
lea eax, [esp + 0x848]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x3c]
push edx
mov esi, eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x1007c6c7
mov ecx, dword [esp + 0x103c]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.10130e50
mov esp, ebp
pop ebp
ret 4