Function at 0x100170c0
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb30
mov eax, dword [0x1003f6e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb20], eax
xor eax, eax
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xb30], eax
mov eax, dword [ecx + 4]
push esi
push edi
mov dword [ebp - 0xb24], edx
mov edi, 1
cmp byte [eax + 0xa8], 0x15
mov dword [ebp - 0xb28], 1
mov dword [ebp - 0xb2c], 1
push 0x104
jne 0x1001715a
xor eax, eax
mov word [ebp - 0x464], ax
lea eax, [ebp - 0x464]
push eax
push 0xadfe
push dword [0x10041578]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebp - 0x464], 0
jne 0x100171ad
push 0x104
lea eax, [ebp - 0x464]
push eax
push 0xadfe
jmp 0x10017196
xor eax, eax
mov word [ebp - 0x464], ax
lea eax, [ebp - 0x464]
push eax
push 0xae15
push dword [0x10041578]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebp - 0x464], 0
jne 0x100171ad
push 0x104
lea eax, [ebp - 0x464]
push eax
push 0xae15
mov esi, dword [0x1004138c]
mov ecx, esi
call dword [0x10042350]
call esi
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
push 1
push str.NDX_u
lea eax, [ebp - 0x25c]
mov esi, edi
push 0x12c
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x10
jmp 0x100171e0
push ebx
push 0x104
lea eax, [ebp - 0x8c4]
push eax
push 0x10041388
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0xb20]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x10017244
push ebx
push 0
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0xb20]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
inc esi
mov edi, eax
movzx ecx, si
lea eax, [ebp - 0x25c]
push ecx
push str.NDX_u
push 0x12c
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x10
test edi, edi
jne 0x100171e0
mov esi, 1
lea eax, [ebp - 0x25c]
push esi
push str.MDX_u
push 0x12c
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x10
test edi, edi
je 0x10017499
lea esp, [esp]
push ebx
push 0x104
lea eax, [ebp - 0x8c4]
push eax
push 0x10041388
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0xb20]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x100172d9
push ebx
push 0
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0xb20]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edi, eax
inc esi
movzx eax, si
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
test edi, edi
jne 0x10017270
jmp 0x10017499
test edi, edi
je 0x10017499
mov eax, dword [ebp - 0xb24]
mov esi, dword [eax + 0x14]
lea ebx, [ebx]
test esi, esi
je 0x1001735b
push dword [esi + 8]
lea eax, [ebp - 0x6bc]
push 0x10002800
push 0x1000280c
push 0x12c
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x14
lea eax, [ebp - 0x8c4]
push ebx
push 0x104
push eax
push 0x10041388
push 0
lea eax, [ebp - 0x6bc]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x1001734f
push ebx
push 0
push 0
lea eax, [ebp - 0x6bc]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edi, eax
mov esi, dword [esi + 4]
test edi, edi
jne 0x100172f0
jmp 0x10017499
test edi, edi
je 0x10017499
mov eax, dword [ebp - 0xb24]
mov esi, dword [eax + 0x1c]
lea esp, [esp]
test esi, esi
je 0x10017448
push 0x102
lea eax, [ebp - 0x668]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esi + 8]
call dword [sym.imp.msvcrt.dll__wsplitpath_s]
add esp, 0x24
lea eax, [ebp - 0x668]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
add esp, 8
test eax, eax
je 0x100173f1
mov edi, dword [ebp - 0xb28]
movzx eax, di
push eax
push str.NDX_u
lea eax, [ebp - 0x25c]
push 0x12c
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x10
inc edi
mov dword [ebp - 0xb28], edi
jmp 0x1001741c
mov edi, dword [ebp - 0xb2c]
movzx eax, di
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
inc edi
mov dword [ebp - 0xb2c], edi
push ebx
push dword [esi + 8]
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0xb20]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edi, eax
mov dword [ebp - 0xb30], esi
mov esi, dword [esi + 4]
test edi, edi
jne 0x10017370
jmp 0x10017499
test edi, edi
je 0x10017499
mov edx, dword [ebp - 0xb24]
mov eax, dword [edx + 0x10]
test eax, eax
je 0x10017499
push eax
push 0x10002800
push 0x1000280c
lea eax, [ebp - 0xb1c]
push 0x12c
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
mov eax, dword [ebp - 0xb30]
add esp, 0x14
push ebx
push dword [eax + 8]
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0xb1c]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003a1d0
mov esp, ebp
pop ebp
ret 8