Function at 0x10016a90
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
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 0x10016b0f
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 0x10016b41
push dword [esi + 0xc]
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x10017012
mov esi, dword [esi + 4]
test esi, esi
jne 0x10016b25
add ebx, 0x908
mov ecx, ebx
mov dword [ebp - 0x878], ebx
call fcn.1001e9b0
mov esi, eax
test esi, esi
jne 0x10016b7e
mov esi, dword [ebp - 0x888]
mov ecx, esi
mov edx, dword [ebp - 0x884]
call fcn.10016a40
test eax, eax
je 0x10016c20
mov ecx, ebx
call fcn.1001e9b0
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 0x10016b90
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 0x10017030
mov ecx, edi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016bc2
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 0x10016c2c
cmp word [edx], 0
je 0x10016c2c
mov ecx, edx
lea ebx, [ecx + 2]
jmp 0x10016c00
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016c00
sub ecx, ebx
sar ecx, 1
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x10016c2c
push edi
push edx
push 0x1003fe90
jmp 0x10016c33
mov ecx, esi
call fcn.100314b0
jmp 0x100170a2
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 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 0x10016e3f
mov ebx, dword [ebp - 0x884]
add ebx, 0x1518
cmp dword [ebx], 0
je 0x10016d01
push 0x10041560
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebx]
push 0x10041560
cmp edi, dword [ebx + 4]
jne 0x10016cdf
mov dword [ebx + 4], 0
mov dword [ebx], 0
jmp 0x10016cf7
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 0x10016d50
mov ecx, dword [ebp - 0x888]
call fcn.10015d40
mov edi, eax
test edi, edi
je 0x1001702a
mov eax, dword [ebp - 0x878]
lea edx, [edi + 0x908]
push eax
mov ecx, eax
call fcn.1001e920
push ebx
lea edx, [edi + 0x1518]
mov ecx, ebx
call fcn.1001e920
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.1001e9b0
mov edi, eax
mov eax, dword [ebp - 0x87c]
cmp eax, 0x7ffffffe
ja 0x1001703d
cmp eax, 0x3fffffff
jge 0x1001703d
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 0x1001703d
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 [esi + 0x1c]
mov dword [edi + 4], eax
mov dword [edi], 0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10016dc3
mov dword [eax], edi
cmp dword [esi + 0x20], 0
jne 0x10016dcc
mov dword [esi + 0x20], edi
push 0x10041560
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 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 0x10016cb4
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 0x10016ffd
mov eax, dword [ebp - 0x884]
add eax, 0x1518
mov dword [ebp - 0x87c], eax
lea esp, [esp]
mov ecx, eax
call fcn.1001e9b0
mov edi, eax
test edi, edi
jne 0x10016f16
mov ecx, dword [ebp - 0x888]
call fcn.10015d40
mov edi, eax
test edi, edi
je 0x1001702a
mov eax, dword [ebp - 0x878]
lea edx, [edi + 0x908]
push eax
mov ecx, eax
call fcn.1001e920
mov eax, dword [ebp - 0x87c]
lea edx, [edi + 0x1518]
push eax
mov ecx, eax
call fcn.1001e920
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.1001e9b0
mov edi, eax
cmp ebx, 0x7ffffffe
ja 0x1001703d
cmp ebx, 0x3fffffff
jge 0x1001703d
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 0x1001703d
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 [esi + 0x1c]
mov dword [edi + 4], eax
mov dword [edi], 0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10016f7f
mov dword [eax], edi
cmp dword [esi + 0x20], 0
jne 0x10016f88
mov dword [esi + 0x20], edi
push 0x10041560
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 0x10041388
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 0x10016eb0
mov ecx, dword [ebp - 0x890]
mov edx, esi
call fcn.1001e890
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.1003a1d0
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp - 0x878]
mov ecx, dword [ebp - 0x888]
call fcn.10055e85
jmp 0x10017043
mov ebx, dword [ebp - 0x878]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10017054
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov ecx, dword [ebp - 0x884]
lea edx, [esi + 0x1c]
call fcn.10016910
push 0x10041560
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 0x10017080
mov dword [eax], esi
cmp dword [ebx + 4], 0
jne 0x10017089
mov dword [ebx + 4], esi
push 0x10041560
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.1003a1d0
mov esp, ebp
pop ebp
ret 8