Function at 0x52502a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, 0x589c68
xor eax, eax
mov dword [ebp - 0x14], eax
mov edx, dword [0x56f038]
mov dword [ebp - 0x18], edx
push 0x56f188
lea ecx, [ebp - 0x18]
push ecx
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0xc]
push ecx
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 4]
push edx
lea ecx, [ebx + 8]
push ecx
push 0
call fcn.004ee38b
test eax, eax
je 0x5250ab
mov eax, dword [ebp - 4]
mov dword [esi + 0xc], eax
mov edx, dword [ebp - 8]
mov dword [esi + 0x14], edx
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x18], eax
cmp dword [ebp - 0x14], 1
jne 0x52509c
mov dword [esi + 0x1c], 0x20000000
jmp 0x525119
cmp dword [ebp - 0x14], 2
jne 0x525119
mov dword [esi + 0x1c], 0x1000000
jmp 0x525119
push 0x56f188
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
push ecx
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 8]
push ecx
lea eax, [ebp - 4]
push eax
push str.wdchannel
push 0
call fcn.004ee38b
test eax, eax
jne 0x525075
push 0x56f188
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
push ecx
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 8]
push ecx
lea eax, [ebp - 4]
push eax
push 0x56f643
push 0
call fcn.004ee38b
test eax, eax
je 0x525111
mov edx, dword [ebp - 8]
mov dword [esi + 0x14], edx
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x18], ecx
mov eax, dword [0x56f038]
mov dword [ebp - 0x18], eax
mov dword [esi], str.mIRC_Channel
mov edx, dword [ebx + 0xb6c]
add edx, 0x142c
push edx
push dword [esi + 4]
call fcn.0054e450
add esp, 8
test eax, eax
jne 0x52514f
mov dword [esi + 0x1c], 0x20000000
mov ecx, dword [ebx + 0xb6c]
mov byte [ecx + 0x142c], 0
mov edi, dword [ebx + 0xb6c]
cmp dword [edi + 0x149c], 0
je 0x525186
push edi
push dword [esi + 4]
call fcn.004bf4fd
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
jne 0x525179
mov dword [esi + 0x1c], 0x20000000
jmp 0x525186
cmp dword [ebp - 4], 2
jne 0x525186
mov dword [esi + 0x1c], 0x1000000
mov dword [ebx + 0x6e0], 0xb
push 0x63
lea eax, [ebx + 0x67c]
push eax
call fcn.0048df30
test eax, eax
je 0x525274
mov edx, dword [0x56092c]
mov dword [ebx + 0x6a0], edx
push dword [ebp - 0x18]
push ebx
call fcn.00523cb8
test eax, eax
je 0x525274
push ebx
call fcn.0052443c
mov ecx, dword [0x56c300]
mov dword [ebx + 0x84c], ecx
push ebx
call fcn.00524568
test eax, eax
jne 0x5251ef
push dword [ebx]
call sub.USER32.dll_DestroyWindow
xor eax, eax
mov dword [ebx], eax
jmp 0x525274
push ebx
call fcn.00476ead
push 0
push ebx
call fcn.0052466f
test eax, eax
jne 0x52520e
push dword [ebx]
call sub.USER32.dll_DestroyWindow
xor edx, edx
mov dword [ebx], edx
jmp 0x525274
mov eax, 0x54200d51
push eax
push ebx
call fcn.00524d45
test eax, eax
jne 0x52522b
push dword [ebx]
call sub.USER32.dll_DestroyWindow
xor edx, edx
mov dword [ebx], edx
jmp 0x525274
push dword [ebx]
call fcn.004d6519
mov esi, eax
mov dword [ebx + 0x6f4], esi
cmp esi, 2
jne 0x525259
push 0
push dword [ebx + 0x820]
call sub.USER32.dll_ShowWindow
push 0
push dword [ebx + 0x820]
call sub.USER32.dll_EnableWindow
push dword [ebx]
call fcn.005201db
push 0x80b9
push dword [ebx]
call fcn.005225d7
push 1
push ebx
call fcn.0052416a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4