Function at 0x100343b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x1004f1b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, dword [0x1005d330]
push ebx
push ebp
push esi
push edi
push 0x10067d3c
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], eax
call fcn.100047c0
mov ebx, dword [sym.imp.WS2_32.dll_socket]
mov ebp, dword [sym.imp.WS2_32.dll_htons]
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x14], eax
lea esp, [esp]
lea eax, [esp + 0x14]
push eax
push 0x100507b4
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
call fcn.1000d300
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x10034515
push 0
push 1
push 2
call ebx
push 0x50
mov edi, eax
mov dword [esp + 0x20], 0x10
mov word [esp + 0x24], 2
call ebp
push esi
mov word [esp + 0x26], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
jne 0x10034485
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x1003447a
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x100344b2
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [esp + 0x24], edx
push 0x10
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x10034531
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100344bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp dword [esp + 0x14], 0xffffffff
jne 0x10034400
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [0x10067d04], 0
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100344f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x34]
pop ebx
call fcn.10036c09
add esp, 0x40
ret
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100344c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x100344c7
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
mov edx, dword [esp + 0x34]
push edi
mov dword [0x10067d04], edx
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1003456d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10034593
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
jmp 0x100344f9