Function at 0x4d2cf5
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, 0x557de0
push 0
push 0x46
push 0xc5
push 0x78
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0
push 0x46
push 0xc5
push 0x79
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0
push 0x20
push 0xc5
push 0x7a
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0
push 0x20
push 0xc5
push 0x7b
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0x557494
push 0
push 0xc
push 0x78
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0x5574f8
push 0
push 0xc
push 0x79
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0x5573c8
push 0
push 0xc
push 0x7a
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0x55742c
push 0
push 0xc
push 0x7b
push ebx
call sub.USER32.dll_SendDlgItemMessageA
cmp dword [0x54e370], 0
jne 0x4d2da6
cmp dword [0x54e374], 0
jne 0x4d2da6
cmp dword [0x55bb40], 0xffffffff
je 0x4d2dc6
push 0
push 0x7a
push ebx
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_EnableWindow
push 0
push 0x7b
push ebx
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_EnableWindow
push dword [0x5578b0]
push 0x80
push ebx
call sub.USER32.dll_CheckDlgButton
xor eax, eax
mov dword [0x557d94], eax
push 0
lea edx, [esi + 0x14b]
push edx
push 0x5876a8
call fcn.0046ec77
mov dword [0x5597e4], eax
push str.mirc.ini
push 0x64
push 0x5597e8
lea ecx, [esi + 0x165]
push ecx
lea eax, [esi + 0x15c]
push eax
lea edx, [esi + 0x156]
push edx
call sub.KERNEL32.dll_GetPrivateProfileStringA
cmp byte [0x5597e8], 0
je 0x4d2e55
lea ecx, [esi + 0x16a]
push ecx
push 0x5597e8
call fcn.0053977c
add esp, 8
test eax, eax
je 0x4d2eb0
lea eax, [esi + 0x16f]
push eax
push 0x5597e8
call fcn.0053977c
add esp, 8
test eax, eax
je 0x4d2eb0
push esi
mov esi, 0x5597e8
mov edi, 0x557624
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
cmp byte [0x5597e8], 0
jne 0x4d2eb0
push esi
mov esi, 0x5597e8
mov edi, 0x5575c0
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
push 0
push ebx
call fcn.004f6f04
push 0
push ebx
call fcn.004f7135
xor eax, eax
mov dword [0x557d90], eax
xor edx, edx
mov dword [0x557da4], edx
push 0
push 0x3c
push 0xc5
push 0x87
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0
push 0x1e
push 0xc5
push 0x88
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0x5577b8
push 0
push 0xc
push 0x87
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0x55781c
push 0
push 0xc
push 0x88
push ebx
call sub.USER32.dll_SendDlgItemMessageA
cmp dword [0x5550f8], 0
je 0x4d2f4e
push 0
push 0x87
push ebx
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_EnableWindow
push 0
push 0x88
push ebx
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_EnableWindow
cmp dword [0x557884], 0
je 0x4d2f74
push 0
push 0x8a
push ebx
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_EnableWindow
mov dword [0x557888], 1
push dword [0x557884]
push 0x89
push ebx
call sub.USER32.dll_CheckDlgButton
push dword [0x557888]
push 0x8a
push ebx
call sub.USER32.dll_CheckDlgButton
mov ecx, dword [0x55788c]
cmp ecx, 1
sbb eax, eax
neg eax
push eax
push 0x8d
push ebx
call sub.USER32.dll_CheckDlgButton
push dword [0x55788c]
push 0x8e
push ebx
call sub.USER32.dll_CheckDlgButton
push dword [0x557890]
push 0x93
push ebx
call sub.USER32.dll_CheckDlgButton
push dword [0x557894]
push 0x94
push ebx
call sub.USER32.dll_CheckDlgButton
push dword [0x55789c]
push 0x95
push ebx
call sub.USER32.dll_CheckDlgButton
push dword [0x557898]
push 0x96
push ebx
call sub.USER32.dll_CheckDlgButton
push dword [0x5578a0]
push 0x98
push ebx
call sub.USER32.dll_CheckDlgButton
push 0
push dword [0x5578a8]
push 0x99
push ebx
call sub.USER32.dll_SetDlgItemInt
push 0
push dword [0x5578a4]
push 0x9c
push ebx
call sub.USER32.dll_SetDlgItemInt
push dword [0x5578ac]
push 0x9e
push ebx
call sub.USER32.dll_CheckDlgButton
push ebx
call fcn.004d2c6e
mov edx, dword [0x5589d8]
mov dword [0x557bc8], edx
mov ecx, dword [0x5589dc]
mov dword [0x557bcc], ecx
push esi
mov esi, 0x557bd0
mov edi, 0x5589e0
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
push 0
movzx eax, word [0x5577b6]
push eax
push 0xa0
push ebx
call sub.USER32.dll_SetDlgItemInt
push 0
push 0xa
push 0xc5
push 0xa9
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0
push 0x1e
push 0xc5
push 0xab
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0
push 0xa
push 0xc5
push 0xad
push ebx
call sub.USER32.dll_SendDlgItemMessageA
movzx edx, word [0x551f70]
mov dword [0x557d9c], edx
mov eax, dword [0x551f64]
mov dword [0x557d98], eax
push eax
push 0xa7
push ebx
call sub.USER32.dll_CheckDlgButton
push 0x551f72
push 0
push 0xc
push 0xa9
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0x551fd6
push 0
push 0xc
push 0xab
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0
movzx edx, word [0x551f70]
push edx
push 0xad
push ebx
call sub.USER32.dll_SetDlgItemInt
push dword [0x551f68]
push 0xae
push ebx
call sub.USER32.dll_CheckDlgButton
push dword [0x551f6c]
push 0xaf
push ebx
call sub.USER32.dll_CheckDlgButton
mov ecx, dword [0x551f6c]
mov dword [0x557da0], ecx
push dword [0x5515fc]
push 0xb6
push ebx
call sub.USER32.dll_CheckDlgButton
cmp byte [0x5740a0], 0
jne 0x4d319f
push 0x64
push 0x5740a0
lea eax, [esi + 0x177]
push eax
call sub.KERNEL32.dll_GetEnvironmentVariableA
push 0x5740a0
push 0
push 0xc
push 0xb8
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0
movzx edx, word [0x5515f0]
push edx
push 0xbe
push ebx
call sub.USER32.dll_SetDlgItemInt
push 0x574104
push 0
push 0xc
push 0xba
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0x574168
push 0
push 0xc
push 0xbc
push ebx
call sub.USER32.dll_SendDlgItemMessageA
cmp dword [0x5515f4], 1
jne 0x4d3208
push 1
push 0xc1
push ebx
call sub.USER32.dll_CheckDlgButton
jmp 0x4d322d
cmp dword [0x5515f4], 2
jne 0x4d3220
push 1
push 0xc3
push ebx
call sub.USER32.dll_CheckDlgButton
jmp 0x4d322d
push 1
push 0xc0
push ebx
call sub.USER32.dll_CheckDlgButton
push dword [0x5515f8]
push 0xc2
push ebx
call sub.USER32.dll_CheckDlgButton
pop edi
pop esi
pop ebx
pop ebp
ret 4