Function at 0x140044000
Capabilities:
Resolve function by parsing pe exports
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov r14d, edx
lea r12, [rsp + 0x78]
mov rbp, rcx
lea r8, [fcn.140039c40]
lea rcx, [r12 - 8]
lea rdx, [rsp + 0x90]
call fcn.140025060
mov qword [rsp + 0x90], rax
xor r13d, r13d
mov rax, qword [0x140272f38]
test rax, rax
je 0x14004416c
mov rcx, rax
call fcn.14017668c
cmp dword [0x14026ec50], r13d
mov edi, r13d
mov qword [0x140272f38], r13
jle 0x1400440bc
mov esi, r13d
nop dword [rax]
mov rbx, qword [0x14026ec48]
add rbx, rsi
mov rcx, qword [rbx]
test rcx, rcx
je 0x14004408a
call fcn.14017668c
mov qword [rbx], r13
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14004409c
call fcn.14017668c
mov qword [rbx + 0x30], r13
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400440ae
call fcn.14017668c
mov qword [rbx + 8], r13
inc edi
add rsi, 0x38
cmp edi, dword [0x14026ec50]
jl 0x140044070
mov rcx, qword [0x14026ec48]
test rcx, rcx
je 0x1400440d4
call fcn.14017668c
mov qword [0x14026ec48], r13
mov ecx, dword [0x14025b7c4]
mov qword [0x14026ec50], r13
test ecx, ecx
js 0x1400440f4
call fcn.140049050
mov dword [0x14025b7c4], 0xffffffff
mov edx, dword [0x14026ec38]
mov ebx, r13d
mov rcx, qword [0x14026ec30]
test edx, edx
jle 0x140044141
mov rdi, r13
nop dword [rax + rax]
mov rax, qword [rdi + rcx + 8]
lea rsi, [rdi + rcx]
test rax, rax
je 0x140044137
mov rcx, rax
call fcn.14017668c
mov qword [rsi + 8], r13
mov edx, dword [0x14026ec38]
mov rcx, qword [0x14026ec30]
inc ebx
add rdi, 0x18
cmp ebx, edx
jl 0x140044110
test rcx, rcx
je 0x140044152
call fcn.14017668c
mov qword [0x14026ec30], r13
lea rcx, [0x14026ec40]
mov qword [0x14026ec38], r13
call fcn.140039c40
mov rax, qword [0x140272f38]
test rbp, rbp
jne 0x140044182
xor eax, eax
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov qword [rsp + 0x88], r15
mov r15d, 2
mov qword [0x14026ec30], r13
mov qword [0x14026ec38], r13
test r14d, r14d
jne 0x140044392
test rax, rax
je 0x140044235
mov rax, qword gs:[0x58]
mov edx, 0x23d4
mov rcx, qword [rax]
cmp dword [rdx + rcx], r13d
jne 0x140044235
mov r9d, 0x75
lea r8d, [r15 + 0x72]
mov ecx, r9d
mov edx, r15d
call fcn.1400415e0
lea r8d, [r15 + 0xf]
mov edx, r15d
mov ecx, r15d
call fcn.14004a760
movsxd rdi, eax
test eax, eax
js 0x14004424c
lea rcx, [0x140272f60]
call sub.KERNEL32.dll_EnterCriticalSection
mov rax, qword [0x140272fe0]
lea rcx, [0x140272f60]
mov rbx, qword [rax + rdi*8]
call fcn.14002ec90
mov rax, qword [rbx + 0x60]
test rax, rax
jne 0x14004422f
lea edx, [rax + 1]
mov ecx, 0xb0
call fcn.140176684
mov qword [rbx + 0x60], rax
mov byte [rax + 0x64], 0x75
jmp 0x140044248
mov r8d, reloc.WS2_32.dll_recvfrom
mov edx, r15d
mov ecx, r15d
call fcn.14004a760
mov edi, eax
test edi, edi
jns 0x140044272
lea rdx, str.failed_socket__:__m
mov ecx, 0x580003
call fcn.140028ca0
mov edi, eax
test eax, eax
jns 0x140044272
mov dword [0x14025b7c4], 0xffffffff
jmp 0x1400448af
lea rcx, [0x140272f60]
mov dword [rsp + 0x80], 1
call sub.KERNEL32.dll_EnterCriticalSection
movsxd rax, edi
lea rcx, [0x140272f60]
lea rbx, [rax*8]
mov rax, qword [0x140272fe0]
mov rsi, qword [rbx + rax]
call fcn.14002ec90
test byte [rsi + 0x68], 1
je 0x140044318
lea rcx, [0x140272f60]
call sub.KERNEL32.dll_EnterCriticalSection
mov rax, qword [0x140272fe0]
lea rcx, [0x140272f60]
mov rbx, qword [rbx + rax]
call fcn.14002ec90
movsxd rcx, dword [rbx + 0x70]
lea r8, [rsp + 0x80]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
movsxd rcx, eax
call fcn.140172320
test eax, eax
je 0x140044318
lea rdx, str.failed_ioctl_FIOBIO_:__m
mov ecx, 0x580003
call fcn.140028ca0
test eax, eax
je 0x14004431f
mov ecx, edi
call fcn.140049050
or edi, 0xffffffff
jmp 0x14004431f
or dword [rsi + 0x68], 0x80
mov dword [0x14025b7c4], edi
test edi, edi
js 0x1400448af
lea rcx, [0x140272f60]
call sub.KERNEL32.dll_EnterCriticalSection
mov rax, qword [0x140272fe0]
lea rcx, [0x140272f60]
movsxd rdx, edi
mov rbx, qword [rax + rdx*8]
call fcn.14002ec90
or dword [rbx + 0x68], 0x10000000
lea rdx, [rsp + 0x30]
mov ecx, dword [0x14025b7c4]
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0xc9140002
lea r8d, [rax + 0x10]
mov dword [rsp + 0x34], 0x100007f
call fcn.1400419d0
test eax, eax
jne 0x1400448c1
mov rdx, rbp
lea rcx, [0x140272f38]
call fcn.140026000
mov rdx, qword [0x140272f38]
mov rcx, qword [rsp + 0x90]
call fcn.140039e40
mov ecx, r13d
mov rbp, qword [rax]
mov eax, r13d
mov qword [0x14026ec48], r13
mov dword [0x14026ec50], eax
mov dword [0x14026ec54], ecx
mov rbx, qword [rbp]
test rbx, rbx
je 0x140044893
lea rsi, str.reject
lea r14, str.reuse
lea r15, str.mcast
inc eax
cmp eax, ecx
jle 0x14004440f
mov edx, eax
lea rcx, [0x14026ec48]
call fcn.140044a10
mov eax, dword [0x14026ec50]
jmp 0x140044415
mov dword [0x14026ec50], eax
dec eax
lea r8, [fcn.140039c40]
movsxd rcx, eax
lea rdx, [rsp + 0x80]
imul rdi, rcx, 0x38
lea rcx, [r12 - 8]
add rdi, qword [0x14026ec48]
call fcn.140025060
mov qword [rsp + 0x80], rax
mov rdx, rbx
xor eax, eax
mov rcx, rdi
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], rax
mov qword [rdi + 0x28], rax
mov qword [rdi + 0x30], rax
call fcn.140026000
movsx ecx, byte [rbx]
mov r9d, 0x3e
xor r8d, r8d
mov dword [rsp + 0x20], 0x3c
mov r10, rbx
lea edx, [r9 - 0x3b]
call fcn.1400415e0
test eax, eax
jne 0x1400444b7
movsx ecx, byte [rbx + 1]
mov r9d, 0x3e
inc rbx
mov dword [rsp + 0x20], 0x3c
xor r8d, r8d
lea edx, [r9 - 0x3b]
call fcn.1400415e0
test eax, eax
je 0x140044492
mov r8, rbx
lea rcx, [rdi + 8]
sub r8, r10
mov rdx, r10
call fcn.140026470
movsx r10d, byte [rbx]
mov edx, 2
mov ecx, r10d
lea r9d, [rdx + 0x3a]
lea r8d, [rdx + 0x3c]
call fcn.1400415e0
test eax, eax
je 0x1400449f7
cmp r10b, r9b
lea rdx, [rbx + 1]
mov eax, r13d
lea r8, [0x14019c9b8]
sete al
xor r9d, r9d
mov dword [rdi + 0x10], eax
mov rcx, qword [rsp + 0x80]
call fcn.140039dd0
mov rbx, qword [rax]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14004452b
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], r13b
jne 0x140044520
jmp 0x14004452e
mov rax, r13
cmp eax, 1
jne 0x14004456b
movsx eax, byte [rcx]
mov edx, 4
mov ecx, eax
mov dword [rsp + 0x28], reloc.WS2_32.dll_WSASetLastError
mov byte [rdi + 0x22], al
add rbx, 8
mov dword [rsp + 0x20], WSAGetLastError
lea r9d, [rdx + 0x71]
lea r8d, [rdx + 0x70]
call fcn.1400415e0
test eax, eax
je 0x1400448d9
jmp 0x14004456f
mov byte [rdi + 0x22], reloc.WS2_32.dll_WSACleanup
mov r8, qword [rbx]
test r8, r8
je 0x1400448ef
nop dword [rax + rax]
mov rcx, r13
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
inc rcx
cmp al, byte [rsi + rcx - 1]
jne 0x1400445aa
cmp rcx, 7
jne 0x140044590
or dword [rdi + 0x24], 2
jmp 0x14004461d
mov rcx, r13
nop dword [rax]
movzx eax, byte [r8 + rcx]
inc rcx
cmp al, byte [r14 + rcx - 1]
jne 0x1400445cb
cmp rcx, 6
jne 0x1400445b0
or dword [rdi + 0x24], 4
jmp 0x14004461d
mov rax, r13
nop
movzx ecx, byte [r8 + rax]
inc rax
cmp cl, byte [r15 + rax - 1]
jne 0x1400445eb
cmp rax, 6
jne 0x1400445d0
or dword [rdi + 0x24], 8
jmp 0x14004461d
lea rdx, [0x14019e1bc]
mov rcx, r8
call fcn.140025ea0
test eax, eax
je 0x140044611
mov rcx, qword [rbx]
lea rdx, [0x14019e1c0]
call fcn.140025ea0
test eax, eax
jne 0x140044633
mov rdx, qword [rbx]
lea rcx, [rdi + 0x30]
call fcn.140026000
mov r8, qword [rbx + 8]
add rbx, 8
test r8, r8
je 0x1400448ef
jmp 0x140044580
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400448ef
movzx eax, byte [rdi + 0x22]
cmp al, 0x70
jne 0x1400446a8
cmp qword [rdi + 0x30], r13
je 0x140044931
call fcn.14016de20
mov edx, eax
mov eax, 0x100
movzx ecx, dx
imul ecx, eax
shr dx, 8
add cx, dx
mov word [rdi + 0x18], cx
mov word [rdi + 0x1a], cx
je 0x14004491b
mov rcx, qword [rbx + 8]
call fcn.14016de20
mov edx, eax
mov eax, 0x100
movzx ecx, dx
imul ecx, eax
shr dx, 8
add cx, dx
mov word [rdi + 0x20], cx
je 0x140044905
add rbx, 0x10
jmp 0x14004486c
mov edx, 3
movsx ecx, al
mov dword [rsp + 0x20], reloc.WS2_32.dll_WSACleanup
lea r9d, [rdx + 0x72]
lea r8d, [rdx + 0x66]
call fcn.1400415e0
test eax, eax
je 0x1400449e1
mov r15, qword gs:[0x58]
mov eax, 0x2fe0
mov r14d, eax
mov rsi, qword [r15]
mov rax, qword [rsi + rax]
test rax, rax
jne 0x1400446ef
call fcn.140176664
mov dword [rax], r13d
mov rcx, qword [rbx]
movzx eax, byte [rcx]
cmp al, byte [0x14019e27c]
jne 0x140044711
movzx eax, byte [rcx + 1]
cmp al, byte [0x14019e27d]
jne 0x140044711
mov eax, r13d
jmp 0x140044716
call fcn.14016e6f0
mov dword [rdi + 0x14], eax
mov rax, qword [rsi + r14]
test rax, rax
jne 0x140044727
call fcn.140176664
cmp dword [rax], r13d
jne 0x1400449cb
mov rcx, qword [rbx + 8]
add rbx, 8
test rcx, rcx
je 0x1400449b5
call fcn.14016de20
mov edx, eax
mov esi, 0x100
movzx ecx, dx
shr dx, 8
movzx eax, si
imul ecx, eax
add cx, dx
mov edx, 2
mov word [rdi + 0x18], cx
movsx ecx, byte [rdi + 0x22]
lea r9d, [rdx + 0x72]
lea r8d, [rdx + 0x73]
call fcn.1400415e0
test eax, eax
je 0x1400447ad
cmp word [rdi + 0x18], r13w
je 0x1400447ad
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140044947
call fcn.14016de20
mov ecx, eax
movzx eax, si
movzx edx, cx
imul edx, eax
mov eax, reloc.WS2_32.dll_recv
shr cx, 8
add dx, cx
jmp 0x1400447b6
movzx edx, word [rdi + 0x18]
mov eax, 8
add rbx, rax
mov word [rdi + 0x1a], dx
cmp qword [rbx], r13
je 0x14004499f
mov rsi, qword [r15]
mov rax, qword [rsi + r14]
test rax, rax
jne 0x1400447d7
call fcn.140176664
mov dword [rax], r13d
mov rcx, qword [rbx]
movzx eax, byte [rcx]
cmp al, byte [0x14019e27c]
jne 0x1400447f9
movzx eax, byte [rcx + 1]
cmp al, byte [0x14019e27d]
jne 0x1400447f9
mov eax, r13d
jmp 0x1400447fe
call fcn.14016e6f0
mov dword [rdi + 0x1c], eax
mov rax, qword [rsi + r14]
test rax, rax
jne 0x14004480f
call fcn.140176664
cmp dword [rax], r13d
jne 0x140044989
mov rcx, qword [rbx + 8]
add rbx, 8
test rcx, rcx
je 0x140044846
call fcn.14016de20
mov edx, eax
mov eax, 0x100
movzx ecx, dx
imul ecx, eax
shr dx, 8
add cx, dx
mov word [rdi + 0x20], cx
add rbx, 8
cmp byte [rdi + 0x22], 0x69
jne 0x140044857
cmp word [rdi + 0x20], r13w
je 0x14004495d
lea rsi, str.reject
lea r14, str.reuse
lea r15, str.mcast
cmp qword [rbx], r13
jne 0x140044973
mov rbx, qword [rbp + 8]
add rbp, 8
test rbx, rbx
je 0x140044893
mov ecx, dword [0x14026ec54]
mov eax, dword [0x14026ec50]
jmp 0x1400443f3
mov eax, 1
mov r15, qword [rsp + 0x88]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rdx, str.failed_socket
mov ecx, 0x58
call fcn.14003ebc0
int3
mov r8d, 0x14c9
lea rdx, str.jtest_tr:_port__d_already_in_use
mov ecx, 0x58
call fcn.14003ebc0
int3
mov r8, qword [rbp]
lea rdx, str.invalid_sock_tr_int_is_in_tr__prot__t__u__i__p_:__s
mov ecx, 0x58
call fcn.14003ebc0
int3
mov r8, qword [rbp]
lea rdx, str.invalid_sock_tr_a:__s
mov ecx, 0x58
call fcn.14003ebc0
int3
mov r8, qword [rbp]
lea rdx, str.invalid_sock_tr_tr__port_src__htons_atoi_a__:__s
mov ecx, 0x58
call fcn.14003ebc0
int3
mov r8, qword [rbp]
lea rdx, str.invalid_sock_tr_tr__tr_port__tr__port_dst__htons_atoi_a__:__s
mov ecx, 0x58
call fcn.14003ebc0
int3
mov r8, qword [rbp]
lea rdx, str.invalid_sock_tr_tr__dev:__s
mov ecx, 0x58
call fcn.14003ebc0
int3
mov r8, qword [rbp]
lea rdx, str.invalid_sock_tr_a:__s
mov ecx, 0x58
call fcn.14003ebc0
int3
mov r8, qword [rbp]
lea rdx, str.invalid_sock_tr___tr__proti___tr__port_src_:__s
mov ecx, 0x58
call fcn.14003ebc0
int3
mov r8, qword [rbp]
lea rdx, str.invalid_sock_tr__a:__s
mov ecx, 0x58
call fcn.14003ebc0
int3
mov r8, qword [rbp]
lea rdx, str.invalid_sock_tr__errno:__s
mov ecx, 0x58
call fcn.14003ebc0
int3
mov r8, qword [rbp]
lea rdx, str.invalid_sock_tr_a:__s
mov ecx, 0x58
call fcn.14003ebc0
int3
mov r8, qword [rbp]
lea rdx, str.invalid_sock_tr_a:__s
mov ecx, 0x58
call fcn.14003ebc0
int3
mov r8, qword [rbp]
lea rdx, str.invalid_sock_tr__errno:__s
mov ecx, 0x58
call fcn.14003ebc0
int3
mov r8, qword [rbp]
lea rdx, str.invalid_sock_tr_0:__s
mov ecx, 0x58
call fcn.14003ebc0
int3
mov r8, qword [rbp]
lea rdx, str.invalid_sock_tr_int_is_in_dir_______:__s
mov ecx, 0x58
call fcn.14003ebc0
int3