Function at 0x43a550
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x2d0
mov ebx, edx
mov dword [esp + 0x14], ecx
mov edi, dword [ecx + 8]
lea eax, [esp + 0xc0]
push eax
call fcn.0041d8c0
add esp, 4
movups xmm0, xmmword [esp + 0xc0]
movups xmmword [edi + 0x100], xmm0
lea esi, [edi + 8]
cmp dword [ebx + 0x1a4], 0
mov dword [esp + 0xc], esi
je 0x43a5cd
push 1
push ebx
call fcn.00413410
add esp, 8
push esi
push 0
push dword [ebx + 0x1a8]
call dword [ebx + 0x1a4]
add esp, 0xc
mov dword [edi + 0x98], eax
push 0
push ebx
call fcn.00413410
add esp, 8
mov eax, dword [edi + 0x98]
jmp 0x43a5ee
push str.cf_socket.c
push 0x16e
push dword [edi + 0x10]
push dword [edi + 0xc]
push dword [edi + 8]
call fcn.004075e0
add esp, 0x14
mov dword [edi + 0x98], eax
mov ecx, 7
cmp eax, 0xffffffff
mov dword [esp + 0x10], edi
mov esi, dword [esp + 0x14]
je 0x43a6e5
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x3d8]
test eax, eax
je 0x43a61d
mov ecx, dword [esp + 0xc]
cmp dword [ecx], 0x17
jne 0x43a61d
mov dword [edi + 0x30], eax
mov esi, dword [esi + 8]
lea eax, [esi + 0x18]
lea ecx, [esi + 0x9c]
lea edx, [esi + 0xf8]
push edx
push ecx
push dword [esi + 0x14]
push eax
call fcn.0043ef30
add esp, 0x10
test al, al
je 0x43a69b
mov esi, ebx
mov ebx, dword [esp + 0xc]
cmp dword [ebx], 0x17
jne 0x43a7b3
mov eax, dword [edi + 0x98]
mov dword [esp + 0xc0], 0
lea ecx, [esp + 0xc0]
push 4
push ecx
push 0x1b
push 0x29
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test byte [esi + 0x6eb], 0x20
je 0x43a7e8
mov ecx, dword [esi + 0xd20]
mov eax, str.__Trying___s_:_d...
test ecx, ecx
jne 0x43a7cb
jmp 0x43a7d1
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call edi
mov eax, dword [eax]
mov dword [esi + 0x144], eax
call edi
mov esi, dword [eax]
call edi
mov edi, dword [esp + 0x10]
push 0x100
lea ecx, [esp + 0xc4]
push ecx
push dword [eax]
call fcn.0041d090
add esp, 0xc
push eax
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00444f40
add esp, 0x10
mov ecx, 2
mov esi, dword [esp + 0x14]
mov edi, dword [edi + 0x98]
cmp edi, 0xffffffff
je 0x43a760
mov dword [esp + 0xc], ecx
mov esi, dword [esi + 0xc]
test esi, esi
je 0x43a735
mov eax, dword [esi + 0x10]
mov dword [esp + 0x28], eax
push edi
push ebx
call fcn.00412a00
add esp, 8
cmp dword [esp + 0x28], 0
je 0x43a735
push 1
push ebx
call fcn.00413410
add esp, 8
push edi
push dword [esi + 0x14]
call dword [esi + 0x10]
add esp, 8
push 0
push ebx
call fcn.00413410
add esp, 8
jmp 0x43a748
push str.cf_socket.c
push 0x1aa
push edi
call fcn.004078b0
add esp, 0xc
mov edi, dword [esp + 0x10]
mov dword [edi + 0x98], 0xffffffff
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
jmp 0x43a764
mov edi, dword [esp + 0x10]
test byte [ebx + 0x6eb], 0x20
je 0x43a7a9
mov eax, dword [ebx + 0xd20]
test eax, eax
je 0x43a783
test esi, esi
je 0x43a7a9
cmp dword [eax + 4], 0
jg 0x43a787
jmp 0x43a7a9
test esi, esi
je 0x43a7a9
mov eax, dword [esi]
cmp dword [eax + 8], 0
jle 0x43a7a9
push dword [edi + 0x98]
push ecx
push str.cf_socket_open_______d__fd_d
push esi
push ebx
mov esi, ecx
call fcn.004450a0
mov ecx, esi
add esp, 0x14
mov eax, ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test byte [esi + 0x6eb], 0x20
je 0x43a7e8
mov ecx, dword [esi + 0xd20]
mov eax, str.__Trying__s:_d...
test ecx, ecx
je 0x43a7d1
cmp dword [ecx + 4], 0
jle 0x43a7e8
lea ecx, [edi + 0x9c]
push dword [edi + 0xf8]
push ecx
push eax
push esi
call fcn.00444fd0
add esp, 0x10
mov eax, dword [ebx]
cmp eax, 0x17
je 0x43a7f8
cmp eax, 2
jne 0x43a8ee
cmp dword [edi + 0xc], 1
jne 0x43a8ee
mov ebx, esi
test byte [esi + 0x6ec], 2
mov esi, dword [esp + 0x14]
je 0x43a87f
mov eax, dword [edi + 0x98]
mov dword [esp + 0x1cc], 1
lea ecx, [esp + 0x1cc]
push 4
push ecx
push 1
push 6
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x43a87f
test byte [ebx + 0x6eb], 0x20
je 0x43a87f
mov eax, dword [ebx + 0xd20]
test eax, eax
je 0x43a854
cmp dword [eax + 4], 0
jle 0x43a87f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [esp + 0xc0]
push 0x100
push ecx
push eax
call fcn.0041d090
add esp, 0xc
push eax
push str.Could_not_set_TCP_NODELAY:__s
push ebx
call fcn.00444fd0
add esp, 0xc
mov edi, dword [edi + 0x98]
mov dword [esp + 0xc0], 0x4020
mov dword [esp + 0x1cc], 0
mov dword [esp + 0x40], 4
mov eax, dword [0xae4158]
cmp eax, 2
je 0x43ac6a
test eax, eax
jne 0x43ac20
sub esp, 0x14
movaps xmm0, xmmword [0x999a40]
movups xmmword [esp], xmm0
mov dword [esp + 0x10], 3
call fcn.00427620
add esp, 0x14
test al, al
je 0x43ac16
mov dword [0xae4158], 2
jmp 0x43ac6a
mov edi, dword [edi + 0x98]
mov dword [esp + 0xc0], 0x4020
mov dword [esp + 0x1cc], 0
mov dword [esp + 0x40], 4
mov eax, dword [0xae4158]
cmp eax, 2
mov ebx, esi
mov esi, dword [esp + 0x14]
je 0x43a9ac
test eax, eax
jne 0x43a962
sub esp, 0x14
movaps xmm0, xmmword [0x999a40]
movups xmmword [esp], xmm0
mov dword [esp + 0x10], 3
call fcn.00427620
add esp, 0x14
test al, al
je 0x43a958
mov dword [0xae4158], 2
jmp 0x43a9ac
mov dword [0xae4158], 1
lea eax, [esp + 0x40]
lea ecx, [esp + 0x1cc]
push eax
push ecx
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x43a991
cmp dword [esp + 0x1cc], 0x4020
jg 0x43a9ac
push 4
lea eax, [esp + 0xc4]
push eax
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, dword [esp + 0x10]
cmp dword [ebx + 0x19c], 0
je 0x43aa13
push 1
push ebx
call fcn.00413410
add esp, 8
push 0
push dword [edi + 0x98]
push dword [ebx + 0x1a0]
call dword [ebx + 0x19c]
add esp, 0xc
mov edi, eax
push 0
push ebx
call fcn.00413410
add esp, 8
cmp edi, 2
je 0x43aa28
mov ecx, 0x2a
test edi, edi
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
jne 0x43a6e5
mov dword [esp + 0x34], 0
mov eax, dword [eax]
cmp eax, 0x17
jne 0x43aa3d
jmp 0x43aa46
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
cmp eax, 0x17
jne 0x43aa3d
jmp 0x43aa46
mov al, 1
mov dword [esp + 0x34], eax
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
cmp eax, 0x17
je 0x43aa46
cmp eax, 2
jne 0x43af49
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x98]
mov dword [esp + 0x28], eax
lea eax, [edi + 0x18]
push eax
call fcn.00461640
add esp, 4
mov dword [esp + 0x2c], 0
mov edi, dword [ebx + 0x570]
mov esi, dword [ebx + 0x574]
mov edx, dword [ebx + 0x578]
test esi, esi
mov dword [esp + 0x20], esi
cmove esi, edi
mov ecx, esi
mov dword [esp + 0x1c], edx
or ecx, edx
mov dword [esp + 0x24], edi
or ecx, edi
setne cl
movzx edi, word [ebx + 0x178]
test di, di
setne dl
or dl, cl
cmp dl, 1
jne 0x43af41
mov ecx, ebx
mov dword [esp + 0x38], edi
movzx ebx, di
mov dword [esp + 0xc], ecx
movzx ecx, word [ecx + 0x17a]
mov dword [esp + 0x3c], ecx
xorps xmm0, xmm0
movaps xmmword [esp + 0xb0], xmm0
movaps xmmword [esp + 0xa0], xmm0
movaps xmmword [esp + 0x90], xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
test esi, esi
je 0x43abe1
mov edi, esi
push esi
mov esi, eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0xfe
ja 0x43abe1
mov ecx, esi
mov esi, edi
xorps xmm0, xmm0
movaps xmmword [esp + 0x1b0], xmm0
movaps xmmword [esp + 0x1a0], xmm0
movaps xmmword [esp + 0x190], xmm0
movaps xmmword [esp + 0x180], xmm0
movaps xmmword [esp + 0x170], xmm0
movaps xmmword [esp + 0x160], xmm0
movaps xmmword [esp + 0x150], xmm0
movaps xmmword [esp + 0x140], xmm0
movaps xmmword [esp + 0x130], xmm0
movaps xmmword [esp + 0x120], xmm0
movaps xmmword [esp + 0x110], xmm0
movaps xmmword [esp + 0x100], xmm0
movaps xmmword [esp + 0xf0], xmm0
movaps xmmword [esp + 0xe0], xmm0
movaps xmmword [esp + 0xd0], xmm0
movaps xmmword [esp + 0xc0], xmm0
mov edi, dword [esp + 0x1c]
test edi, edi
mov edx, dword [esp + 0x18]
je 0x43ac8d
mov esi, dword [esp + 0x30]
movzx eax, byte [esi + 0x3e3]
mov byte [esp + 0x1c], al
cmp edx, 2
je 0x43ad14
cmp edx, 0x17
jne 0x43ad1c
mov al, 2
jmp 0x43ad16
mov eax, dword [esp + 0x18]
cmp eax, 2
je 0x43aed3
xor edi, edi
cmp eax, 0x17
jne 0x43aeeb
mov word [esp + 0x40], 0x17
push ebx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x42], ax
mov edi, 0x1c
jmp 0x43aeeb
mov dword [0xae4158], 1
lea eax, [esp + 0x40]
lea ecx, [esp + 0x1cc]
push eax
push ecx
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x43ac4f
cmp dword [esp + 0x1cc], 0x4020
jg 0x43ac6a
lea eax, [esp + 0xc0]
push 4
push eax
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test byte [ebx + 0x6ec], 0x80
mov edi, dword [esp + 0x10]
je 0x43a9b0
mov edx, dword [edi + 0x98]
mov ecx, ebx
call fcn.0043b1e0
jmp 0x43a9b0
push 0x100
lea eax, [esp + 0xc4]
push eax
push esi
mov eax, dword [esp + 0x3c]
push dword [eax + 0x3d8]
push ecx
push edx
call fcn.00461710
add esp, 0x18
cmp eax, 2
je 0x43ae32
cmp eax, 1
mov edx, dword [esp + 0x18]
je 0x43add4
test eax, eax
jne 0x43b09c
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x20], 0
je 0x43abb9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov ebx, dword [esp + 0xc]
mov dword [ebx + 0x8f0], eax
lea eax, [esp + 0x1cc]
push 0x100
push eax
push edi
call fcn.0041d090
add esp, 0xc
push eax
push edi
push dword [esp + 0x28]
push str.Couldnt_bind_to_interface__s_with_errno__d:__s
jmp 0x43ae24
mov al, 1
mov byte [esi + 0x3e3], al
lea eax, [esp + 0x2c]
push eax
push 0
push 0x50
push edi
push dword [esp + 0x1c]
call fcn.004528b0
add esp, 0x14
cmp eax, 1
jne 0x43ad48
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x10]
call fcn.00436be0
add esp, 8
movzx eax, byte [esp + 0x1c]
mov byte [esi + 0x3e3], al
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x43ade6
mov dword [esp + 0x1c], edi
mov eax, dword [eax]
mov edi, dword [eax + 4]
lea ecx, [esp + 0xc0]
push 0x100
push ecx
push eax
call fcn.004520d0
add esp, 0xc
mov esi, dword [esp + 0xc]
test byte [esi + 0x6eb], 0x20
je 0x43adba
mov eax, dword [esi + 0xd20]
test eax, eax
je 0x43ad9b
cmp dword [eax + 4], 0
jle 0x43adba
push edi
lea eax, [esp + 0xc4]
push eax
push dword [esp + 0x20]
push dword [esp + 0x28]
push str.Name__s_family__i_resolved_to__s_family__i
push esi
call fcn.00444fd0
add esp, 0x18
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.00453030
add esp, 8
mov edx, dword [esp + 0x18]
cmp edi, edx
je 0x43ae87
mov ecx, 7
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
jmp 0x43a6e1
mov dword [esp + 0x24], edi
mov ebx, dword [esp + 0xc]
and byte [ebx + 0xd60], 0xf7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov dword [ebx + 0x8f0], eax
lea eax, [esp + 0x1cc]
push 0x100
push eax
push edi
call fcn.0041d090
add esp, 0xc
push eax
push edi
push dword [esp + 0x2c]
push str.Couldnt_bind_to__s_with_errno__d:__s
push ebx
call fcn.00444f40
add esp, 0x14
jmp 0x43b08e
mov eax, dword [esp + 0xc]
test byte [eax + 0x6eb], 0x20
je 0x43ae71
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0xd20]
test eax, eax
je 0x43ae53
cmp dword [eax + 4], 0
jle 0x43ae71
push dword [esp + 0x18]
lea eax, [esp + 0xc4]
push eax
push esi
push str.Local_Interface__s_is_ip__s_using_address_family__i
push dword [esp + 0x1c]
call fcn.00444fd0
add esp, 0x14
lea edi, [esp + 0xc0]
cmp dword [esp + 0x20], 0
mov edx, dword [esp + 0x18]
je 0x43abb9
xor edi, edi
cmp edx, 2
je 0x43aeb8
cmp edx, 0x17
jne 0x43aeeb
lea esi, [esp + 0xc0]
push 0x25
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
add esp, 8
test eax, eax
je 0x43b0b0
mov edi, eax
inc edi
mov byte [eax], 0
jmp 0x43b0b2
lea eax, [esp + 0x44]
lea ecx, [esp + 0xc0]
push eax
push ecx
push 2
call fcn.004645c0
add esp, 0xc
test eax, eax
jle 0x43aeeb
mov word [esp + 0x40], 2
push ebx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x42], ax
mov edi, 0x10
lea eax, [esp + 0x40]
push edi
push eax
push dword [esp + 0x30]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x43afcf
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0xc]
test byte [ebx + 0x6eb], 0x20
je 0x43af36
mov eax, dword [ebx + 0xd20]
test eax, eax
je 0x43af24
cmp dword [eax + 4], 0
jle 0x43af36
movzx eax, di
push eax
push str.Local_port:__hu
push ebx
call fcn.00444fd0
add esp, 0xc
mov eax, dword [esp + 0x30]
or byte [eax + 0x2a2], 0x10
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
push 1
push dword [edi + 0x98]
call fcn.004667e0
add esp, 8
test eax, eax
js 0x43afb9
mov eax, dword [edi + 0x148]
xor ecx, ecx
cmp dword [edi + 0xc], 2
setne cl
and eax, 0xfffffff7
lea eax, [eax + ecx*8]
mov dword [edi + 0x148], eax
xor ecx, ecx
cmp byte [esp + 0x34], 0
je 0x43a764
mov ecx, dword [esi + 8]
mov edx, ebx
call fcn.0043a150
lea eax, [esp + 0xc0]
push eax
call fcn.0041d8c0
xor ecx, ecx
add esp, 4
movups xmm0, xmmword [esp + 0xc0]
movups xmmword [edi + 0x110], xmm0
or byte [esi + 0x14], 1
jmp 0x43a764
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi + 0x144], eax
mov ecx, 1
jmp 0x43a6e5
mov dword [esp + 0x18], edi
mov ecx, ebx
inc ecx
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
jmp 0x43b027
movzx eax, cx
dec eax
push eax
push str.Bind_to_local_port__d_failed__trying_next
push dword [esp + 0x14]
call fcn.00444fd0
mov ecx, esi
add esp, 0xc
movzx eax, cx
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [esp + 0x42], ax
push dword [esp + 0x18]
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x30]
call dword [sym.imp.WS2_32.dll_bind]
mov ecx, esi
inc ecx
inc edi
dec ebx
test eax, eax
jns 0x43af07
cmp ebx, 2
jl 0x43b056
test cx, cx
je 0x43b056
mov eax, dword [esp + 0xc]
test byte [eax + 0x6eb], 0x20
mov esi, ecx
je 0x43aff8
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0xd20]
test eax, eax
je 0x43afe0
cmp dword [eax + 4], 0
jg 0x43afe0
jmp 0x43aff8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov ebx, dword [esp + 0xc]
mov dword [ebx + 0x8f0], eax
push 0x100
lea eax, [esp + 0xc4]
push eax
push edi
call fcn.0041d090
add esp, 0xc
push eax
push edi
push str.bind_failed_with_errno__d:__s
push ebx
call fcn.00444f40
add esp, 0x10
mov ecx, 0x2d
mov edi, dword [esp + 0x10]
jmp 0x43a6e1
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x20], 0
jne 0x43adea
jmp 0x43abb9
xor edi, edi
lea eax, [esp + 0x48]
push eax
push esi
push 0x17
call fcn.004645c0
add esp, 0xc
test eax, eax
jle 0x43ac0c
mov word [esp + 0x40], 0x17
push ebx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x42], ax
test edi, edi
je 0x43ac0c
push 0xa
push 0
push edi
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
add esp, 0xc
mov dword [esp + 0x58], eax
jmp 0x43ac0c