Function at 0x419ead
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, str._mdi
mov edi, 0x579058
push ebx
call fcn.00514157
test eax, eax
jne 0x419ed1
xor eax, eax
jmp 0x41a19e
mov al, byte [ebx + 0x64c]
test al, al
je 0x419f0e
cmp al, 1
je 0x419f0e
cmp al, 2
je 0x419f0e
cmp al, 5
je 0x419f0e
cmp byte [ebx + 0x64c], 9
jne 0x41a19c
cmp byte [ebx + 0x668], 0
jne 0x41a19c
cmp byte [ebx + 0x64d], 1
je 0x41a19c
cmp byte [ebx + 0x64c], 0
jne 0x419f41
push str.mirc.ini
push 0x3e7
push edi
lea edx, [esi + 0x13c]
push edx
lea ecx, [esi + 0x134]
push ecx
lea eax, [esi + 0x128]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
jmp 0x41a0db
cmp byte [ebx + 0x64c], 2
jne 0x419f7d
cmp byte [ebx + 0x64d], 2
jne 0x419f7d
push str.mirc.ini
push 0x3e7
push edi
lea edx, [esi + 0x156]
push edx
lea ecx, [esi + 0x14c]
push ecx
lea eax, [esi + 0x140]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
jmp 0x41a0db
cmp byte [ebx + 0x64c], 5
jne 0x419fb0
push str.mirc.ini
push 0x3e7
push edi
lea edx, [esi + 0x16f]
push edx
lea ecx, [esi + 0x166]
push ecx
lea eax, [esi + 0x15a]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
jmp 0x41a0db
push 0x20
lea edx, [ebx + 4]
push edx
call fcn.00539518
add esp, 8
mov dword [0x56a4a4], eax
cmp dword [0x56a4a4], 0
je 0x419fd2
inc dword [0x56a4a4]
mov eax, dword [0x56a4a4]
test eax, eax
je 0x419fe0
cmp byte [eax], 0
jne 0x419fe9
lea edx, [ebx + 4]
mov dword [0x56a4a4], edx
push str.mirc.ini
push 0x3e7
push edi
lea ecx, [esi + 0x17f]
push ecx
push dword [0x56a4a4]
lea eax, [esi + 0x173]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
cmp byte [edi], 0
jne 0x41a0db
cmp byte [ebx + 0x64c], 1
jne 0x41a049
push str.mirc.ini
push 0x3e7
push edi
lea edx, [esi + 0x199]
push edx
lea ecx, [esi + 0x18f]
push ecx
lea eax, [esi + 0x183]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
jmp 0x41a0db
cmp byte [ebx + 0x64c], 2
jne 0x41a0db
cmp byte [ebx + 0x64d], 3
jne 0x41a086
push str.mirc.ini
push 0x3e7
push edi
lea edx, [esi + 0x1b0]
push edx
lea ecx, [esi + 0x1a9]
push ecx
lea eax, [esi + 0x19d]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
jmp 0x41a0db
cmp byte [ebx + 0x64d], 4
jne 0x41a0b6
push str.mirc.ini
push 0x3e7
push edi
lea edx, [esi + 0x1c7]
push edx
lea ecx, [esi + 0x1c0]
push ecx
lea eax, [esi + 0x1b4]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
jmp 0x41a0db
push str.mirc.ini
push 0x3e7
push edi
lea edx, [esi + 0x1df]
push edx
lea ecx, [esi + 0x1d7]
push ecx
lea eax, [esi + 0x1cb]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
cmp byte [edi], 0
je 0x41a0f4
lea edx, [esi + 0x1e3]
push edx
push edi
call fcn.0053977c
add esp, 8
test eax, eax
jne 0x41a107
push ebx
call fcn.00419d7c
push ebx
call fcn.00418b65
xor eax, eax
jmp 0x41a19e
push 0x2c
push edi
call fcn.005398a0
add esp, 8
mov esi, eax
mov dword [0x56a4a4], esi
test esi, esi
je 0x41a156
mov byte [esi], 0
inc dword [0x56a4a4]
mov esi, dword [0x56a4a4]
cmp byte [esi], 0
je 0x41a156
push esi
call fcn.00542dbc
pop ecx
mov dword [ebx + 0x794], eax
mov eax, dword [ebx + 0x794]
test eax, eax
jl 0x41a14e
cmp eax, 5
jle 0x41a156
xor edx, edx
mov dword [ebx + 0x794], edx
cmp dword [ebp + 0xc], 1
jne 0x41a182
push edi
call fcn.0041cb6c
push edi
push dword [ebx]
call fcn.00419bed
test eax, eax
jne 0x41a17a
push ebx
call fcn.00419d7c
push ebx
call fcn.00418b65
mov eax, dword [ebx + 0x794]
jmp 0x41a19e
push ebx
call fcn.00419d7c
push ebx
call fcn.00418b65
cmp dword [ebp + 0xc], 0
jne 0x41a19c
mov eax, dword [ebx + 0x794]
jmp 0x41a19e
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8