Function at 0x100173c0
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x890
mov eax, dword [0x100416e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edx
mov dword [ebp - 0x888], ecx
mov ecx, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x880], eax
mov ebx, dword [eax + 0x30]
mov eax, dword [eax + 4]
mov dword [ebp - 0x88c], ecx
push esi
push edi
movzx ecx, byte [eax + 0xa9]
mov eax, dword [eax + 0xac]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x884], ebx
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 0x1001743f
xor ecx, ecx
mov word [eax], cx
mov esi, dword [ebx + 0x910]
lea eax, [ebx + 0x910]
mov dword [ebp - 0x890], eax
test esi, esi
je 0x10017471
push dword [esi + 0xc]
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x10017942
mov esi, dword [esi + 4]
test esi, esi
jne 0x10017455
add ebx, 0x908
mov ecx, ebx
mov dword [ebp - 0x878], ebx
call fcn.1001f7e0
mov esi, eax
test esi, esi
jne 0x100174ae
mov esi, dword [ebp - 0x888]
mov ecx, esi
mov edx, dword [ebp - 0x884]
call fcn.10017370
test eax, eax
je 0x10017550
mov ecx, ebx
call fcn.1001f7e0
mov esi, eax
mov ecx, edi
mov dword [esi + 8], 0
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100174c0
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 [esi + 0xc], edx
test edx, edx
je 0x10017960
mov ecx, edi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100174f2
sub ecx, ebx
sar ecx, 1
push edi
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 0x1001755c
cmp word [edx], 0
je 0x1001755c
mov ecx, edx
lea ebx, [ecx + 2]
jmp 0x10017530
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10017530
sub ecx, ebx
sar ecx, 1
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x1001755c
push edi
push edx
push 0x10041e90
jmp 0x10017563
mov ecx, esi
call fcn.10032430
jmp 0x100179d2
push edi
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 0x10043388
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 0x1001776f
mov ebx, dword [ebp - 0x884]
add ebx, 0x1518
cmp dword [ebx], 0
je 0x10017631
push 0x10043560
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebx]
push 0x10043560
cmp edi, dword [ebx + 4]
jne 0x1001760f
mov dword [ebx + 4], 0
mov dword [ebx], 0
jmp 0x10017627
mov eax, dword [edi + 4]
mov dword [ebx], eax
mov dword [eax], 0
mov dword [edi + 4], 0
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x10017680
mov ecx, dword [ebp - 0x888]
call fcn.100166e0
mov edi, eax
test edi, edi
je 0x1001795a
mov eax, dword [ebp - 0x878]
lea edx, [edi + 0x908]
push eax
mov ecx, eax
call fcn.1001f750
push ebx
lea edx, [edi + 0x1518]
mov ecx, ebx
call fcn.1001f750
mov ecx, dword [ebp - 0x884]
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
mov dword [ecx + 4], edi
mov ecx, ebx
call fcn.1001f7e0
mov edi, eax
mov eax, dword [ebp - 0x87c]
cmp eax, 0x7ffffffe
ja 0x1001796d
cmp eax, 0x3fffffff
jge 0x1001796d
lea ecx, [eax*2 + 2]
push ecx
call dword [sym.imp.msvcrt.dll_malloc]
mov edx, eax
add esp, 4
mov dword [edi + 8], edx
test edx, edx
je 0x1001796d
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 0x10043560
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x1c]
mov dword [edi + 4], eax
mov dword [edi], 0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x100176f3
mov dword [eax], edi
cmp dword [esi + 0x20], 0
jne 0x100176fc
mov dword [esi + 0x20], edi
push 0x10043560
mov dword [esi + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp - 0x880]
inc edi
movzx eax, di
push eax
push str.NDX_u
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x880], edi
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 0x10043388
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 0x100175e4
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 0x10043388
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 0x1001792d
mov eax, dword [ebp - 0x884]
add eax, 0x1518
mov dword [ebp - 0x87c], eax
lea esp, [esp]
mov ecx, eax
call fcn.1001f7e0
mov edi, eax
test edi, edi
jne 0x10017846
mov ecx, dword [ebp - 0x888]
call fcn.100166e0
mov edi, eax
test edi, edi
je 0x1001795a
mov eax, dword [ebp - 0x878]
lea edx, [edi + 0x908]
push eax
mov ecx, eax
call fcn.1001f750
mov eax, dword [ebp - 0x87c]
lea edx, [edi + 0x1518]
push eax
mov ecx, eax
call fcn.1001f750
mov ecx, dword [ebp - 0x884]
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
mov dword [ecx + 4], edi
mov ecx, dword [ebp - 0x87c]
call fcn.1001f7e0
mov edi, eax
cmp ebx, 0x7ffffffe
ja 0x1001796d
cmp ebx, 0x3fffffff
jge 0x1001796d
lea eax, [ebx*2 + 2]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
add esp, 4
mov dword [edi + 8], eax
test eax, eax
je 0x1001796d
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 0x10043560
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x1c]
mov dword [edi + 4], eax
mov dword [edi], 0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x100178af
mov dword [eax], edi
cmp dword [esi + 0x20], 0
jne 0x100178b8
mov dword [esi + 0x20], edi
push 0x10043560
mov dword [esi + 0x1c], edi
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 0x10043388
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x874]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, eax
mov eax, dword [ebp - 0x87c]
test ebx, ebx
jg 0x100177e0
mov ecx, dword [ebp - 0x890]
mov edx, esi
call fcn.1001f6c0
mov eax, dword [ebp - 0x88c]
mov dword [eax], esi
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003bd00
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp - 0x878]
mov ecx, dword [ebp - 0x888]
call fcn.10032430
jmp 0x10017973
mov ebx, dword [ebp - 0x878]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10017984
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov ecx, dword [ebp - 0x884]
lea edx, [esi + 0x1c]
call fcn.100172a0
push 0x10043560
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx]
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, dword [ebx]
test eax, eax
je 0x100179b0
mov dword [eax], esi
cmp dword [ebx + 4], 0
jne 0x100179b9
mov dword [ebx + 4], esi
push 0x10043560
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x88c]
mov dword [eax], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003bd00
mov esp, ebp
pop ebp
ret 8