Function at 0x100165f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002a06c
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x10039018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov ecx, dword [0x10040120]
lea eax, [ecx + ecx*4]
add eax, eax
add eax, eax
mov dword [eax + 0x1003b1e0], edx
mov dword [eax + 0x1003b1e4], esi
mov dword [ebp - 0x13c], esi
mov esi, dword [ebp + 8]
mov dword [eax + 0x1003b1e8], esi
mov esi, dword [ebp + 0x10]
inc ecx
mov dword [eax + 0x1003b1d8], edi
mov dword [ebp - 0x138], edi
mov dword [eax + 0x1003b1dc], esi
mov dword [0x10040120], ecx
cmp edx, 2
je 0x1001686b
xor ebx, ebx
cmp dword [0x1003ff94], 1
jne 0x1001677e
mov edi, 0x6e00d83f
lea esi, [ebp - 0x12c]
call fcn.10023cf0
mov edi, eax
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 4], ebx
mov ecx, edi
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x130], esp
mov byte [esi], bl
lea eax, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x100166b0
sub ecx, eax
push edi
mov edi, ecx
call fcn.10022700
mov ecx, dword [0x1003ca5c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x84]
call edx
push eax
call fcn.10007080
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x118], 0x55544946
mov word [ebp - 0x114], 0x52
sub esp, 0x18
mov esi, esp
mov byte [ebp - 4], 1
lea eax, [ebp - 0x118]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x134], esp
mov byte [esi], bl
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10016714
sub eax, edi
lea ecx, [ebp - 0x118]
push ecx
mov edi, eax
call fcn.10022700
mov ecx, dword [0x1003ca5c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x84]
call eax
mov ecx, dword [ebp - 0x138]
mov esi, eax
mov eax, dword [ecx]
push eax
lea edx, [ebp - 0x110]
push 0x10033644
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
mov eax, dword [ebp - 0x130]
mov edx, dword [ebp - 0x13c]
add esp, 0xc
push eax
lea ecx, [ebp - 0x110]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [ebp - 4], 0xffffffff
cmp dword [0x1003ff98], 1
jne 0x1001686b
mov edi, 0x6e00d83f
lea esi, [ebp - 0x12c]
call fcn.10023cf0
mov edi, eax
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 4], 2
mov ecx, edi
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x134], esp
mov byte [esi], bl
lea eax, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x100167c0
sub ecx, eax
push edi
mov edi, ecx
call fcn.10022700
mov ecx, dword [0x1003ca5c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x84]
call edx
push eax
call fcn.10007080
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x118], 0x55544946
mov word [ebp - 0x114], 0x52
sub esp, 0x18
mov esi, esp
mov byte [ebp - 4], 3
lea eax, [ebp - 0x118]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x134], esp
mov byte [esi], bl
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10016824
sub eax, edi
lea ecx, [ebp - 0x118]
push ecx
mov edi, eax
call fcn.10022700
mov ecx, dword [0x1003ca5c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x84]
call eax
mov edx, dword [ebp - 0x130]
mov esi, dword [ebp - 0x138]
mov ecx, dword [esi]
push edx
push ecx
mov ecx, dword [ebp - 0x13c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10028cc0
mov esp, ebp
pop ebp
ret 0xc