Function at 0x44de4c
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x280
mov edi, edx
mov esi, ecx
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [esp + 0x278], eax
lea ebx, [esp + 0x60]
push 0x90
push 0xff
push ebx
call fcn.00645dd0
add esp, 0xc
mov eax, dword [esi]
mov dword [esp + 0x14], eax
xor eax, eax
dec eax
lea ecx, [esp + 0x24]
mov dword [ecx], eax
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0x4e], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
mov dword [esp + 0x20], eax
mov edx, dword [ebp + 8]
mov dword [edx], eax
push ecx
push ebx
push edi
push esi
call fcn.0044e708
add esp, 0x10
xor edi, edi
test eax, eax
jne 0x44e447
lea ecx, [esp + 0x70]
lea eax, [esp + 0x20]
lea ebx, [esp + 0x30]
push eax
push ebx
push ecx
call fcn.0044d2fb
add esp, 0xc
test al, al
je 0x44dffd
push ebx
push str.__Trying__s..._n
mov ebx, dword [esp + 0x1c]
push ebx
call fcn.0046235f
add esp, 0xc
cmp dword [esp + 0x60], 2
mov dword [esp + 8], esi
jne 0x44e03a
cmp dword [esp + 0x64], 1
jne 0x44e03a
cmp byte [ebx + 0x516], 0
mov edi, dword [esp + 0x24]
je 0x44df2e
push edi
push dword [esp + 0xc]
call fcn.0044dc01
add esp, 8
push edi
call fcn.0044dc75
add esp, 4
movzx eax, byte [ebx + 0x650]
test eax, eax
je 0x44e047
lea ecx, [esp + 0x1f0]
mov dword [ecx], eax
push 4
push ecx
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x44e314
mov esi, edi
lea edi, [esp + 0x2c]
mov dword [edi], 0xffffffff
lea ebx, [esp + 0xf0]
mov dword [ebx], 1
mov eax, dword [esp + 0x14]
push dword [eax + 0x654]
call fcn.00474d8d
add esp, 4
imul eax, eax, 0x3e8
mov dword [esp + 0x1f0], eax
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x14]
push dword [eax + 0x658]
call fcn.00474d8d
add esp, 4
imul eax, eax, 0x3e8
mov dword [esp + 0x1f0], eax
mov dword [ebx + 8], eax
xor eax, eax
push eax
push eax
push edi
mov edi, esi
push eax
push eax
push 0xc
push ebx
mov ebx, dword [esp + 0x30]
push 0x98000004
push esi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x44e047
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push ebx
call fcn.0046235f
add esp, 0x10
jmp 0x44e047
call fcn.00652e7b
push dword [eax]
push esi
call fcn.00467ab7
add esp, 8
mov ebx, eax
call fcn.00652e7b
push ebx
push dword [eax]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push dword [esp + 0x20]
call fcn.004624d0
add esp, 0x10
push dword [esp + 0x24]
push esi
call fcn.0044db8b
add esp, 8
jmp 0x44e447
mov edi, dword [esp + 0x24]
push edi
call fcn.0044dc75
add esp, 4
xor eax, eax
cmp dword [ebx + 0x1d8], 0
mov dword [esp], edi
je 0x44e0a9
push 1
push ebx
xor esi, esi
call fcn.0045f6b2
add esp, 8
push esi
push edi
push dword [ebx + 0x1dc]
call dword [ebx + 0x1d8]
add esp, 0xc
mov edi, eax
push esi
push ebx
call fcn.0045f6b2
add esp, 8
test edi, edi
je 0x44e0a4
mov al, 1
cmp edi, 2
mov edi, dword [esp]
je 0x44e0a9
push edi
push dword [esp + 0xc]
call fcn.0044db8b
add esp, 8
mov edi, 0x2a
jmp 0x44e447
xor eax, eax
mov edi, dword [esp]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x60], 2
jne 0x44e36f
lea eax, [esp + 0x70]
push eax
call fcn.0040dd30
add esp, 4
mov edx, eax
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 8]
mov eax, dword [eax]
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x260], xmm0
movdqa xmmword [esp + 0x250], xmm0
movdqa xmmword [esp + 0x240], xmm0
movdqa xmmword [esp + 0x230], xmm0
movdqa xmmword [esp + 0x220], xmm0
movdqa xmmword [esp + 0x210], xmm0
movdqa xmmword [esp + 0x200], xmm0
movdqa xmmword [esp + 0x1f0], xmm0
mov dword [esp + 0x2c], 0
movzx edi, word [eax + 0x1a8]
mov ebx, dword [eax + 0x1ac]
mov dword [esp + 0x10], eax
mov esi, dword [eax + 0x550]
test di, di
jne 0x44e151
test esi, esi
jne 0x44e151
mov ebx, dword [esp + 0x14]
mov edi, dword [esp]
jmp 0x44e36f
mov dword [esp + 0x18], edx
pxor xmm0, xmm0
movdqa xmmword [esp + 0x260], xmm0
movdqa xmmword [esp + 0x250], xmm0
movdqa xmmword [esp + 0x240], xmm0
movdqa xmmword [esp + 0x230], xmm0
movdqa xmmword [esp + 0x220], xmm0
movdqa xmmword [esp + 0x210], xmm0
movdqa xmmword [esp + 0x200], xmm0
movdqa xmmword [esp + 0x1f0], xmm0
test esi, esi
je 0x44e21a
push esi
mov dword [esp + 0x10], ecx
call fcn.0065e4d0
mov ecx, dword [esp + 0x10]
add esp, 4
cmp eax, 0xfe
ja 0x44e21a
lea eax, [esp + 0xf0]
push 0x100
push 0
push eax
call fcn.00645dd0
add esp, 0xc
push 3
mov dword [esp + 8], esi
push esi
push 0x67d5ab
call fcn.0065e560
add esp, 0xc
mov esi, eax
test eax, eax
je 0x44e493
push 5
push dword [esp + 8]
push str.host_
call fcn.0065e560
add esp, 0xc
test eax, eax
je 0x44e4f0
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 4]
jmp 0x44e49e
xor esi, esi
cmp ecx, 2
jne 0x44e242
mov word [esp + 0x1f0], 2
movzx eax, di
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x1f2], ax
mov esi, 0x10
lea eax, [esp + 0x1f0]
push esi
push eax
push dword [esp + 8]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x44e2a0
cmp ebx, 2
jl 0x44e45f
movzx eax, di
push eax
push str.Bind_to_local_port__hu_failed__trying_next_n
push dword [esp + 0x18]
call fcn.0046235f
add esp, 0xc
inc edi
cmp word [esp + 0x1f0], 2
jne 0x44e295
movzx eax, di
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [esp + 0x1f2], ax
dec ebx
push esi
lea eax, [esp + 0x1f4]
jmp 0x44e24a
lea eax, [esp + 0x28]
mov dword [eax], 0x80
pxor xmm0, xmm0
lea ecx, [esp + 0xf0]
movdqa xmmword [ecx], xmm0
movdqa xmmword [ecx + 0x10], xmm0
movdqa xmmword [ecx + 0x20], xmm0
movdqa xmmword [ecx + 0x30], xmm0
movdqa xmmword [ecx + 0x40], xmm0
movdqa xmmword [ecx + 0x50], xmm0
movdqa xmmword [ecx + 0x60], xmm0
movdqa xmmword [ecx + 0x70], xmm0
push eax
push ecx
push dword [esp + 8]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
js 0x44e328
mov esi, eax
movzx eax, di
push eax
push str.Local_port:__hu_n
push dword [esp + 0x18]
call fcn.0046235f
add esp, 0xc
mov eax, dword [esp + 8]
mov byte [eax + 0x293], 1
mov eax, esi
xor esi, esi
jmp 0x44e360
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push ebx
call fcn.0046235f
add esp, 0xc
jmp 0x44e047
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov esi, dword [esp + 0x10]
mov dword [esi + 0x48c4], eax
push eax
push dword [esp + 0xc]
call fcn.00467ab7
add esp, 8
push eax
push ebx
push str.getsockname___failed_with_errno__d:__s
push esi
call fcn.004624d0
mov eax, edi
add esp, 0x10
mov esi, 0x2d
mov ebx, dword [esp + 0x14]
mov edi, dword [esp]
test eax, eax
js 0x44e641
push 1
push edi
call fcn.0045fb14
add esp, 8
lea edi, [esp + 0xf0]
push edi
call fcn.004685f4
add esp, 4
movdqu xmm0, xmmword [edi]
mov edi, dword [esp + 8]
movdqu xmmword [edi + 0x2a0], xmm0
cmp dword [edi + 0x2b0], 2
jl 0x44e3ba
push 3
push dword [edi + 0x2bc]
push dword [edi + 0x2b8]
push ebx
call fcn.0045ca97
add esp, 0x10
cmp byte [esp + 0x1c], 0
jne 0x44e43d
cmp dword [edi + 0x94], 1
jne 0x44e43d
cmp byte [edi + 0x296], 0
je 0x44e425
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
add eax, 0xffffd8cd
cmp eax, 2
jb 0x44e43d
cmp edi, 0xb
je 0x44e43d
push edi
mov esi, dword [esp + 0xc]
push esi
call fcn.00467ab7
add esp, 8
push eax
lea eax, [esp + 0x34]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push ebx
call fcn.0046235f
add esp, 0x10
mov dword [ebx + 0x48c4], edi
push dword [esp]
push esi
call fcn.0044db8b
add esp, 8
mov edi, 7
jmp 0x44e447
push dword [esp + 0x6c]
lea eax, [esp + 0x74]
push eax
push dword [esp + 8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x44e3d3
mov eax, dword [ebp + 8]
mov ecx, dword [esp]
mov dword [eax], ecx
xor edi, edi
mov ecx, dword [esp + 0x278]
xor ecx, ebp
call fcn.0064180a
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov esi, dword [esp + 0x10]
mov dword [esi + 0x48c4], eax
push eax
push dword [esp + 0xc]
call fcn.00467ab7
add esp, 8
push eax
push edi
push str.bind_failed_with_errno__d:__s
push esi
call fcn.004624d0
add esp, 0x10
jmp 0x44e639
mov eax, dword [esp + 4]
add eax, 3
mov ecx, dword [esp + 0xc]
push 0x100
lea edx, [esp + 0xf4]
push edx
mov dword [esp + 0xc], eax
push eax
mov eax, dword [esp + 0x14]
push dword [eax + 0x90]
push dword [esp + 0x28]
push ecx
call fcn.0040dd30
add esp, 0x18
cmp eax, 2
je 0x44e4fd
cmp eax, 1
je 0x44e526
test eax, eax
jne 0x44e530
test esi, esi
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
jne 0x44e540
push ecx
push str.Couldnt_bind_to_interface__s
push dword [esp + 0x18]
jmp 0x44e631
mov ecx, dword [esp + 4]
add ecx, 5
mov eax, dword [esp + 0xc]
jmp 0x44e540
mov esi, dword [esp + 0xc]
push esi
lea eax, [esp + 0xf4]
push eax
push dword [esp + 0xc]
push str.Local_Interface__s_is_ip__s_using_address_family__i_n
push dword [esp + 0x20]
call fcn.0046235f
mov eax, esi
add esp, 0x14
jmp 0x44e5e7
mov edi, dword [esp]
mov esi, eax
jmp 0x44e641
test esi, esi
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
je 0x44e61f
mov esi, dword [esp + 8]
mov edx, dword [esi + 0x2c8]
mov dword [esp + 0x18], edx
cmp eax, 2
jne 0x44e55d
mov dword [esi + 0x2c8], 1
lea eax, [esp + 0x2c]
push eax
push 0
mov dword [esp + 0xc], ecx
push ecx
push esi
call fcn.00453775
add esp, 0x10
cmp eax, 1
jne 0x44e585
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.0044beae
add esp, 8
mov eax, dword [esp + 0x18]
mov dword [esi + 0x2c8], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x44e61b
push 0x100
lea esi, [esp + 0xf4]
push esi
push dword [eax]
call fcn.00453314
add esp, 0xc
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
push dword [eax + 4]
push esi
push dword [esp + 0x14]
push dword [esp + 0x10]
push str.Name__s_family__i_resolved_to__s_family__i_n
mov esi, dword [esp + 0x24]
push esi
call fcn.0046235f
add esp, 0x18
push dword [esp + 0x2c]
push esi
call fcn.00453940
mov eax, dword [esp + 0x14]
add esp, 8
xor esi, esi
cmp eax, 2
jne 0x44e242
lea eax, [esp + 0x1f4]
push eax
lea eax, [esp + 0xf4]
push eax
push 2
call fcn.00459aa0
xor esi, esi
add esp, 0xc
test eax, eax
jg 0x44e221
jmp 0x44e242
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x10]
mov byte [eax + 0x48c0], 0
push ecx
push str.Couldnt_bind_to__s
push eax
call fcn.004624d0
add esp, 0xc
mov esi, 0x2d
mov edi, dword [esp]
push edi
push dword [esp + 0xc]
call fcn.0044db8b
add esp, 8
cmp esi, 1
mov edi, 7
cmovne edi, esi
jmp 0x44e447