Function at 0x40a55c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov esi, str._mdi
push ebx
call fcn.004b5f30
test eax, eax
jne 0x40a57e
xor eax, eax
jmp 0x40a88f
mov al, byte [ebx + 0x4cc]
test al, al
je 0x40a5bb
cmp al, 1
je 0x40a5bb
cmp al, 2
je 0x40a5bb
cmp al, 5
je 0x40a5bb
cmp byte [ebx + 0x4cc], 9
jne 0x40a88d
cmp byte [ebx + 0x4e5], 0
jne 0x40a88d
cmp byte [ebx + 0x4cd], 1
je 0x40a88d
cmp byte [ebx + 0x4cc], 0
jne 0x40a5f2
push str.mirc.ini
push 0x180
push 0x4e24ec
lea edx, [esi + 0x13c]
push edx
lea ecx, [esi + 0x134]
push ecx
lea eax, [esi + 0x128]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
jmp 0x40a7b5
cmp byte [ebx + 0x4cc], 2
jne 0x40a632
cmp byte [ebx + 0x4cd], 2
jne 0x40a632
push str.mirc.ini
push 0x180
push 0x4e24ec
lea edx, [esi + 0x156]
push edx
lea ecx, [esi + 0x14c]
push ecx
lea eax, [esi + 0x140]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
jmp 0x40a7b5
cmp byte [ebx + 0x4cc], 5
jne 0x40a669
push str.mirc.ini
push 0x180
push 0x4e24ec
lea edx, [esi + 0x16f]
push edx
lea ecx, [esi + 0x166]
push ecx
lea eax, [esi + 0x15a]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
jmp 0x40a7b5
push 0x20
lea edx, [ebx + 4]
push edx
call fcn.004bce0c
add esp, 8
mov dword [0x4d8c08], eax
cmp dword [0x4d8c08], 0
je 0x40a68b
inc dword [0x4d8c08]
mov eax, dword [0x4d8c08]
test eax, eax
je 0x40a699
cmp byte [eax], 0
jne 0x40a6a2
lea edx, [ebx + 4]
mov dword [0x4d8c08], edx
push str.mirc.ini
push 0x180
push 0x4e24ec
lea ecx, [esi + 0x17f]
push ecx
mov eax, dword [0x4d8c08]
push eax
lea edx, [esi + 0x173]
push edx
call sub.KERNEL32.dll_GetPrivateProfileStringA
cmp byte [0x4e24ec], 0
jne 0x40a7b5
cmp byte [ebx + 0x4cc], 1
jne 0x40a70e
push str.mirc.ini
push 0x180
push 0x4e24ec
lea ecx, [esi + 0x199]
push ecx
lea eax, [esi + 0x18f]
push eax
lea edx, [esi + 0x183]
push edx
call sub.KERNEL32.dll_GetPrivateProfileStringA
jmp 0x40a7b5
cmp byte [ebx + 0x4cc], 2
jne 0x40a7b5
cmp byte [ebx + 0x4cd], 3
jne 0x40a74f
push str.mirc.ini
push 0x180
push 0x4e24ec
lea ecx, [esi + 0x1b0]
push ecx
lea eax, [esi + 0x1a9]
push eax
lea edx, [esi + 0x19d]
push edx
call sub.KERNEL32.dll_GetPrivateProfileStringA
jmp 0x40a7b5
cmp byte [ebx + 0x4cd], 4
jne 0x40a783
push str.mirc.ini
push 0x180
push 0x4e24ec
lea ecx, [esi + 0x1c7]
push ecx
lea eax, [esi + 0x1c0]
push eax
lea edx, [esi + 0x1b4]
push edx
call sub.KERNEL32.dll_GetPrivateProfileStringA
jmp 0x40a7b5
cmp byte [ebx + 0x4cd], 1
jne 0x40a7b5
push str.mirc.ini
push 0x180
push 0x4e24ec
lea ecx, [esi + 0x1df]
push ecx
lea eax, [esi + 0x1d7]
push eax
lea edx, [esi + 0x1cb]
push edx
call sub.KERNEL32.dll_GetPrivateProfileStringA
cmp byte [0x4e24ec], 0
je 0x40a7d6
lea ecx, [esi + 0x1e3]
push ecx
push 0x4e24ec
call fcn.004bcfe4
add esp, 8
test eax, eax
jne 0x40a7e9
push ebx
call fcn.0040a424
push ebx
call fcn.004093b4
xor eax, eax
jmp 0x40a88f
push 0x2c
push 0x4e24ec
call fcn.004bd108
add esp, 8
mov esi, eax
mov dword [0x4d8c08], esi
test esi, esi
je 0x40a83c
mov byte [esi], 0
inc dword [0x4d8c08]
mov esi, dword [0x4d8c08]
cmp byte [esi], 0
je 0x40a83c
push esi
call fcn.004c4ccc
pop ecx
mov dword [ebx + 0x53c], eax
mov eax, dword [ebx + 0x53c]
test eax, eax
jl 0x40a834
cmp eax, 5
jle 0x40a83c
xor edx, edx
mov dword [ebx + 0x53c], edx
cmp edi, 1
jne 0x40a875
push 0x4d832f
push 0x4e24ec
call fcn.0040b1d4
push 0x4e24ec
mov ecx, dword [ebx]
push ecx
call fcn.0040a350
test eax, eax
jne 0x40a86d
push ebx
call fcn.0040a424
push ebx
call fcn.004093b4
mov eax, dword [ebx + 0x53c]
jmp 0x40a88f
push ebx
call fcn.0040a424
push ebx
call fcn.004093b4
test edi, edi
jne 0x40a88d
mov eax, dword [ebx + 0x53c]
jmp 0x40a88f
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8