Function at 0x10097e70
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x10
call fcn.100b8c3f
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
add ebx, 0xc
push ebx
push 0x10
call fcn.100b8c3f
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x100d5d03
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
mov eax, dword [0x100e6a51]
and eax, 1
xor eax, 1
test eax, eax
je 0x10097efb
mov eax, 0
jmp 0x1009852c
mov dword [ebp - 0x14], esp
push 1
push 0
push 0
push 6
push 1
push 2
xor eax, eax
call dword [sym.imp.WS2_32.dll_WSASocketA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x10097f42
push 0x77
push 0x406066a
push 6
call fcn.100b8c4b
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10097f59
mov eax, 0
jmp 0x1009852c
call fcn.10098550
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10097fa1
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.WS2_32.dll_closesocket]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x10097f97
push 0x177
push 0x406066a
push 6
call fcn.100b8c4b
add esp, 0xc
mov eax, 0
jmp 0x1009852c
mov ebx, dword [0x100e6a61]
call fcn.100020b9
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x10097fcb
push 0x1c2
push 0x406066a
push 4
call fcn.100b8c4b
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10097fe8
push 0x1c2
push 0x406066a
push 1
call fcn.100b8c4b
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov ebx, dword [0x100e6a69]
call fcn.100020b9
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x10098022
push 0x1ea
push 0x406066a
push 4
call fcn.100b8c4b
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x1009803f
push 0x1ea
push 0x406066a
push 1
call fcn.100b8c4b
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 1
mov ebx, dword [0x100e6a65]
call fcn.100020b9
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x1009807a
push 0x20e
push 0x406066a
push 4
call fcn.100b8c4b
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10098097
push 0x20e
push 0x406066a
push 1
call fcn.100b8c4b
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov ebx, dword [0x100e6a5d]
call fcn.100020b9
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x100980d1
push 0x236
push 0x406066a
push 4
call fcn.100b8c4b
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x100980ee
push 0x236
push 0x406066a
push 1
call fcn.100b8c4b
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov word [ebx], 2
mov ebx, dword [ebp - 0xc]
add ebx, 8
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 0x10]
push dword [ebx]
xor eax, eax
call dword [sym.imp.WS2_32.dll_inet_addr]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x10098143
push 0x2bb
push 0x406066a
push 6
call fcn.100b8c4b
add esp, 0xc
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esp
push dword [ebp + 0x14]
xor eax, eax
call dword [sym.imp.WS2_32.dll_htons]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x1009817d
push 0x2f8
push 0x406066a
push 6
call fcn.100b8c4b
add esp, 0xc
mov ebx, dword [ebp - 0x14]
mov word [ebx], ax
mov dword [ebp - 0x14], esp
push 0x10
mov eax, dword [ebp - 0xc]
push eax
push 0x10
call fcn.100b8c3f
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 8
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.WS2_32.dll_connect]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x10098205
push 0x33f
push 0x406066a
push 6
call fcn.100b8c4b
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x18]
push ebx
mov edi, dword [ebp - 0x1c]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 1
mov eax, 2
call fcn.100b96f0
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x1009825c
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x1009825a
imul eax, dword [edi]
jmp 0x1009824f
mov ecx, eax
cmp ecx, 8
jle 0x10098266
mov ecx, 8
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 8
call fcn.100b8c45
add esp, 4
pop eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10098345
call fcn.100985f7
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10098345
mov ebx, dword [0x100e6a65]
call fcn.100020b9
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x100982c4
push 0x416
push 0x406066a
push 4
call fcn.100b8c4b
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x100982e1
push 0x416
push 0x406066a
push 1
call fcn.100b8c4b
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esp
push 0
push dword [ebp - 8]
push dword [0x100e6a55]
mov ebx, dword [ebp - 0x14]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x10098325
push 0x416
push 0x406066a
push 6
call fcn.100b8c4b
add esp, 0xc
push 1
push dword [ebp - 0x10]
call fcn.10098780
push dword [ebp - 0x10]
push dword [ebp - 8]
call fcn.1002d236
mov eax, dword [ebp - 8]
jmp 0x1009852c
mov ebx, dword [0x100e6a65]
call fcn.100020b9
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x1009836f
push 0x4d2
push 0x406066a
push 4
call fcn.100b8c4b
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x1009838c
push 0x4d2
push 0x406066a
push 1
call fcn.100b8c4b
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp - 0x14]
push dword [ebx]
xor eax, eax
call dword [sym.imp.WS2_32.dll_closesocket]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x100983c2
push 0x4d2
push 0x406066a
push 6
call fcn.100b8c4b
add esp, 0xc
mov ebx, dword [0x100e6a61]
call fcn.100020b9
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x100983ec
push 0x4f3
push 0x406066a
push 4
call fcn.100b8c4b
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10098409
push 0x4f3
push 0x406066a
push 1
call fcn.100b8c4b
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 0
mov ebx, dword [0x100e6a65]
call fcn.100020b9
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x10098444
push 0x51d
push 0x406066a
push 4
call fcn.100b8c4b
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10098461
push 0x51d
push 0x406066a
push 1
call fcn.100b8c4b
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 0
mov ebx, dword [0x100e6a5d]
call fcn.100020b9
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x1009849c
push 0x547
push 0x406066a
push 4
call fcn.100b8c4b
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x100984b9
push 0x547
push 0x406066a
push 1
call fcn.100b8c4b
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 0
mov ebx, dword [0x100e6a69]
call fcn.100020b9
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x100984f4
push 0x571
push 0x406066a
push 4
call fcn.100b8c4b
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10098511
push 0x571
push 0x406066a
push 1
call fcn.100b8c4b
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 0
mov eax, 0
jmp 0x1009852c
push eax
mov ebx, dword [ebp - 0xc]
push ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.100b8c45
add esp, 4
pop ebx
call fcn.100b8c45
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10