Function at 0x10043ff0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Convert ip address from string
Create tcp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dd339
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x1010f16c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xa4], edi
lea eax, [edi + 0x8c]
mov byte [edi + 0x58], 1
push eax
lea ecx, [ebp - 0x60]
call fcn.100180e0
mov dword [ebp - 4], 0
cmp byte [0x10115ce1], 0
movzx eax, word [edi + 0xa4]
mov esi, dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x8c], eax
jne 0x1004407f
push 0x10115f38
push 0x202
call esi
movzx ecx, byte [0x10115ce1]
test eax, eax
mov eax, 1
cmove ecx, eax
mov byte [0x10115ce1], cl
lea ecx, [ebp - 0xb8]
call fcn.10048070
mov byte [ebp - 4], 1
cmp byte [0x10115ce1], 0
jne 0x100440ba
push 0x10115f38
push 0x202
call esi
movzx ecx, byte [0x10115ce1]
test eax, eax
mov eax, 1
cmove ecx, eax
mov byte [0x10115ce1], cl
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
push 1
push 2
movups xmmword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x3c], xmm0
movq qword [ebp - 0x2c], xmm0
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x10044143
push dword [ebp - 0x8c]
mov eax, 2
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [ebp - 0x4c], 0x10
lea ecx, [ebp - 0x1c]
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x60]
cmovae eax, dword [ebp - 0x60]
push ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1004413c
nop dword [eax]
push 0x10
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x10044146
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 4
je 0x10044120
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or esi, 0xffffffff
push 4
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 1
push eax
push 1
push 6
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
mov byte [ebp - 4], 2
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0x100f5da8
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xb8]
mov edx, esi
push eax
lea eax, [ebp - 0x48]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0xa8], esp
push 0
call fcn.100383b0
add esp, 4
mov byte [ebp - 4], 5
mov byte [ebp - 4], 4
mov edx, 0x100000
lea ecx, [ebp - 0xb0]
call fcn.1003c7a0
add esp, 0x10
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x100441ff
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x48]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xa0]
call fcn.10051580
mov eax, dword [ebp - 0xa4]
or edi, 0xffffffff
cmp word [eax + 0xa4], 0
je 0x100444af
mov dword [ebp - 0xa8], 1
nop
mov ecx, dword [ebp - 0xb8]
push 0
push 0xa
call fcn.10039050
call fcn.1007b2a4
mov edi, eax
mov esi, edx
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x8c], esi
call fcn.1007b28d
push ebx
push esi
push edi
push edx
push eax
call fcn.100d2920
mov edi, ebx
pop ebx
push 0
push 0x3b9aca00
push edx
push eax
mov esi, ecx
call fcn.100918b0
push 0
push 0x3b9aca00
push edi
push esi
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x90], edx
call fcn.100918b0
push dword [ebp - 0x8c]
push dword [ebp - 0x94]
push edx
push eax
call fcn.100d2870
add eax, dword [ebp - 0x98]
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0xa0]
adc edx, dword [ebp - 0x90]
mov dword [ebp - 0xc4], edx
lea edx, [ebp - 0xc8]
push eax
call fcn.10047980
add esp, 4
lea edx, [ebp - 0xa8]
call fcn.1004ae50
test al, al
jne 0x10044498
push 0x18
push 2
lea ecx, [ebp - 0x38]
call fcn.10041ac0
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push dword [ebp - 0x2c]
mov dword [ebp - 0x24], edx
lea ecx, [ebp - 0xc0]
lea edx, [ebp - 0x38]
mov dword [ebp - 0x28], eax
call fcn.1003c6b0
add esp, 4
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
test ecx, ecx
je 0x10044344
lock inc dword [ecx + 4]
mov ecx, dword [ebp - 0xbc]
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
je 0x10044376
lock inc dword [ecx + 4]
mov ecx, dword [ebp - 0xac]
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x64], 0
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x88]
call fcn.1004edd0
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x20]
call fcn.1002f160
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x88]
mov ecx, dword [ebp - 0xb8]
push eax
call fcn.10039370
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x64]
test ecx, ecx
je 0x100443ea
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x88]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x64], 0
call fcn.1007b2a4
mov edi, eax
mov esi, edx
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x90], esi
call fcn.1007b28d
push ebx
push esi
push edi
push edx
push eax
call fcn.100d2920
mov edi, ebx
pop ebx
push 0
push 0x3b9aca00
push edx
push eax
mov esi, ecx
call fcn.100918b0
push 0
push 0x3b9aca00
push edi
push esi
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x8c], edx
call fcn.100918b0
push dword [ebp - 0x90]
push dword [ebp - 0x98]
push edx
push eax
call fcn.100d2870
add eax, dword [ebp - 0x94]
mov dword [ebp - 0xa0], eax
adc edx, dword [ebp - 0x8c]
mov dword [ebp - 0x9c], edx
mov byte [ebp - 4], 9
or edi, 0xffffffff
mov esi, dword [ebp - 0xbc]
test esi, esi
je 0x1004449b
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1004449b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x1004449b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
jmp 0x1004449b
or edi, 0xffffffff
mov eax, dword [ebp - 0xa4]
cmp word [eax + 0xa4], 0
jne 0x10044230
mov ecx, dword [ebp - 0xb0]
call fcn.1003ced0
mov ecx, dword [ebp - 0xb8]
push 0
push 0x14
call fcn.10039050
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0xac]
test esi, esi
je 0x100444f6
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100444f6
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x100444f6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0xb4]
test esi, esi
je 0x10044522
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10044522
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x10044522
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x10044559
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1004454f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10044587
push edx
push ecx
call fcn.1009091b
add esp, 8
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100908e7
mov esp, ebp
pop ebp
ret
call fcn.100abcda
int3