Function at 0x4700ae
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], 1
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x470218
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x31a8], 0
mov dword [eax + 0x31ac], 0
push 0x6785ac
push 0
push 0x5b0d7c
push 0x5b0d88
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 4], eax
push 0x6785ac
push 0
push 0x5b0d90
push 0x5b0d9c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x31a8], eax
mov dword [edx + 0x31ac], ecx
push 0x80
push 0
mov eax, dword [ebp + 0xc]
add eax, 0x3128
push eax
call fcn.0054bf90
add esp, 0xc
mov dword [ebp - 0x108], 0
jmp 0x470164
mov ecx, dword [ebp - 0x108]
add ecx, 1
mov dword [ebp - 0x108], ecx
cmp dword [ebp - 0x108], 0x20
jge 0x470213
mov edx, dword [ebp - 0x108]
cmp edx, dword [ebp - 4]
jge 0x47020e
mov eax, dword [ebp - 0x108]
push eax
push 0x5b0da4
lea ecx, [ebp - 0x104]
push ecx
call fcn.0054c6e3
add esp, 0xc
push 0x6785ac
push 0
lea edx, [ebp - 0x104]
push edx
push 0x5b0db0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x108]
mov edx, dword [ebp + 0xc]
mov dword [edx + ecx*4 + 0x3128], eax
mov eax, dword [ebp - 0x108]
push eax
push 0x5b0db8
lea ecx, [ebp - 0x104]
push ecx
call fcn.0054c6e3
add esp, 0xc
push 0x6785ac
push 7
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp + 0xc]
lea ecx, [eax + edx*8 + 0x3010]
push ecx
push 0x5e078c
lea edx, [ebp - 0x104]
push edx
push 0x5b0dc8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x470155
jmp 0x470529
mov dword [ebp - 4], 0
mov dword [ebp - 0x108], 0
jmp 0x47023a
mov eax, dword [ebp - 0x108]
add eax, 1
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0x20
jge 0x470498
mov eax, 1
mov ecx, dword [ebp - 0x108]
shl eax, cl
cdq
mov ecx, dword [ebp + 0xc]
and eax, dword [ecx + 0x31a8]
and edx, dword [ecx + 0x31ac]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], edx
mov edx, dword [ebp - 0x218]
or edx, dword [ebp - 0x214]
test edx, edx
je 0x4703ac
mov eax, dword [ebp - 0x108]
push eax
push 0x5b0dd0
lea ecx, [ebp - 0x104]
push ecx
call fcn.0054c6e3
add esp, 0xc
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4 + 0x3128]
push ecx
push 0x5b0ddc
lea edx, [ebp - 0x208]
push edx
call fcn.0054c6e3
add esp, 0xc
push 0x6785ac
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x104]
push ecx
push 0x5b0de0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov edx, dword [ebp - 0x108]
push edx
push 0x5b0de8
lea eax, [ebp - 0x104]
push eax
call fcn.0054c6e3
add esp, 0xc
mov ecx, dword [ebp - 0x108]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*8 + 0x3010]
push eax
push 0x5b0df8
lea ecx, [ebp - 0x208]
push ecx
call fcn.0054c6e3
add esp, 0xc
push 0x6785ac
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp - 0x104]
push eax
push 0x5b0dfc
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 0x108]
push ecx
push 0x5b0e04
lea edx, [ebp - 0x104]
push edx
call fcn.0054c6e3
add esp, 0xc
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4 + 0x3128]
push edx
push 0x5b0e10
lea eax, [ebp - 0x208]
push eax
call fcn.0054c6e3
add esp, 0xc
push 0x6785ac
lea ecx, [ebp - 0x208]
push ecx
lea edx, [ebp - 0x104]
push edx
push 0x5b0e14
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x470493
mov ecx, dword [ebp - 0x108]
push ecx
push 0x5b0e1c
lea edx, [ebp - 0x104]
push edx
call fcn.0054c6e3
add esp, 0xc
push 0x5b0e28
lea eax, [ebp - 0x208]
push eax
call fcn.0054c6e3
add esp, 8
push 0x6785ac
lea ecx, [ebp - 0x208]
push ecx
lea edx, [ebp - 0x104]
push edx
push 0x5b0e2c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [ebp - 0x108]
push eax
push 0x5b0e34
lea ecx, [ebp - 0x104]
push ecx
call fcn.0054c6e3
add esp, 0xc
push 0x5e0790
lea edx, [ebp - 0x208]
push edx
call fcn.0054c6e3
add esp, 8
push 0x6785ac
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x104]
push ecx
push 0x5b0e44
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov edx, dword [ebp - 0x108]
push edx
push 0x5b0e4c
lea eax, [ebp - 0x104]
push eax
call fcn.0054c6e3
add esp, 0xc
push 0x5b0e58
lea ecx, [ebp - 0x208]
push ecx
call fcn.0054c6e3
add esp, 8
push 0x6785ac
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp - 0x104]
push eax
push 0x5b0e5c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x47022b
mov ecx, dword [ebp - 4]
push ecx
push 0x5b0e64
lea edx, [ebp - 0x208]
push edx
call fcn.0054c6e3
add esp, 0xc
push 0x6785ac
lea eax, [ebp - 0x208]
push eax
push 0x5b0e68
push 0x5b0e74
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x6785ac
lea ecx, [ebp - 0x208]
push ecx
push 0x5b0e7c
push 0x5b0e84
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x31ac]
push eax
mov ecx, dword [edx + 0x31a8]
push ecx
push 0x5b0e8c
lea edx, [ebp - 0x208]
push edx
call fcn.0054c6e3
add esp, 0x10
push 0x6785ac
lea eax, [ebp - 0x208]
push eax
push 0x5b0e90
push 0x5b0e9c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [ebp - 0x20c]
mov esp, ebp
pop ebp
ret 8