Function at 0x492470
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x80
push ebp
push esi
push edi
call fcn.00502b30
mov ebp, eax
test ebp, ebp
je 0x49296d
mov eax, dword [esp + 0x90]
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
jne 0x492924
cmp eax, 0x20
je 0x492924
mov eax, dword [0x609ad8]
push ecx
push 0x7f
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
je 0x4924c3
cmp eax, 1
jg 0x4924d7
push 1
call fcn.00492210
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0x80
ret
cmp eax, 0x78
jle 0x4924e1
mov eax, 0x78
lea ecx, [esp + 0xc]
push 0xd
push ecx
mov byte [esp + eax + 0x14], 0
call fcn.005cbf10
add esp, 8
test eax, eax
je 0x4924fc
mov byte [eax], 0
lea edx, [esp + 0xc]
push 0xa
push edx
call fcn.005cbf10
add esp, 8
test eax, eax
je 0x492512
mov byte [eax], 0
mov al, byte [esp + 0xc]
test al, al
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
jne 0x492541
mov eax, dword [str._default_]
mov ecx, dword [0x5eaa24]
mov dx, word [0x5eaa28]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov word [esp + 0x14], dx
jmp 0x49256f
lea eax, [esp + 0xc]
push eax
push 0x5e6d00
push 0x616b00
call edi
add esp, 0xc
xor eax, eax
jmp 0x492560
mov cl, byte [eax + 0x616b00]
mov byte [esp + eax + 0xc], cl
inc eax
test cl, cl
jne 0x492560
mov ecx, dword [0x645324]
mov edx, dword [0x609ad8]
push 0
push 0
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
lea eax, [esp + 0xc]
push eax
push 0
push 0x917
call fcn.00421db0
add esp, 8
push eax
push 0x616b00
call edi
mov al, byte [0x616a98]
add esp, 0xc
test al, al
je 0x49260c
mov eax, 0x616b00
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4925b7
sub eax, edx
push 0xf
lea ecx, [eax + 0x616b00]
push 0x5eaa18
push ecx
call edi
mov eax, 0x616b00
add esp, 0xc
lea edx, [eax + 1]
jmp 0x4925e0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4925e0
push 0x616a98
sub eax, edx
push 0
push 0x918
mov esi, eax
call fcn.00421db0
add esp, 8
push eax
lea edx, [esi + 0x616b00]
push edx
call edi
add esp, 0xc
mov al, byte [0x616990]
test al, al
je 0x4926d7
push 0x40
push 0x5e6c90
push 0x616990
call fcn.005ccd80
add esp, 0xc
test eax, eax
mov dword [0x616a94], eax
jne 0x4926e6
mov eax, 0x616b00
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x492642
sub eax, edx
push 0
push 0x919
mov esi, eax
call fcn.00421db0
push eax
lea eax, [esi + 0x616b00]
push eax
call edi
mov ecx, dword [0x6136ac]
push ecx
mov dword [0x63f7ac], 0
mov dword [0x63f7bc], 1
mov edx, dword [ebp]
push 0x616b00
push edx
call fcn.005275f0
lea eax, [esp + 0x28]
push eax
push 0x91a
call fcn.00421db0
lea eax, [esp + 0x30]
add esp, 0x24
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4926a5
push 0
sub eax, edx
mov edx, dword [0x609ad8]
push eax
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_send]
push 2
call fcn.00492210
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0x80
ret
mov dword [0x616a94], 0
jmp 0x49263a
mov eax, dword [0x61698c]
test eax, eax
je 0x492720
mov eax, dword [0x6136ac]
push eax
mov dword [0x63f7ac], 0
mov dword [0x63f7bc], 1
mov ecx, dword [ebp]
push 0x616b00
push ecx
call fcn.005275f0
add esp, 0xc
lea ebx, [ebx]
mov edx, dword [0x616a94]
push edx
push 0x3e7
push 0x616b00
call fcn.005cccfa
add esp, 0xc
test eax, eax
je 0x492788
lea ecx, [ecx]
lea eax, [esp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x492747
sub eax, edx
push eax
lea eax, [esp + 0x10]
push eax
push 0x616b00
call fcn.005e325e
add esp, 0xc
test eax, eax
je 0x492821
mov ecx, dword [0x616a94]
push ecx
push 0x3e7
push 0x616b00
call fcn.005cccfa
add esp, 0xc
test eax, eax
jne 0x492740
lea edx, [esp + 0xc]
push str._default_
push edx
call fcn.005e31f5
add esp, 8
test eax, eax
je 0x4927d0
mov eax, dword [0x616a94]
push eax
call fcn.005cf99d
mov ecx, dword [str._default_]
mov edx, dword [0x5eaa24]
mov ax, word [0x5eaa28]
add esp, 4
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov word [esp + 0x14], ax
jmp 0x492720
lea ecx, [esp + 0xc]
push ecx
push 0x91b
call fcn.00421db0
lea eax, [esp + 0x14]
add esp, 8
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4927f0
sub eax, edx
push 0
push eax
mov eax, dword [0x609ad8]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_send]
push 2
call fcn.00492210
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0x80
ret
mov ecx, dword [0x645324]
mov edx, dword [0x609ad8]
push 0x22
push 0x8030
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov eax, dword [0x616a94]
push eax
push 0x3e7
push 0x616b00
call fcn.005cccfa
add esp, 0xc
test eax, eax
je 0x49296d
push 0x616b00
call fcn.004c9b30
add esp, 4
test eax, eax
jne 0x49296d
push 0x616b00
call fcn.004923e0
add esp, 4
test eax, eax
je 0x492908
push 0xa
push 0x616b00
call fcn.005cbf10
add esp, 8
test eax, eax
jne 0x4928b2
mov edi, 0x616b00
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4928a0
mov cx, word [0x5e75fc]
mov word [edi], cx
mov eax, 0x616b00
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4928c0
push 0
sub eax, edx
mov edx, dword [0x609ad8]
push eax
push 0x616b00
push edx
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
jne 0x492908
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x492977
push 2
call fcn.00492210
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0x80
ret
push 0x3e7
push 0x616b00
call fcn.00423a00
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0x80
ret
mov eax, dword [0x61698c]
test eax, eax
je 0x49296d
mov al, byte [0x616a98]
test al, al
je 0x49296d
push 0x616a98
push 0
push 0x916
call fcn.00421db0
add esp, 8
push eax
push 0x616b00
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x6136ac]
mov ecx, dword [ebp]
push eax
push 0x616b00
push ecx
call fcn.005275f0
add esp, 0x18
push 2
call fcn.00492210
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0x80
ret