Function at 0x42316c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
push edi
mov ebx, 0x5437ec
mov eax, dword [ebp + 8]
mov esi, ebx
mov edi, eax
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]
push ebx
call fcn.00416498
push 1
push ebx
call fcn.00416273
test eax, eax
je 0x42354e
push 0x64
push 0
lea eax, [ebp - 0x7c]
push eax
call fcn.0051825c
add esp, 0xc
push 0xa
push 0
lea edx, [ebp - 0xc]
push edx
call fcn.0051825c
add esp, 0xc
push 0x64
push 0
lea ecx, [ebp - 0xe0]
push ecx
call fcn.0051825c
add esp, 0xc
push 0xa
push 0
lea eax, [ebp - 0x18]
push eax
call fcn.0051825c
add esp, 0xc
push 0x64
push 0
lea edx, [ebp - 0x144]
push edx
call fcn.0051825c
add esp, 0xc
push ebx
push 0x64
lea ecx, [ebp - 0x7c]
push ecx
push 0x52a280
push str.serverName
push 0x52a26c
call sub.KERNEL32.dll_GetPrivateProfileStringA
push ebx
push 0xa
lea eax, [ebp - 0xc]
push eax
push 0x52a290
push 0x52a28a
push 0x52a282
call sub.KERNEL32.dll_GetPrivateProfileStringA
push ebx
push 0x64
lea edx, [ebp - 0xe0]
push edx
push 0x52a2a7
push str.channelName
push 0x52a292
call sub.KERNEL32.dll_GetPrivateProfileStringA
push ebx
push 0xa
lea ecx, [ebp - 0x18]
push ecx
push 0x52a2c0
push str.confirmPrompt
push str.nschat
call sub.KERNEL32.dll_GetPrivateProfileStringA
cmp byte [ebp - 0xe0], 0
jne 0x4233ee
cmp byte [ebp - 0x7c], 0
jne 0x4233ee
push 0x52a2c2
push ebx
call fcn.0051bf28
add esp, 8
mov edi, eax
test edi, edi
je 0x42354e
push edi
push 0x3e7
push 0x555aeb
call fcn.0051b93c
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x4233e7
jmp 0x4232cb
inc ebx
mov al, byte [ebx]
cmp al, 0x20
je 0x4232ca
cmp al, 9
je 0x4232ca
cmp byte [ebx], 0
je 0x4232ab
mov esi, ebx
jmp 0x4232df
inc esi
mov al, byte [esi]
test al, al
je 0x4232ed
cmp al, 0x20
je 0x4232ed
cmp al, 9
jne 0x4232de
test esi, esi
je 0x4232ab
mov byte [esi], 0
inc esi
jmp 0x4232f8
inc esi
mov al, byte [esi]
cmp al, 0x20
je 0x4232f7
cmp al, 9
je 0x4232f7
cmp byte [esi], 0
je 0x4232ab
push 0xa
push esi
call fcn.0051833c
add esp, 8
test eax, eax
je 0x423319
mov byte [eax], 0
push 0x52a2c5
push ebx
call fcn.005185a0
add esp, 8
test eax, eax
jne 0x42333e
push 0x5a
push esi
lea edx, [ebp - 0x7c]
push edx
call fcn.005185e8
add esp, 0xc
mov byte [ebp - 0x22], 0
push 0x52a2cd
push ebx
call fcn.005185a0
add esp, 8
test eax, eax
jne 0x423363
push 7
push esi
lea ecx, [ebp - 0xc]
push ecx
call fcn.005185e8
add esp, 0xc
mov byte [ebp - 5], 0
push 0x52a2d3
push ebx
call fcn.005185a0
add esp, 8
test eax, eax
jne 0x42338e
push 0x5a
push esi
lea eax, [ebp - 0xe0]
push eax
call fcn.005185e8
add esp, 0xc
mov byte [ebp - 0x86], 0
push 0x52a2dc
push ebx
call fcn.005185a0
add esp, 8
test eax, eax
jne 0x4233b9
push 0x5a
push esi
lea edx, [ebp - 0x144]
push edx
call fcn.005185e8
add esp, 0xc
mov byte [ebp - 0xea], 0
push 0x52a2e6
push ebx
call fcn.005185a0
add esp, 8
test eax, eax
jne 0x4232ab
push 5
push esi
lea ecx, [ebp - 0x18]
push ecx
call fcn.005185e8
add esp, 0xc
mov byte [ebp - 0x13], 0
jmp 0x4232ab
push edi
call fcn.0051b82c
pop ecx
cmp byte [ebp - 0x7c], 0
je 0x42340b
push 0x20
lea eax, [ebp - 0x7c]
push eax
call fcn.0051833c
add esp, 8
mov esi, eax
test esi, esi
je 0x42340b
mov byte [esi], 0
cmp byte [ebp - 0xe0], 0
je 0x42342e
push 0x20
lea eax, [ebp - 0xe0]
push eax
call fcn.0051833c
add esp, 8
mov esi, eax
test esi, esi
je 0x42342e
mov byte [esi], 0
cmp byte [ebp - 0xc], 0
je 0x42344b
push 0x20
lea eax, [ebp - 0xc]
push eax
call fcn.0051833c
add esp, 8
mov esi, eax
test esi, esi
je 0x42344b
mov byte [esi], 0
cmp byte [ebp - 0xe0], 0
jne 0x42345e
cmp byte [ebp - 0x7c], 0
je 0x42354e
cmp byte [ebp - 0xc], 0
jne 0x423475
push 0x52a2ef
lea eax, [ebp - 0xc]
push eax
call sub.USER32.dll_wsprintfA
add esp, 8
cmp byte [ebp - 0xe0], 0x23
je 0x4234bf
lea edx, [ebp - 0xe0]
push edx
push 0x52a2f5
push 0x555aeb
call sub.USER32.dll_wsprintfA
add esp, 0xc
lea esi, [ebp - 0xe0]
mov edi, 0x555aeb
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]
mov esi, 0x533db8
lea edi, [ebp - 0x7c]
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]
mov dword [0x5490d8], 1
cmp byte [ebp - 0xe0], 0
je 0x42354e
mov esi, 0x548fd4
lea edi, [ebp - 0xe0]
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]
cmp byte [ebp - 0x144], 0
je 0x42354e
push 0x52a2fa
push 0x548fd4
call fcn.00518300
add esp, 8
lea eax, [ebp - 0x144]
push eax
push 0x548fd4
call fcn.00518300
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4