Function at 0x100165e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002a83c
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x1003a018]
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 [0x10041048]
lea eax, [ecx + ecx*4]
add eax, eax
add eax, eax
mov dword [eax + 0x1003c120], edx
mov dword [eax + 0x1003c124], esi
mov dword [ebp - 0x13c], esi
mov esi, dword [ebp + 8]
mov dword [eax + 0x1003c128], esi
mov esi, dword [ebp + 0x10]
inc ecx
mov dword [eax + 0x1003c118], edi
mov dword [ebp - 0x138], edi
mov dword [eax + 0x1003c11c], esi
mov dword [0x10041048], ecx
cmp edx, 2
je 0x1001685b
xor ebx, ebx
cmp dword [0x10040ebc], 1
jne 0x1001676e
mov edi, 0x6e00e5cf
lea esi, [ebp - 0x12c]
call fcn.10024960
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 0x100166a0
sub ecx, eax
push edi
mov edi, ecx
call fcn.10023260
mov ecx, dword [0x1003d99c]
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 0x10016704
sub eax, edi
lea ecx, [ebp - 0x118]
push ecx
mov edi, eax
call fcn.10023260
mov ecx, dword [0x1003d99c]
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 0x100343e4
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 [0x10040ec0], 1
jne 0x1001685b
mov edi, 0x6e00e5cf
lea esi, [ebp - 0x12c]
call fcn.10024960
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 0x100167b0
sub ecx, eax
push edi
mov edi, ecx
call fcn.10023260
mov ecx, dword [0x1003d99c]
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 0x10016814
sub eax, edi
lea ecx, [ebp - 0x118]
push ecx
mov edi, eax
call fcn.10023260
mov ecx, dword [0x1003d99c]
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.10029640
mov esp, ebp
pop ebp
ret 0xc