Function at 0x10034940
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 0x1003496f
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 0x1003498b
mov dword [eax], 0xa
mov edx, dword [eax]
lea eax, [esp + 0x2c]
push edx
push str.0000_d
push eax
call fcn.10035dca
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 0x100349a9
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.10035dca
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.10035f05
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.10034e50
add esp, 0x28
test eax, eax
push ebp
jne 0x10034a7d
call fcn.10035e1c
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x168
ret
call fcn.10035e1c
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 0x10034b41
jne 0x10034ae7
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x14
mov dword [esp + 0x14], eax
jg 0x10034b5b
jmp 0x10034a99
mov ecx, dword [ebx + 0xc]
lea eax, [esp + 0x74]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10034a99
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 0x10034b23
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x10034b75
jmp 0x10034a99
cmp eax, esi
jge 0x10034b30
sub esi, eax
add ebp, eax
jmp 0x10034a99
test edi, edi
je 0x10034b8f
mov esi, dword [edi + 4]
mov ebp, dword [edi]
mov edi, dword [edi + 8]
jmp 0x10034a99
mov eax, dword [esp + 0x10]
push eax
call fcn.10034f70
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.10034f70
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.10034f70
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.10034f70
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x168
ret