Function at 0x10001560
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create thread
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x100141c0]
xor eax, ebp
mov dword [ebp - 8], eax
cmp byte [esi + 0x3c], 0
push ebx
mov ebx, ecx
push edi
mov dword [ebp - 0x38], ebx
jne 0x100016e6
cmp dword [esi + 0x54], 0
lea edi, [esi + 0x54]
mov byte [esi + 0x3c], 0
je 0x100015e1
push 0
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esi + 0x38]
push 4
lea edx, [ebp - 0x34]
push edx
push 0x80
push 0xffff
push eax
mov dword [ebp - 0x34], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [esi + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov edx, dword [esi + 0x38]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esi + 0x50], eax
xor eax, eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
mov word [esi + 0x64], ax
mov edx, dword [esi + 0x50]
mov eax, dword [esi + 0x54]
push 6
push 1
push 2
mov dword [esi + 0x5c], edx
mov dword [esi + 0x60], eax
mov word [esi + 0x64], 0x99
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x38], eax
cmp eax, 0xffffffff
je 0x100016e6
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
lea ecx, [ebx + 1]
push ecx
call fcn.10002db4
mov edx, dword [ebp - 0x38]
add esp, 4
push 0
push 0
push ebx
mov edi, eax
push edi
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov eax, dword [ebp - 0x38]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
mov byte [edi + ebx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 0xc]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
test edi, edi
je 0x100016a9
push edi
call fcn.100034a9
add esp, 4
mov eax, dword [ebp + 8]
mov edx, 2
push eax
mov word [ebp - 0x28], dx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x26], ax
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov ecx, dword [esi + 0x38]
push 0x10
lea eax, [ebp - 0x28]
push eax
push ecx
mov dword [ebp - 0x24], edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100016fa
mov edx, dword [esi + 0x38]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop edi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10002dbf
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0x38]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 0x30]
push eax
push 0x1001
push 0xffff
mov ebx, 0xfa000
push ecx
mov dword [ebp - 0x30], ebx
call edi
mov eax, dword [esi + 0x38]
push 4
lea edx, [ebp - 0x30]
push edx
push 0x1002
push 0xffff
push eax
mov dword [ebp - 0x30], ebx
call edi
mov edx, dword [esi + 0x38]
push 4
lea ecx, [ebp - 0x3c]
push ecx
push 0x1006
push 0xffff
push edx
mov dword [ebp - 0x3c], 0x7530
call edi
mov ecx, dword [esi + 0x38]
push 4
lea eax, [ebp - 0x40]
push eax
push 8
push 0xffff
mov ebx, 1
push ecx
mov dword [ebp - 0x40], ebx
call edi
xor edi, edi
test eax, eax
jne 0x100017a3
mov ecx, dword [esi + 0x38]
push edi
push edi
lea edx, [ebp - 0x44]
push edx
push edi
push edi
push 0xc
lea eax, [ebp - 0x14]
push eax
push 0x98000004
push ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0x2bf20
mov dword [ebp - 0xc], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push ebx
lea eax, [esi + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esi + 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2c], edi
cmp eax, edi
je 0x100017c4
push eax
call ebx
mov dword [esi + 0x30], edi
mov eax, dword [esi + 0x34]
cmp eax, edi
je 0x100017d1
push eax
call ebx
mov dword [esi + 0x34], edi
lea edx, [ebp - 0x2c]
push edx
push edi
push esi
push 0x10001820
push edi
push edi
call fcn.10003409
mov dword [esi + 0x30], eax
lea eax, [ebp - 0x2c]
push eax
push edi
push esi
push 0x100019e0
push edi
push edi
mov dword [ebp - 0x2c], edi
call fcn.10003409
mov ecx, dword [ebp - 8]
add esp, 0x30
pop edi
mov dword [esi + 0x34], eax
xor ecx, ebp
mov al, 1
pop ebx
call fcn.10002dbf
mov esp, ebp
pop ebp
ret 4