Function at 0x4adf10
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b0585
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6244f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
xor edi, edi
cmp dword [esi + 0x28], edi
je 0x4ae083
cmp dword [esi + 0x3c], edi
cmovne edi, dword [ebp + 0x14]
call dword [eax + 0x88]
test eax, eax
jne 0x4adf78
push edi
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
call fcn.004ad100
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.0053955f
mov ecx, eax
test ecx, ecx
je 0x4ae17f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x14], eax
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, 0x100
or ecx, edx
mov dword [ebp - 4], 0
jge 0x4adfbe
push 0x100
lea ecx, [ebp + 0x14]
call fcn.004053a9
mov eax, dword [ebp + 0x14]
push dword [esi + 0x48]
mov ebx, dword [ebp + 8]
push 0x100
push eax
push 0
push ebx
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x4adfea
push edi
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
call fcn.004ad100
jmp 0x4ae049
cmp eax, 0xff
jne 0x4ae02e
mov eax, dword [ebp + 0x14]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x3e80
or ecx, edx
jge 0x4ae019
push 0x3e80
lea ecx, [ebp + 0x14]
call fcn.004053a9
mov eax, dword [ebp + 0x14]
push dword [esi + 0x48]
push 0x3e80
push eax
push 0
push ebx
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
lea ecx, [ebp + 0x14]
call fcn.0040bcbe
push edi
push dword [ebp + 0x10]
lea eax, [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0xc]
push eax
call fcn.004ae820
mov edx, dword [ebp + 0x14]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4ae06d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esi + 0x40], edi
cmovne edi, dword [ebp + 0x14]
call dword [eax + 0x88]
test eax, eax
je 0x4ae169
mov ebx, dword [ebp + 0x10]
mov ecx, esi
push edi
push ebx
push dword [ebp + 0xc]
call fcn.004aff50
test eax, eax
je 0x4ae0db
cmp dword [esi + 0x34], 0
jne 0x4ae0c2
push dword [esi + 0x48]
push 0
push dword [ebp + 8]
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.0053955f
mov ecx, eax
test ecx, ecx
je 0x4ae189
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push edi
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.004ae820
test eax, eax
je 0x4ae147
push dword [esi + 0x48]
push dword [ebp - 0x10]
push dword [ebp + 8]
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
je 0x4ae147
lea ecx, [ebp - 0x10]
call fcn.00404ca9
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4ae169
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00404e00
push 0x80004005
call fcn.00404e00
int3