Function at 0x4d6420
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e0235
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x65eb68]
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 0x4d6593
cmp dword [esi + 0x3c], edi
cmovne edi, dword [ebp + 0x14]
call dword [eax + 0x88]
test eax, eax
jne 0x4d6488
push edi
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
call fcn.004d5610
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.0056500f
mov ecx, eax
test ecx, ecx
je 0x4d668f
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 0x4d64ce
push 0x100
lea ecx, [ebp + 0x14]
call fcn.00405578
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 0x4d64fa
push edi
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
call fcn.004d5610
jmp 0x4d6559
cmp eax, 0xff
jne 0x4d653e
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 0x4d6529
push 0x3e80
lea ecx, [ebp + 0x14]
call fcn.00405578
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.004191b1
push edi
push dword [ebp + 0x10]
lea eax, [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0xc]
push eax
call fcn.004d6d30
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 0x4d657d
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 0x4d6679
mov ebx, dword [ebp + 0x10]
mov ecx, esi
push edi
push ebx
push dword [ebp + 0xc]
call fcn.004d8460
test eax, eax
je 0x4d65eb
cmp dword [esi + 0x34], 0
jne 0x4d65d2
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.0056500f
mov ecx, eax
test ecx, ecx
je 0x4d6699
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.004d6d30
test eax, eax
je 0x4d6657
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 0x4d6657
lea ecx, [ebp - 0x10]
call fcn.00404cb7
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 0x4d6679
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.00404e0e
push 0x80004005
call fcn.00404e0e
int3