Function at 0x4b6480
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x24]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 0x1c]
mov dword [eax], edx
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov dword [edi], edx
mov dword [esi], edx
push 0x4d44b7
push ebx
call fcn.004bcfe4
add esp, 8
test eax, eax
jne 0x4b64e3
push str.mirc.ini
push 0x3e7
push 0x4e4b90
push 0x4d44da
push 0x4d44d0
push 0x4d44c7
call sub.KERNEL32.dll_GetPrivateProfileStringA
jmp 0x4b6521
push 0x20
push ebx
call fcn.004bce0c
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4b64fc
inc dword [ebp - 4]
jmp 0x4b64ff
mov dword [ebp - 4], ebx
push str.mirc.ini
push 0x3e7
push 0x4e4b90
push 0x4d44e7
mov eax, dword [ebp - 4]
push eax
push str.Windows
call sub.KERNEL32.dll_GetPrivateProfileStringA
cmp byte [0x4e4b90], 0
jne 0x4b6543
push esi
push edi
mov esi, str.0_0_0_0_0_1_0
mov edi, 0x4e4b90
mov eax, edi
mov ecx, 3
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop edi
pop esi
mov dword [ebp - 4], 0x4e4b90
push 0x4e4b90
call fcn.004bceac
pop ecx
mov ebx, eax
add ebx, dword [ebp - 4]
cmp ebx, dword [ebp - 4]
jbe 0x4b6573
push 0xa
lea eax, [ebp - 4]
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.004c60f4
add esp, 0xc
mov dword [esi], eax
cmp dword [ebp - 4], 0
je 0x4b659d
cmp ebx, dword [ebp - 4]
jbe 0x4b659d
inc dword [ebp - 4]
cmp ebx, dword [ebp - 4]
jbe 0x4b659d
push 0xa
lea ecx, [ebp - 4]
push ecx
mov eax, dword [ebp - 4]
push eax
call fcn.004c60f4
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
cmp dword [ebp - 4], 0
je 0x4b65c4
cmp ebx, dword [ebp - 4]
jbe 0x4b65c4
inc dword [ebp - 4]
cmp ebx, dword [ebp - 4]
jbe 0x4b65c4
push 0xa
lea ecx, [ebp - 4]
push ecx
mov eax, dword [ebp - 4]
push eax
call fcn.004c60f4
add esp, 0xc
mov dword [edi], eax
cmp dword [ebp - 4], 0
je 0x4b65ee
cmp ebx, dword [ebp - 4]
jbe 0x4b65ee
inc dword [ebp - 4]
cmp ebx, dword [ebp - 4]
jbe 0x4b65ee
push 0xa
lea edx, [ebp - 4]
push edx
mov ecx, dword [ebp - 4]
push ecx
call fcn.004c60f4
add esp, 0xc
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
cmp dword [ebp - 4], 0
je 0x4b6618
cmp ebx, dword [ebp - 4]
jbe 0x4b6618
inc dword [ebp - 4]
cmp ebx, dword [ebp - 4]
jbe 0x4b6618
push 0xa
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004c60f4
add esp, 0xc
mov edx, dword [ebp + 0x1c]
mov dword [edx], eax
cmp dword [ebp - 4], 0
je 0x4b6642
cmp ebx, dword [ebp - 4]
jbe 0x4b6642
inc dword [ebp - 4]
cmp ebx, dword [ebp - 4]
jbe 0x4b6642
push 0xa
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004c60f4
add esp, 0xc
mov edx, dword [ebp + 0x20]
mov dword [edx], eax
cmp dword [ebp - 4], 0
je 0x4b666c
cmp ebx, dword [ebp - 4]
jbe 0x4b666c
inc dword [ebp - 4]
cmp ebx, dword [ebp - 4]
jbe 0x4b666c
push 0xa
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004c60f4
add esp, 0xc
mov edx, dword [ebp + 0x24]
mov dword [edx], eax
cmp dword [esi], 0
jne 0x4b668a
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jne 0x4b668a
cmp dword [edi], 0
jne 0x4b668a
mov ecx, dword [ebp + 0x18]
cmp dword [ecx], 0
jne 0x4b668a
xor eax, eax
jmp 0x4b66ea
mov edx, dword [ebp + 0x20]
cmp dword [edx], 1
jne 0x4b66ac
cmp dword [0x4d42a0], 0
je 0x4b66ac
lea ecx, [ebp - 0x14]
push ecx
mov eax, dword [0x4d42a0]
push eax
call sub.USER32.dll_GetClientRect
jmp 0x4b66bb
lea edx, [ebp - 0x14]
push edx
call sub.USER32.dll_GetDesktopWindow
push eax
call sub.USER32.dll_GetWindowRect
mov eax, dword [esi]
cmp eax, 0xfffffff6
jl 0x4b66cc
mov edx, dword [ebp - 0xc]
add edx, 0xfffffff6
cmp eax, edx
jl 0x4b66d0
xor ecx, ecx
mov dword [esi], ecx
mov eax, dword [edi]
cmp eax, 0xfffffff6
jl 0x4b66e1
mov edx, dword [ebp - 8]
add edx, 0xfffffff6
cmp eax, edx
jl 0x4b66e5
xor ecx, ecx
mov dword [edi], ecx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20