Function at 0x432a00
Capabilities:
Set socket configuration

Disassembly:
push rbp
mov eax, 0x2090
call fcn.0041bb70
sub rsp, rax
lea rbp, [rsp + 0x80]
mov rax, qword [0x00442300]
mov rax, qword [rax]
xor rax, rbp
mov qword [rbp + 0x2008], rax
mov qword [rbp - 0x18], rcx
mov dword [rbp - 8], 0
mov dword [rbp - 0x20], 0xfffffffe
mov dword [rbp - 0xc], 4
cmp qword [rbp - 0x18], 0
jne 0x432a53
jmp 0x432c70
mov rax, qword [rbp - 0x18]
mov rcx, qword [rax + 0x8f8]
call fcn.00432cb0
mov rax, qword [rbp - 0x18]
mov rcx, qword [rax + 0x8f8]
mov edx, 1
call qword [sym.imp.WS2_32.dll_shutdown]
mov rdx, qword [rbp - 0x18]
mov r8, rbp
xor eax, eax
mov ecx, eax
mov r9d, 0x2000
movsd xmm0, qword [0x00445e50]
movsd qword [rsp + 0x20], xmm0
call fcn.0042dc30
mov dword [rbp - 0x1c], eax
cmp dword [rbp - 0x1c], 0
jg 0x432a79
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x8e8]
cmp qword [rax + 0x38], 0
je 0x432ad7
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x8e8]
mov rcx, qword [rax + 0x38]
call sub.api_ms_win_crt_convert_l1_1_0.dll_atoi
mov dword [rbp - 0x20], eax
cmp dword [rbp - 0x20], 0
jl 0x432b00
mov word [rbp - 4], 1
mov eax, dword [rbp - 0x20]
add eax, 0x3e7
mov ecx, 0x3e8
cdq
idiv ecx
mov word [rbp - 2], ax
jmp 0x432b0c
mov word [rbp - 4], 0
mov word [rbp - 2], 0
cmp dword [rbp - 0x20], 0xffffffff
jge 0x432b1b
jmp 0x432c50
mov rax, qword [rbp - 0x18]
mov rcx, qword [rax + 0x8f8]
mov edx, 0xffff
mov r8d, 0x1007
lea r9, [rbp - 8]
lea rax, [rbp - 0xc]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0
je 0x432b9a
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_strerror
mov rcx, qword [rbp - 0x28]
mov rdx, rax
mov rax, rsp
mov qword [rax + 0x30], rdx
lea r8, str.close_socket_gracefully
mov qword [rax + 0x28], r8
lea rdx, str._s:_getsockopt_SOL_SOCKET_SO_ERROR__failed:__s
mov qword [rax + 0x20], rdx
xor eax, eax
mov edx, eax
mov r9d, 0x46c4
call fcn.0041e440
jmp 0x432c4b
cmp dword [rbp - 8], 0x2746
jne 0x432bac
jmp 0x432c46
mov rax, qword [rbp - 0x18]
mov rcx, qword [rax + 0x8f8]
mov edx, 0xffff
mov r8d, 0x80
lea r9, [rbp - 4]
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0
je 0x432c41
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x30], rax
movzx eax, word [rbp - 4]
mov dword [rbp - 0x34], eax
movzx eax, word [rbp - 2]
mov dword [rbp - 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_strerror
mov r8d, dword [rbp - 0x38]
mov edx, dword [rbp - 0x34]
mov rcx, qword [rbp - 0x30]
mov r9, rax
mov rax, rsp
mov qword [rax + 0x40], r9
mov dword [rax + 0x38], r8d
mov dword [rax + 0x30], edx
lea r8, str.close_socket_gracefully
mov qword [rax + 0x28], r8
lea rdx, str._s:_setsockopt_SOL_SOCKET_SO_LINGER__i__i___failed:__s
mov qword [rax + 0x20], rdx
xor eax, eax
mov edx, eax
mov r9d, 0x46db
call fcn.0041e440
jmp 0x432c46
jmp 0x432c4b
jmp 0x432c50
mov rax, qword [rbp - 0x18]
mov rcx, qword [rax + 0x8f8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, qword [rbp - 0x18]
mov qword [rax + 0x8f8], 0xffffffffffffffff
mov rcx, qword [rbp + 0x2008]
xor rcx, rbp
mov rax, qword [0x00442300]
mov rax, qword [rax]
sub rax, rcx
jne 0x432c92
jmp 0x432c97
call fcn.0041bf30
nop
add rsp, 0x2090
pop rbp
ret