Function at 0x1005d150
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 0x100cf7f5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
push esi
push edi
mov eax, dword [0x100fd230]
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 0x1005d1b6
cmp eax, 0x17
jne 0x1005d1fc
cmp byte [ebx + 0x14], 0
je 0x1005d232
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 0x1005d1e0
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.1005ce60
mov edi, eax
add esp, 0x2c
test edi, edi
jne 0x1005d2e5
xor al, al
mov ecx, dword [ebx + 0x3c]
mov byte [ebp - 0x11], al
test ecx, ecx
je 0x1005d21c
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 0x100d971e
push 0x58
call fcn.1008fb1b
mov edi, eax
add esp, 8
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x1005d1fc
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 0x1005d273
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.10059b50
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 0x1005d2db
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 0x1005d1fc
jmp 0x1005d2e8
mov esi, dword [ebp - 0x24]
cmp dword [esi + 0x58], 2
lea eax, [edi + 0x4c]
mov ecx, dword [esi + 0xc]
push 0
push edi
jne 0x1005d355
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 0x1005d359
cmp eax, 0x3e5
je 0x1005d359
test edi, edi
je 0x1005d1fc
mov ecx, dword [edi + 0x44]
lea esi, [edi + 0x20]
test ecx, ecx
je 0x1005d345
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.1008f79d
add esp, 8
jmp 0x1005d1fc
push 0x1c
jmp 0x1005d2f9
mov al, 1
jmp 0x1005d1fe