Function at 0x100170a0
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x890
mov eax, dword [0x1003f6e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, edx
push esi
push edi
mov dword [ebp - 0x880], eax
mov edi, dword [eax + 0x30]
mov eax, dword [eax + 4]
mov dword [ebp - 0x884], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x88c], ecx
movzx ecx, byte [eax + 0xa9]
mov eax, dword [eax + 0xac]
mov dword [ebp - 0x888], edi
push dword [eax + ecx*4 + 0x1c]
lea eax, [ebp - 0x874]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_wcscpy_s]
lea eax, [ebp - 0x874]
push 0x100027c4
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
add esp, 0x14
test eax, eax
je 0x1001711f
xor ecx, ecx
mov word [eax], cx
mov esi, dword [edi + 0x910]
lea eax, [edi + 0x910]
mov dword [ebp - 0x890], eax
test esi, esi
je 0x10017151
push dword [esi + 0xc]
push ebx
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x100176bc
mov esi, dword [esi + 4]
test esi, esi
jne 0x10017135
lea esi, [edi + 0x908]
mov ecx, esi
mov dword [ebp - 0x878], esi
call fcn.1001ee90
mov edi, eax
test edi, edi
jne 0x1001718a
mov edi, dword [ebp - 0x884]
mov ecx, edi
mov edx, dword [ebp - 0x888]
call fcn.10017050
test eax, eax
je 0x100171cf
mov ecx, esi
call fcn.1001ee90
mov edi, eax
mov ecx, ebx
mov dword [edi + 8], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10017196
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov edx, eax
add esp, 4
mov dword [edi + 0xc], edx
test edx, edx
jne 0x100171eb
mov ecx, dword [ebp - 0x884]
call fcn.10031a50
jmp 0x10017633
mov ecx, edi
call fcn.10031a50
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003a750
mov esp, ebp
pop ebp
ret 8
mov ecx, ebx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100171f0
sub ecx, esi
sar ecx, 1
push ebx
lea eax, [ecx + 1]
push eax
push edx
call dword [sym.imp.msvcrt.dll_wcscpy_s]
mov eax, dword [ebp - 0x880]
add esp, 0xc
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x2c]
test edx, edx
je 0x10017250
cmp word [edx], 0
je 0x10017250
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10017230
sub ecx, esi
sar ecx, 1
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x10017250
push ebx
push edx
push 0x1003fe90
jmp 0x10017257
push ebx
push edx
push str._s_s.inf
lea eax, [ebp - 0x464]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x14
mov dword [ebp - 0x880], 1
lea eax, [ebp - 0x25c]
push 1
push str.NDX_u
push 0x12c
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x10
lea eax, [ebp - 0x464]
push eax
push 0x104
lea eax, [ebp - 0x66c]
push eax
push 0x10041388
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x874]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x87c], eax
test eax, eax
jle 0x10017463
mov ebx, dword [ebp - 0x888]
add ebx, 0x1518
cmp dword [ebx], 0
je 0x10017325
push 0x10041560
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebx]
push 0x10041560
cmp esi, dword [ebx + 4]
jne 0x10017303
mov dword [ebx + 4], 0
mov dword [ebx], 0
jmp 0x1001731b
mov eax, dword [esi + 4]
mov dword [ebx], eax
mov dword [eax], 0
mov dword [esi + 4], 0
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
jne 0x10017374
mov ecx, dword [ebp - 0x884]
call fcn.10016360
mov esi, eax
test esi, esi
je 0x10017622
mov eax, dword [ebp - 0x878]
lea edx, [esi + 0x908]
push eax
mov ecx, eax
call fcn.1001ee00
push ebx
lea edx, [esi + 0x1518]
mov ecx, ebx
call fcn.1001ee00
mov ecx, dword [ebp - 0x888]
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov dword [ecx + 4], esi
mov ecx, ebx
call fcn.1001ee90
mov esi, eax
mov eax, dword [ebp - 0x87c]
cmp eax, 0x7ffffffe
ja 0x1001762d
cmp eax, 0x3fffffff
jge 0x1001762d
lea ecx, [eax*2 + 2]
push ecx
call dword [sym.imp.msvcrt.dll_malloc]
mov edx, eax
add esp, 4
mov dword [esi + 8], edx
test edx, edx
je 0x1001762d
mov ecx, dword [ebp - 0x87c]
lea eax, [ebp - 0x66c]
push eax
inc ecx
push ecx
push edx
call dword [sym.imp.msvcrt.dll_wcscpy_s]
add esp, 0xc
push 0x10041560
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x1c]
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x100173e7
mov dword [eax], esi
cmp dword [edi + 0x20], 0
jne 0x100173f0
mov dword [edi + 0x20], esi
push 0x10041560
mov dword [edi + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x880]
inc esi
movzx eax, si
push eax
push str.NDX_u
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x880], esi
push 0x12c
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x10
lea eax, [ebp - 0x464]
push eax
push 0x104
lea eax, [ebp - 0x66c]
push eax
push 0x10041388
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x874]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x87c], eax
test eax, eax
jg 0x100172d8
push 1
push str.MDX_u
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x880], 1
push 0x12c
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x10
lea eax, [ebp - 0x464]
push eax
push 0x104
lea eax, [ebp - 0x66c]
push eax
push 0x10041388
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x874]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, eax
test ebx, ebx
jle 0x100176a7
mov eax, dword [ebp - 0x888]
add eax, 0x1518
mov dword [ebp - 0x87c], eax
mov ecx, eax
call fcn.1001ee90
mov esi, eax
test esi, esi
jne 0x10017536
mov ecx, dword [ebp - 0x884]
call fcn.10016360
mov esi, eax
test esi, esi
je 0x10017622
mov eax, dword [ebp - 0x878]
lea edx, [esi + 0x908]
push eax
mov ecx, eax
call fcn.1001ee00
mov eax, dword [ebp - 0x87c]
lea edx, [esi + 0x1518]
push eax
mov ecx, eax
call fcn.1001ee00
mov ecx, dword [ebp - 0x888]
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov dword [ecx + 4], esi
mov ecx, dword [ebp - 0x87c]
call fcn.1001ee90
mov esi, eax
cmp ebx, 0x7ffffffe
ja 0x1001762d
cmp ebx, 0x3fffffff
jge 0x1001762d
lea eax, [ebx*2 + 2]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
add esp, 4
mov dword [esi + 8], eax
test eax, eax
je 0x1001762d
lea ecx, [ebp - 0x66c]
push ecx
lea ecx, [ebx + 1]
push ecx
push eax
call dword [sym.imp.msvcrt.dll_wcscpy_s]
add esp, 0xc
push 0x10041560
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x1c]
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x1001759f
mov dword [eax], esi
cmp dword [edi + 0x20], 0
jne 0x100175a8
mov dword [edi + 0x20], esi
push 0x10041560
mov dword [edi + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x880]
inc eax
mov dword [ebp - 0x880], eax
movzx eax, ax
push eax
push str.MDX_u
lea eax, [ebp - 0x25c]
push 0x12c
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x10
lea eax, [ebp - 0x464]
push eax
push 0x104
lea eax, [ebp - 0x66c]
push eax
push 0x10041388
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x874]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, eax
test ebx, ebx
jle 0x100176a7
mov eax, dword [ebp - 0x87c]
jmp 0x100174d0
mov ecx, dword [ebp - 0x884]
call fcn.10031a50
mov esi, dword [ebp - 0x878]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x10017644
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov ecx, dword [ebp - 0x888]
lea edx, [edi + 0x1c]
call fcn.10016f20
push 0x10041560
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi]
mov dword [edi + 4], eax
mov dword [edi], 0
mov eax, dword [esi]
test eax, eax
je 0x10017670
mov dword [eax], edi
cmp dword [esi + 4], 0
jne 0x10017679
mov dword [esi + 4], edi
push 0x10041560
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x88c]
pop edi
pop esi
pop ebx
mov dword [eax], 0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003a750
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x890]
mov edx, edi
call fcn.1001ed70
mov eax, dword [ebp - 0x88c]
mov dword [eax], edi
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003a750
mov esp, ebp
pop ebp
ret 8