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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
xor eax, eax
push esi
push edi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x14], eax
mov dword [ebx + 4], eax
cmp byte [ebx + 0x502a], al
je 0x43f1ff
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov dword [esp + 0x18], eax
cmp dword [ebx], 0
jge 0x43f258
mov edi, ebx
call fcn.0043f830
test al, al
je 0x43f3f2
mov ecx, ebx
call fcn.0043f420
lea ecx, [ebx + 8]
mov dword [esp + 0xc], eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x43f228
sub ecx, esi
mov dword [ebx + 4], ecx
test eax, eax
je 0x43f258
mov eax, dword [ebx]
test eax, eax
js 0x43f24b
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx], 0xffffffff
mov dword [esp + 0x14], 0xfffffffe
jmp 0x43f3ab
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebx + 0x2809], eax
mov dword [ebx + 0x2815], eax
mov dword [ebx + 0x2819], eax
mov dword [ebx + 0x281d], eax
mov dword [ebx + 0x2821], eax
mov dword [ebx + 0x2825], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x280d], eax
mov dword [ebx + 0x2811], ecx
test edi, edi
jle 0x43f2ab
mov edx, dword [ebp + 0x10]
push edi
push edx
lea eax, [ebx + 0x282d]
push eax
call fcn.0057fd90
add esp, 0xc
mov ecx, dword [ebx]
mov dword [ebx + 0x2829], edi
add edi, 0x24
xor esi, esi
mov dword [esp + 0x1c], ecx
test edi, edi
jle 0x43f2e4
mov ecx, dword [esp + 0x1c]
push 0
mov edx, edi
sub edx, esi
push edx
lea eax, [ebx + esi + 0x2809]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x43f2e4
add esi, eax
cmp esi, edi
jl 0x43f2c0
cmp esi, edi
je 0x43f304
mov eax, dword [ebx]
test eax, eax
js 0x43f3ab
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx], 0xffffffff
jmp 0x43f3ab
mov edi, dword [ebx]
xor esi, esi
push 0
mov edx, 0x108
sub edx, esi
push edx
lea eax, [esi + ebx + 8]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x43f32c
add esi, eax
cmp esi, 0x108
jl 0x43f308
cmp esi, 0x108
jne 0x43f2e8
lea esi, [ebx + 0x10]
lea edi, [ebx + 0x502b]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0xc]
mov edi, dword [ebx]
xor esi, esi
mov dword [ebx + 0x5134], ecx
mov dword [esp + 0x10], esi
push 0
mov edx, 4
sub edx, esi
push edx
lea eax, [esp + esi + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x43f376
add esi, eax
cmp esi, 4
jl 0x43f355
cmp esi, 4
jne 0x43f2e8
mov edi, dword [esp + 0x10]
mov esi, edi
test edi, edi
je 0x43f400
cmp edi, 0x2800
ja 0x43f3bd
mov ecx, dword [ebx]
lea eax, [ebx + 8]
push eax
push ecx
call fcn.00440250
add esp, 8
cmp eax, esi
je 0x43f3fc
mov esi, ebx
call fcn.0043f810
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, 2
jl 0x43f203
cmp dword [esp + 0xc], 0
je 0x43f3e6
mov eax, dword [ebx]
mov edx, dword [esp + 0x14]
mov byte [ebx + 0x502a], 1
mov dword [esp + 0xc], edx
test eax, eax
js 0x43f3e6
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx], 0xffffffff
mov eax, dword [esp + 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov dword [esp + 0x14], 0xffffffff
jmp 0x43f3bd
mov edi, dword [esp + 0x10]
mov dword [ebx + 4], edi
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10