Function at 0x100f5cc0
Capabilities:
Get socket status
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
sub esp, 0x168
mov eax, dword [esp + 0x170]
push ebx
push ebp
push esi
mov ebp, dword [eax]
mov ecx, dword [eax + 4]
test ebp, ebp
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], ebp
jg 0x100f5cef
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x168
ret
mov eax, dword [esp + 0x17c]
mov edx, dword [eax]
inc edx
mov ecx, edx
mov dword [eax], edx
cmp ecx, 0x270f
jle 0x100f5d0b
mov dword [eax], 0xa
mov edx, dword [eax]
lea eax, [esp + 0x2c]
push edx
push str.0000_d
push eax
call fcn.1012b7fd
lea esi, [esp + 0x38]
add esp, 0xc
xor edx, edx
sub esi, 4
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
inc edx
cmp edx, 4
mov cl, byte [ecx + edx - 1]
mov byte [esp + edx + 0x17], cl
jl 0x100f5d29
lea edx, [esp + 0x18]
mov byte [esp + 0x1c], al
push edx
lea eax, [esp + 0x1c]
push ebp
push eax
lea ecx, [esp + 0x4c]
push str._Msg_s__ld__Msg_s_
push ecx
call fcn.1012b7fd
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
add ebx, ebp
push ebx
call fcn.1012a05e
mov ebp, eax
lea edi, [esp + 0x58]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esp + 0x58]
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x30]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x58]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov esi, dword [esp + 0x2c]
dec ecx
mov edi, ecx
mov ecx, dword [esp + 0x38]
mov eax, ecx
add edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0
push ecx
push ebx
push ebp
push edx
call fcn.100f61d0
add esp, 0x28
test eax, eax
push ebp
jne 0x100f5dfd
call fcn.1012a024
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x168
ret
call fcn.1012a024
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x14], 0
mov esi, dword [eax + 4]
mov ebp, dword [eax]
mov edi, dword [eax + 8]
mov ebx, dword [esp + 0x17c]
mov ecx, 1
mov dword [esp + 0x74], ecx
mov dword [esp + 0x24], ecx
mov eax, dword [ebx + 0xc]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x78]
mov dword [esp + 0x7c], eax
push 0
push edx
inc eax
push 0
push eax
mov dword [esp + 0x3c], 0
call sub.WS2_32.dll_select
test eax, eax
jl 0x100f5ec1
jne 0x100f5e67
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x14
mov dword [esp + 0x14], eax
jg 0x100f5edb
jmp 0x100f5e19
mov ecx, dword [ebx + 0xc]
lea eax, [esp + 0x74]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100f5e19
mov edx, dword [ebx + 0xc]
push 0
push esi
push ebp
push edx
mov dword [esp + 0x24], 0
call sub.WS2_32.dll_send
test eax, eax
jge 0x100f5ea3
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x100f5ef5
jmp 0x100f5e19
cmp eax, esi
jge 0x100f5eb0
sub esi, eax
add ebp, eax
jmp 0x100f5e19
test edi, edi
je 0x100f5f0f
mov esi, dword [edi + 4]
mov ebp, dword [edi]
mov edi, dword [edi + 8]
jmp 0x100f5e19
mov eax, dword [esp + 0x10]
push eax
call fcn.100f62f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x168
ret
mov ecx, dword [esp + 0x10]
push ecx
call fcn.100f62f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x168
ret
mov edx, dword [esp + 0x10]
push edx
call fcn.100f62f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x168
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.100f62f0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x168
ret