Function at 0x1007c260
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1038
call fcn.1012e520
mov eax, dword [0x10170024]
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 [0x101534e4]
mov edx, dword [0x101534e8]
mov dword [esp + 0x38], eax
mov eax, dword [0x101534ec]
mov dword [esp + 0x3c], ecx
mov ecx, dword [0x101534f0]
mov dword [esp + 0x40], edx
mov edx, dword [0x101534f4]
add esp, 0x18
test ebx, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
jne 0x1007c314
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1034]
xor ecx, esp
call fcn.1012d370
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 0x1014be14
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 0x1007c4de
test esi, esi
je 0x1007c4de
push 0x10
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
xor esi, esi
add esp, 4
cmp eax, esi
je 0x1007c3a4
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 0x1014be14
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 0x1007c423
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 0x1007c435
xor edx, edx
jmp 0x1007c43d
mov edx, dword [ecx + 8]
sub edx, eax
sar edx, 2
test eax, eax
je 0x1007c45e
mov ecx, dword [ecx + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
mov ecx, dword [esp + 0xc]
jae 0x1007c45e
mov eax, dword [ecx + 8]
mov dword [eax], esi
add eax, 4
mov dword [ecx + 8], eax
jmp 0x1007c482
mov esi, dword [ecx + 8]
cmp eax, esi
jbe 0x1007c46f
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.10078ed0
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 0x1014be14
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 0x1007c377
mov ecx, dword [esp + 0x103c]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.1012d370
mov esp, ebp
pop ebp
ret 4