Function at 0x100635e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
mov eax, dword [0x101a8cb0]
xor eax, ebp
mov dword [ebp - 0x10c], eax
push esi
cmp dword [ebp + 0xc], 0
jne 0x1006363c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x86], 0
jbe 0x1006361a
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x86]
mov dword [ebp - 0x2cc], edx
jmp 0x1006363a
cmp dword [0x101aa248], 0
jle 0x10063630
mov eax, dword [0x101aa248]
mov dword [ebp - 0x2cc], eax
jmp 0x1006363a
mov dword [ebp - 0x2cc], 0x1d4c0
jmp 0x10063645
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2cc], ecx
mov edx, dword [ebp + 8]
mov dword [edx], 0xffffffff
push 0x10
push 0
lea eax, [ebp - 0x1a0]
push eax
call fcn.1002a420
add esp, 0xc
mov ecx, 2
mov word [ebp - 0x1a0], cx
mov edx, dword [ebp + 8]
add edx, 6
push edx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov dword [ebp - 0x1bc], eax
cmp dword [ebp - 0x1bc], 0
jne 0x100636dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2d4], eax
mov eax, dword [ebp - 0x2d4]
push eax
push str.gethostbyname:__d
lea ecx, [ebp - 0x190]
push ecx
call fcn.10003cf0
add esp, 0xc
push 0xe1
push 0x101aa268
lea edx, [ebp - 0x190]
push edx
push 0x2bd
push 0x40003
call fcn.10002bc0
add esp, 0x14
mov eax, 0x2bd
jmp 0x10063c74
mov eax, dword [ebp - 0x1bc]
movsx ecx, word [eax + 0xa]
push ecx
mov edx, dword [ebp - 0x1bc]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x19c]
push edx
call fcn.10031ea0
add esp, 0xc
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 4]
push ecx
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x19e], ax
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x1ac], 0xffffffff
jne 0x1006376d
call fcn.10063410
mov word [ebp - 0x1c0], ax
push 0xeb
push 0x101aa274
movsx edx, word [ebp - 0x1c0]
push edx
push 0x2c0
push 0x40003
call fcn.100030a0
add esp, 0x14
mov eax, 0x2c0
jmp 0x10063c74
mov dword [ebp - 0x1b0], 1
lea eax, [ebp - 0x1b0]
push eax
push 0x8004667e
mov ecx, dword [ebp - 0x1ac]
push ecx
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
push 0x10
lea edx, [ebp - 0x1a0]
push edx
mov eax, dword [ebp - 0x1ac]
push eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x10063aae
mov dword [ebp - 0x2d8], 0
call fcn.10004150
mov ecx, eax
mov esi, edx
mov eax, dword [ebp - 0x2cc]
cdq
add ecx, eax
adc esi, edx
mov dword [ebp - 0x2e0], ecx
mov dword [ebp - 0x2dc], esi
call fcn.10004150
mov dword [ebp - 0x2f8], eax
mov dword [ebp - 0x2f4], edx
mov edx, dword [ebp - 0x2f4]
cmp edx, dword [ebp - 0x2dc]
jg 0x10063a75
jl 0x10063810
mov eax, dword [ebp - 0x2f8]
cmp eax, dword [ebp - 0x2e0]
jae 0x10063a75
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x2e4], 0
jmp 0x10063835
mov ecx, dword [ebp - 0x2e4]
add ecx, 1
mov dword [ebp - 0x2e4], ecx
mov edx, dword [ebp - 0x2e4]
cmp edx, dword [ebp - 0x108]
jae 0x1006385c
mov eax, dword [ebp - 0x2e4]
mov ecx, dword [ebp + eax*4 - 0x104]
cmp ecx, dword [ebp - 0x1ac]
jne 0x1006385a
jmp 0x1006385c
jmp 0x10063826
mov edx, dword [ebp - 0x2e4]
cmp edx, dword [ebp - 0x108]
jne 0x10063895
cmp dword [ebp - 0x108], 0x40
jae 0x10063895
mov eax, dword [ebp - 0x2e4]
mov ecx, dword [ebp - 0x1ac]
mov dword [ebp + eax*4 - 0x104], ecx
mov edx, dword [ebp - 0x108]
add edx, 1
mov dword [ebp - 0x108], edx
xor eax, eax
jne 0x1006381a
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2e8], 0
jmp 0x100638be
mov ecx, dword [ebp - 0x2e8]
add ecx, 1
mov dword [ebp - 0x2e8], ecx
mov edx, dword [ebp - 0x2e8]
cmp edx, dword [ebp - 0x2c8]
jae 0x100638e5
mov eax, dword [ebp - 0x2e8]
mov ecx, dword [ebp + eax*4 - 0x2c4]
cmp ecx, dword [ebp - 0x1ac]
jne 0x100638e3
jmp 0x100638e5
jmp 0x100638af
mov edx, dword [ebp - 0x2e8]
cmp edx, dword [ebp - 0x2c8]
jne 0x1006391e
cmp dword [ebp - 0x2c8], 0x40
jae 0x1006391e
mov eax, dword [ebp - 0x2e8]
mov ecx, dword [ebp - 0x1ac]
mov dword [ebp + eax*4 - 0x2c4], ecx
mov edx, dword [ebp - 0x2c8]
add edx, 1
mov dword [ebp - 0x2c8], edx
xor eax, eax
jne 0x100638a3
mov dword [ebp - 0x1b8], 1
mov dword [ebp - 0x1b4], 0
lea ecx, [ebp - 0x1b8]
push ecx
lea edx, [ebp - 0x2c8]
push edx
lea eax, [ebp - 0x108]
push eax
push 0
mov ecx, dword [ebp - 0x1ac]
add ecx, 1
push ecx
call dword [sym.imp.WSOCK32.dll_select]
mov dword [ebp - 0x2d8], eax
cmp dword [ebp - 0x2d8], 0
jle 0x10063a18
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x1ac]
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x1006398c
jmp 0x10063a75
lea ecx, [ebp - 0x2c8]
push ecx
mov edx, dword [ebp - 0x1ac]
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x10063a16
mov dword [ebp - 0x2ec], 0
mov dword [ebp - 0x2f0], 4
lea eax, [ebp - 0x2f0]
push eax
lea ecx, [ebp - 0x2ec]
push ecx
push 0x1007
push 0xffff
mov edx, dword [ebp - 0x1ac]
push edx
call dword [sym.imp.WSOCK32.dll_getsockopt]
mov eax, dword [ebp - 0x1ac]
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
push 0x114
push 0x101aa280
mov ecx, dword [ebp - 0x2ec]
push ecx
push 0x2be
push 0x40003
call fcn.100030a0
add esp, 0x14
mov eax, 0x2be
jmp 0x10063c74
jmp 0x10063a68
cmp dword [ebp - 0x2d8], 0
jge 0x10063a68
call fcn.10063410
mov word [ebp - 0x1c0], ax
mov edx, dword [ebp - 0x1ac]
push edx
call dword [sym.imp.WSOCK32.dll_closesocket]
push 0x11c
push 0x101aa28c
movsx eax, word [ebp - 0x1c0]
push eax
push 0x2d1
push 0x40003
call fcn.100030a0
add esp, 0x14
mov eax, 0x2d1
jmp 0x10063c74
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100637d9
cmp dword [ebp - 0x2d8], 0
jg 0x10063aae
mov ecx, dword [ebp - 0x1ac]
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
push 0x126
push 0x101aa298
push 0xf
push 0x40003
call fcn.10002e30
add esp, 0x10
mov eax, 0xf
jmp 0x10063c74
mov dword [ebp - 0x1b0], 0
lea edx, [ebp - 0x1b0]
push edx
push 0x8004667e
mov eax, dword [ebp - 0x1ac]
push eax
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
mov ecx, 1
mov word [ebp - 0x1a8], cx
mov edx, 5
mov word [ebp - 0x1a6], dx
push 4
lea eax, [ebp - 0x1a8]
push eax
push 0x80
push 0xffff
mov ecx, dword [ebp - 0x1ac]
push ecx
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x10063b5e
call fcn.10063410
mov word [ebp - 0x1c0], ax
mov edx, dword [ebp - 0x1ac]
push edx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov eax, dword [ebp + 8]
mov dword [eax], 0xffffffff
push 0x138
push 0x101aa2a4
movsx ecx, word [ebp - 0x1c0]
push ecx
push 0x2c8
push 0x40003
call fcn.100030a0
add esp, 0x14
mov eax, 0x2c8
jmp 0x10063c74
mov dword [ebp - 0x1a4], 0x4000
mov edx, 4
mov word [ebp - 0x2d0], dx
movsx eax, word [ebp - 0x2d0]
push eax
lea ecx, [ebp - 0x1a4]
push ecx
push 0x1001
push 0xffff
mov edx, dword [ebp - 0x1ac]
push edx
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x10063bef
call fcn.10063410
mov word [ebp - 0x1c0], ax
mov eax, dword [ebp - 0x1ac]
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
mov ecx, dword [ebp + 8]
mov dword [ecx], 0xffffffff
push 0x144
push 0x101aa2b0
movsx edx, word [ebp - 0x1c0]
push edx
push 0x2c9
push 0x40003
call fcn.100030a0
add esp, 0x14
mov eax, 0x2c9
jmp 0x10063c74
movsx eax, word [ebp - 0x2d0]
push eax
lea ecx, [ebp - 0x1a4]
push ecx
push 0x1002
push 0xffff
mov edx, dword [ebp - 0x1ac]
push edx
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x10063c67
call fcn.10063410
mov word [ebp - 0x1c0], ax
mov eax, dword [ebp - 0x1ac]
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
mov ecx, dword [ebp + 8]
mov dword [ecx], 0xffffffff
push 0x14d
push 0x101aa2bc
movsx edx, word [ebp - 0x1c0]
push edx
push 0x2ca
push 0x40003
call fcn.100030a0
add esp, 0x14
mov eax, 0x2ca
jmp 0x10063c74
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1ac]
mov dword [eax], ecx
xor eax, eax
pop esi
mov ecx, dword [ebp - 0x10c]
xor ecx, ebp
call fcn.1002aab0
mov esp, ebp
pop ebp
ret