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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x641e8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6d0
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x700724
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x41081c
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x41081c
mov ecx, ebx
call fcn.00404180
test eax, eax
jne 0x41051b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41081c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], 0
cmp eax, 0x20009140
jne 0x410539
mov ecx, dword [ebp + 0x1c]
push ecx
mov ecx, ebx
call fcn.0040f100
jmp 0x410551
cmp eax, 0x20009141
sete dl
mov byte [ebp + 0x10], dl
mov eax, dword [ebp + 0x10]
push eax
push edi
push esi
mov ecx, ebx
call fcn.0040edd0
mov eax, dword [ebx + 0x2f44]
xor edi, edi
cmp eax, edi
jne 0x410567
push 0x80004003
call fcn.0060f000
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push eax
mov eax, dword [ecx + 0x88]
call eax
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040bdf0
mov byte [ebp - 4], 4
push 0x66ef44
push 0x66eb64
lea ecx, [ebp - 0x14]
call fcn.00408990
push 2
push 0x66eb64
lea ecx, [ebp - 0x14]
call fcn.00408e10
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
mov edx, dword [ebx + 0x48]
push edi
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x4105df
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004014a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004014a0
jmp 0x410842
mov eax, dword [ebx + 0x48]
inc dword [ebx + 0x2f40]
push edi
push 0x400
push 0x70e5d0
push eax
mov dword [ebp + 0x14], edi
mov dword [ebp + 0x10], edi
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
je 0x4106eb
jmp 0x410610
test esi, esi
je 0x410713
cmp dword [ebp + 0x14], 0
jne 0x410658
movzx eax, byte [0x70e5d0]
movzx ecx, byte [0x70e5d1]
movzx edx, byte [0x70e5d2]
shl eax, 8
add eax, ecx
movzx ecx, byte [0x70e5d3]
shl eax, 8
add eax, edx
shl eax, 8
add eax, ecx
mov edi, 4
mov dword [ebp + 0x14], eax
cmp esi, edi
je 0x4106c9
sub dword [ebp + 0x10], edi
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
mov byte [esi + 0x70e5d0], 0
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 7
lea ecx, [edi + 0x70e5d0]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00405830
mov byte [ebp - 4], 8
mov edi, dword [ebp - 0x1c]
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [ebp - 0x10]
call fcn.00401710
mov byte [ebp - 4], 4
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4106bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp + 0x10], eax
cmp eax, dword [ebp + 0x14]
je 0x410713
mov ecx, dword [ebx + 0x48]
xor edi, edi
push edi
push 0x400
push 0x70e5d0
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x410610
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41070e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41081c
cmp dword [ebp + 8], 0x20009140
je 0x4107bb
lea ecx, [ebp - 0x6dc]
call fcn.0052c7c0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebx + 0x50]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp + 8]
call fcn.0040aab0
mov bl, 0xb
mov byte [ebp - 4], bl
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov esi, esp
mov dword [ebp + 0x10], esp
push eax
mov dword [ebp + 0x14], esi
call fcn.004011f0
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x6dc]
call fcn.00405170
mov edx, dword [ebp + 0x1c]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x6dc]
call fcn.00531500
mov byte [ebp - 4], 0xa
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4107ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x6dc]
call fcn.0052c630
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4107de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410804
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410842
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x18