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

Disassembly:
mov eax, 0x486047
call fcn.004847e4
sub esp, 0x664
push ebx
xor eax, eax
lea ecx, [ebp - 0x2c]
push esi
push edi
push eax
push eax
mov ebx, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
call fcn.00402cee
xor eax, eax
lea ecx, [ebp - 0x54]
push eax
mov dword [ebp - 4], eax
push eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
call fcn.00402cee
xor eax, eax
lea ecx, [ebp - 0x6c]
push eax
push eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
call fcn.00402cee
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
call fcn.004138a1
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.00413aca
mov dword [ebp - 0x14], eax
mov ecx, 0xa6
xor edx, edx
mov al, byte [edx + 0x498594]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x3c], al
and ecx, 0x800000ff
jns 0x413c0f
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0xf
jl 0x413bf2
cmp dword [ebp - 0x40], 0x10
lea eax, [ebp - 0x54]
mov byte [ebp - 0x2d], 0
cmovae eax, dword [ebp - 0x54]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x670]
push eax
call fcn.00412ff0
add esp, 0xc
xor ecx, ecx
mov al, byte [ebp + ecx - 0x670]
mov byte [ebp + ecx - 0x270], al
inc ecx
test al, al
jne 0x413c3a
push 0x37
pop ecx
xor edx, edx
mov al, byte [edx + 0x498590]
xor al, cl
inc ecx
mov byte [ebp + edx + 9], al
and ecx, 0x800000ff
jns 0x413c6f
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 2
jl 0x413c52
lea edx, [ebp + 9]
mov byte [ebp + 0xb], 0
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x413c7e
lea edi, [ebp - 0x270]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x413c8e
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
xor edx, edx
rep movsb byte es:[edi], byte [esi]
mov ecx, 0xbe
mov al, byte [edx + 0x4985a8]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x35], al
and ecx, 0x800000ff
jns 0x413cc8
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 8
jl 0x413cab
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2d], 0
cmovae eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x35]
push eax
lea eax, [ebp - 0x670]
push eax
call fcn.00412ff0
lea edx, [ebp - 0x670]
add esp, 0xc
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x413cf9
lea edi, [ebp - 0x270]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x413d09
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
xor edx, edx
rep movsb byte es:[edi], byte [esi]
mov ecx, 0xfb
mov al, byte [edx + 0x4985a4]
xor al, cl
inc ecx
mov byte [ebp + edx + 9], al
and ecx, 0x800000ff
jns 0x413d43
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 2
jl 0x413d26
lea edx, [ebp + 9]
mov byte [ebp + 0xb], 0
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x413d52
lea edi, [ebp - 0x270]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x413d62
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
xor edx, edx
rep movsb byte es:[edi], byte [esi]
mov ecx, 0xbb
mov al, byte [edx + 0x4985f0]
xor al, cl
inc ecx
mov byte [ebp + edx + 9], al
and ecx, 0x800000ff
jns 0x413d9c
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 2
jl 0x413d7f
lea edx, [ebp + 9]
mov byte [ebp + 0xb], 0
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x413dab
lea edi, [ebp - 0x270]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x413dbb
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x270]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413dda
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x270]
push 0
sub ecx, edx
push ecx
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
xor esi, esi
lea eax, [ebp - 0x470]
push 0x200
push esi
push eax
mov dword [ebp + 8], esi
call fcn.004663d0
add esp, 0xc
lea eax, [ebp - 0x470]
push esi
push 0x200
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jle 0x413e82
add esi, edi
push esi
push ebx
call fcn.0046eddf
mov ecx, dword [ebp + 8]
mov ebx, eax
push edi
lea eax, [ebp - 0x470]
add ecx, ebx
push eax
push ecx
call fcn.00465de0
add esp, 0x14
mov dword [ebp + 8], esi
mov edi, 0x200
lea eax, [ebp - 0x470]
push edi
push 0
push eax
call fcn.004663d0
add esp, 0xc
lea eax, [ebp - 0x470]
push 0
push edi
push eax
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jg 0x413e2b
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp - 0x10]
or ebx, 0xffffffff
push str._r_n_r_n
push edi
call fcn.004657a0
pop ecx
pop ecx
test eax, eax
jne 0x413eaa
push str._n_r_n_r
push edi
call fcn.004657a0
pop ecx
pop ecx
test eax, eax
je 0x413eb1
mov ebx, eax
sub ebx, edi
add ebx, 4
sub esi, ebx
mov dword [ebp + 8], esi
lea eax, [esi + 1]
push eax
call fcn.0044d9ba
pop ecx
mov ecx, dword [ebp - 0x10]
mov edi, eax
push esi
add ecx, ebx
push ecx
push edi
call fcn.00465de0
add esp, 0xc
mov byte [edi + esi], 0
lea ecx, [ebx + 1]
push ecx
call fcn.0044d9ba
pop ecx
push ebx
push dword [ebp - 0x10]
mov esi, eax
push esi
call fcn.0046edf0
mov byte [ebx + esi], 0
add esp, 0xc
xor ebx, ebx
inc ebx
push ebx
push dword [ebp - 0x10]
call fcn.0044d8a2
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
push dword [ebp - 0x14]
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
call dword [sym.imp.WS2_32.dll_closesocket]
push 0
push ebx
lea ecx, [ebp - 0x6c]
call fcn.00402cee
push 0
push ebx
lea ecx, [ebp - 0x54]
call fcn.00402cee
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00402cee
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc