Function at 0x505950
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x30]
call fcn.004228d0
mov eax, dword [ebp - 0x30]
mov dword [eax], 0x6a2ba0
mov ecx, dword [ebp - 0x30]
add ecx, 0x3dc
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
call fcn.0043a510
mov edx, dword [ebp - 0x2c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0x30]
add ecx, 0x3f8
call fcn.004148f0
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x32c], 0x6a2a4c
mov ecx, 0xe
xor eax, eax
mov edi, dword [ebp - 0x30]
add edi, 0xa8
rep stosd dword es:[edi], eax
mov edx, dword [ebp - 0x30]
mov byte [edx + 0x28], 1
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x29], 1
mov ecx, dword [ebp - 0x30]
mov edx, dword [0x70f3d8]
mov dword [ecx + 0x330], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [0x70f3dc]
mov dword [eax + 0x334], ecx
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x330], 0x320
jb 0x505a06
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x334], 0x258
jae 0x505a22
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x330], 0x320
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x334], 0x258
jmp 0x505a5a
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x330], 0x640
ja 0x505a40
mov ecx, dword [ebp - 0x30]
cmp dword [ecx + 0x334], 0x4b0
jbe 0x505a5a
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x330], 0x640
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x334], 0x4b0
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 0x338], 0
push 0x697ccc
push 0
push 0x6a2b94
push 0x699048
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x505a8b
mov edx, dword [ebp - 0x30]
mov byte [edx + 0x33a], 0
jmp 0x505a95
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x33a], 1
push 0x67c
call fcn.00673cfe
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x505ac1
push 1
push 0xc
push 0x6a2b8c
mov ecx, dword [ebp - 4]
call fcn.00428220
mov dword [ebp - 0x34], eax
jmp 0x505ac8
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov dword [ecx + 0x350], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x350]
mov dword [0x7e0b84], ecx
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x360], 0
call fcn.00530510
call fcn.00533a10
call fcn.005352c0
call fcn.005023a0
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x3e8], 0xffffffff
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x35c], 0
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x358], 0
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x354], 0
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x3d0], 0
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x44c], 0
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x45c], 0
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x460], 0
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x464], 0
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x468], 0
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x46c], 0
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x470], 0
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x450], 0
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x364], 0
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x3f0], 0
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x3ec], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x927c0
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x3f4], eax
mov eax, dword [ebp - 0x30]
pop edi
mov esp, ebp
pop ebp
ret