Function at 0x100176a0
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
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 - 0x888], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x88c], ecx
movzx ecx, byte [eax + 0xa9]
mov eax, dword [eax + 0xac]
mov dword [ebp - 0x884], 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 0x100027ac
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
add esp, 0x14
test eax, eax
je 0x1001771f
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 0x10017751
push dword [esi + 0xc]
push ebx
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x10017c22
mov esi, dword [esi + 4]
test esi, esi
jne 0x10017735
lea esi, [edi + 0x908]
mov ecx, esi
mov dword [ebp - 0x878], esi
call fcn.1001fb90
mov edi, eax
test edi, edi
jne 0x1001778e
mov edi, dword [ebp - 0x888]
mov ecx, edi
mov edx, dword [ebp - 0x884]
call fcn.10017650
test eax, eax
je 0x10017830
mov ecx, esi
call fcn.1001fb90
mov edi, eax
mov ecx, ebx
mov dword [edi + 8], 0
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100177a0
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
je 0x10017c40
mov ecx, ebx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100177d2
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 0x1001783c
cmp word [edx], 0
je 0x1001783c
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x10017810
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10017810
sub ecx, esi
sar ecx, 1
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x1001783c
push ebx
push edx
push 0x10041e60
jmp 0x10017843
mov ecx, edi
call fcn.10032980
jmp 0x10017cb2
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 0x10043328
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 0x10017a4f
mov ebx, dword [ebp - 0x884]
add ebx, 0x1518
cmp dword [ebx], 0
je 0x10017911
push 0x10043500
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebx]
push 0x10043500
cmp esi, dword [ebx + 4]
jne 0x100178ef
mov dword [ebx + 4], 0
mov dword [ebx], 0
jmp 0x10017907
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 0x10017960
mov ecx, dword [ebp - 0x888]
call fcn.100169b0
mov esi, eax
test esi, esi
je 0x10017c3a
mov eax, dword [ebp - 0x878]
lea edx, [esi + 0x908]
push eax
mov ecx, eax
call fcn.1001fb00
push ebx
lea edx, [esi + 0x1518]
mov ecx, ebx
call fcn.1001fb00
mov ecx, dword [ebp - 0x884]
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov dword [ecx + 4], esi
mov ecx, ebx
call fcn.1001fb90
mov esi, eax
mov eax, dword [ebp - 0x87c]
cmp eax, 0x7ffffffe
ja 0x10017c4d
cmp eax, 0x3fffffff
jae 0x10017c4d
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 0x10017c4d
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 0x10043500
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 0x100179d3
mov dword [eax], esi
cmp dword [edi + 0x20], 0
jne 0x100179dc
mov dword [edi + 0x20], esi
push 0x10043500
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 0x10043328
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 0x100178c4
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 0x10043328
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 0x10017c0d
mov eax, dword [ebp - 0x884]
add eax, 0x1518
mov dword [ebp - 0x87c], eax
lea esp, [esp]
mov ecx, eax
call fcn.1001fb90
mov esi, eax
test esi, esi
jne 0x10017b26
mov ecx, dword [ebp - 0x888]
call fcn.100169b0
mov esi, eax
test esi, esi
je 0x10017c3a
mov eax, dword [ebp - 0x878]
lea edx, [esi + 0x908]
push eax
mov ecx, eax
call fcn.1001fb00
mov eax, dword [ebp - 0x87c]
lea edx, [esi + 0x1518]
push eax
mov ecx, eax
call fcn.1001fb00
mov ecx, dword [ebp - 0x884]
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov dword [ecx + 4], esi
mov ecx, dword [ebp - 0x87c]
call fcn.1001fb90
mov esi, eax
cmp ebx, 0x7ffffffe
ja 0x10017c4d
cmp ebx, 0x3fffffff
jae 0x10017c4d
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 0x10017c4d
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 0x10043500
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 0x10017b8f
mov dword [eax], esi
cmp dword [edi + 0x20], 0
jne 0x10017b98
mov dword [edi + 0x20], esi
push 0x10043500
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 0x10043328
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 0x10017ac0
mov ecx, dword [ebp - 0x890]
mov edx, edi
call fcn.1001fa60
mov eax, dword [ebp - 0x88c]
mov dword [eax], edi
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003c3b0
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp - 0x878]
mov ecx, dword [ebp - 0x888]
call fcn.10032980
jmp 0x10017c53
mov esi, dword [ebp - 0x878]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x10017c64
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov ecx, dword [ebp - 0x884]
lea edx, [edi + 0x1c]
call fcn.10017570
push 0x10043500
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 0x10017c90
mov dword [eax], edi
cmp dword [esi + 4], 0
jne 0x10017c99
mov dword [esi + 4], edi
push 0x10043500
mov dword [esi], edi
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.1003c3b0
mov esp, ebp
pop ebp
ret 8