Function at 0x1005b3f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d1035
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
push esi
push edi
mov eax, dword [0x100ff230]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24], esi
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x58]
cmp eax, 2
je 0x1005b456
cmp eax, 0x17
jne 0x1005b49c
cmp byte [ebx + 0x14], 0
je 0x1005b4d2
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x18], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 1
mov ecx, dword [ebx + 0x3c]
test ecx, ecx
je 0x1005b480
mov eax, dword [ecx]
push esi
mov eax, dword [eax]
call eax
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x1c]
mov edx, edi
push eax
mov byte [ebp - 4], 0
call fcn.1005b100
mov edi, eax
add esp, 0x2c
test edi, edi
jne 0x1005b585
xor al, al
mov ecx, dword [ebx + 0x3c]
mov byte [ebp - 0x11], al
test ecx, ecx
je 0x1005b4bc
mov esi, dword [ecx]
lea eax, [ebx + 0x18]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x38
push 0x100db776
push 0x58
call fcn.10091cf8
mov edi, eax
add esp, 8
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x1005b49c
lea eax, [ebp - 0x50]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebx + 0x3c]
test ecx, ecx
je 0x1005b513
mov eax, dword [ecx]
lea edx, [ebp - 0x50]
push edx
mov eax, dword [eax]
call eax
mov dword [ebp - 0x2c], eax
lea ecx, [edi + 0x20]
mov dword [ecx + 0x24], 0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x50]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
push eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
call fcn.10057df0
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x50], eax
mov eax, dword [ebp - 0x1c]
mov byte [edi + 0x48], 0
mov dword [edi + 0x4c], eax
mov dword [edi + 0x54], 0
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x1005b57b
mov edx, dword [ecx]
lea eax, [ebp - 0x50]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x2c], 0
test edi, edi
je 0x1005b49c
jmp 0x1005b588
mov esi, dword [ebp - 0x24]
cmp dword [esi + 0x58], 2
lea eax, [edi + 0x4c]
mov ecx, dword [esi + 0xc]
push 0
push edi
jne 0x1005b5f5
push 0x10
push dword [ebp - 0x20]
push 0
push 0
push 1
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSASendTo]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, 0xffffffff
jne 0x1005b5f9
cmp eax, 0x3e5
je 0x1005b5f9
test edi, edi
je 0x1005b49c
mov ecx, dword [edi + 0x44]
lea esi, [edi + 0x20]
test ecx, ecx
je 0x1005b5e5
mov edx, dword [ecx]
cmp ecx, esi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [esi + 0x24], 0
push 0x58
push edi
call fcn.1009197a
add esp, 8
jmp 0x1005b49c
push 0x1c
jmp 0x1005b599
mov al, 1
jmp 0x1005b49e