Function at 0x49c551
Capabilities:
Create tcp socket
Create udp socket
Enumerate pe sections

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x49cb2e
lea rsi, str.127.0.0.1:34254
lea rcx, [rsp + 0x40]
mov qword [rcx], rsi
mov qword [rcx + 8], 0xf
call fcn.00412ed0
mov rdi, rax
test dil, 1
je 0x49c626
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x49c61c
mov r9, qword [rsp + 0x40]
cmp byte [r9], 0x3a
jne 0x49c61c
lea r8, [rcx - 1]
inc r9
xor r10d, r10d
mov bp, 0xa
mov r11, r8
xor ebx, ebx
mov eax, 0
test r11, r11
je 0x49c5e9
movzx r14d, byte [r9]
add r14d, 0xffffffd0
xor eax, eax
cmp r14d, 0xa
setb al
jae 0x49c5e9
inc r9
dec r11
jmp 0x49c5f3
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x48], r11
cmp eax, 1
jne 0x49c63d
mov eax, ebx
mul bp
jo 0x49c64b
mov ebx, eax
add bx, r14w
setb dl
xor eax, eax
cmp r14d, 0xffff
ja 0x49c64d
test dl, dl
jne 0x49c64d
dec r10
jmp 0x49c5c4
xor eax, eax
mov r8, rcx
test ax, ax
jne 0x49c653
lea rax, [0x005a9a41]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0xe
jmp 0x49c65c
xor eax, eax
test r10, r10
setne al
cmovne r8, r11
jmp 0x49c64d
xor eax, eax
cmp ax, 1
jne 0x49c61e
test r8, r8
je 0x49c6e3
mov r8d, 0xf
lea rbx, str.invalid_socket_address
mov cl, 0x3a
mov rdx, rsi
call fcn.00414ce0
cmp rax, 1
jne 0x49c9ad
mov r8, rdx
cmp rdx, 0xe
ja 0x49c68d
cmp byte [r8 + rsi], 0x3a
je 0x49c698
cmp r8, 0xf
jbe 0x49c669
jmp 0x49c9ad
lea rbx, [0x005aa6b8]
cmp r8, 0xe
je 0x49c9ad
lea rcx, [r8 + rsi]
inc rcx
movzx eax, byte [rcx]
mov r9d, 0xe
cmp eax, 0x2d
je 0x49ca3b
cmp eax, 0x2b
jne 0x49ca45
cmp r8, 0xd
je 0x49c9ad
inc rcx
mov r9d, 0xd
jmp 0x49ca45
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov rcx, qword [0x005e4168]
test rcx, rcx
jne 0x49c719
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x49cb48
mov rcx, rax
mov qword [0x005e4168], rax
mov r8d, 0x20
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x49cb48
mov rsi, rax
movabs rax, 0xffffffff00
and rdi, rax
shr rdi, 8
movzx eax, bx
and word [rsi], 0
shl rax, 0x20
or rax, rdi
mov rcx, rax
and rcx, 0xffffffffffffff00
movzx edx, dil
or rdx, rcx
shr rax, 0x20
mov word [rsi + 6], ax
mov dword [rsi + 2], edx
mov rax, qword [rsp + 0x30]
mov qword [rsi + 8], rax
mov eax, dword [rsp + 0x38]
mov dword [rsi + 0x10], eax
and dword [rsi + 0x14], 0
mov rcx, rsi
add rcx, 0x20
mov eax, 1
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rsi
xor r15d, r15d
mov qword [rsp + 0xa0], rcx
cmp rsi, rcx
je 0x49c995
mov rax, rsi
add rsi, 0x20
mov qword [rsp + 0x48], rsi
movzx ebx, word [rax]
cmp bx, 2
je 0x49c995
mov qword [rsp + 0x98], r15
mov r13d, dword [rax + 2]
movzx r12d, word [rax + 6]
mov ecx, dword [rax + 0x14]
mov dword [rsp + 0x6c], ecx
mov r15d, dword [rax + 0x18]
movzx edi, word [rax + 0x1c]
mov eax, dword [rsi - 0x10]
mov dword [rsp + 0x38], eax
mov rax, qword [rsi - 0x18]
mov qword [rsp + 0x30], rax
mov rax, qword [0x005e4198]
cmp rax, 3
jne 0x49c984
mov ebp, 2
test bx, bx
je 0x49c81e
mov ebp, 0x17
mov dword [rsp + 0x28], 0x81
and dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x49c88f
shl r12, 0x20
or r13, r12
test bx, bx
je 0x49c8fc
shr r13, 0x10
mov dword [rsp + 0x70], r13d
mov eax, dword [rsp + 0x38]
lea rcx, [rsp + 0x74]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x30]
rol di, 8
mov qword [rcx], rax
movaps xmm0, xmmword [rsp + 0x70]
mov r8d, 0x1c
mov ax, 0x17
mov ecx, dword [rsp + 0x6c]
jmp 0x49c917
mov dword [rsp + 0x68], r15d
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2739
je 0x49c8ae
mov r15d, eax
cmp eax, 0x2726
jne 0x49c958
mov dword [rsp + 0x28], 1
and dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x49c97a
mov r14, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.kernel32.dll_SetHandleInformation
test eax, eax
je 0x49c98e
mov r15d, dword [rsp + 0x68]
jmp 0x49c846
mov rdi, r13
shr rdi, 0x20
rol di, 8
xorps xmm0, xmm0
mov r8d, 0x10
mov ax, 2
mov ecx, r13d
mov word [rsp + 0x70], ax
mov word [rsp + 0x72], di
mov dword [rsp + 0x74], ecx
movups xmmword [rsp + 0x78], xmm0
mov dword [rsp + 0x88], r15d
mov rcx, r14
lea rdx, [rsp + 0x70]
call sub.ws2_32.dll_bind
cmp eax, 0xffffffff
jne 0x49ca09
call sub.ws2_32.dll_WSAGetLastError
mov r15d, eax
mov rcx, r14
call sub.ws2_32.dll_closesocket
shl r15, 0x20
or r15, 2
mov rcx, qword [rsp + 0x98]
call fcn.0049cdce
mov rcx, qword [rsp + 0xa0]
jmp 0x49c7ac
call sub.ws2_32.dll_WSAGetLastError
mov r15d, eax
jmp 0x49c958
call fcn.004c7900
jmp 0x49c80f
call sub.kernel32.dll_GetLastError
jmp 0x49c94d
lea rcx, [rsp + 0x40]
call fcn.0049ce27
test r15, r15
lea rbx, str.could_not_resolve_to_any_addresses
cmovne rbx, r15
mov eax, ebx
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x49c9f4
test rax, rax
je 0x49c9f4
lea rsi, [rbx - 1]
mov rcx, qword [rbx - 1]
mov rax, qword [rbx + 7]
call qword [rax]
mov rax, qword [rbx + 7]
cmp qword [rax + 8], 0
je 0x49c9e7
mov rcx, qword [rbx - 1]
mov rdx, qword [rax + 0x10]
call fcn.0040adb0
mov edx, 8
mov rcx, rsi
call fcn.0040adb0
nop
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x40]
call fcn.0049ce27
mov rcx, qword [rsp + 0x98]
call fcn.0049cdce
mov rcx, r14
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp sub.ws2_32.dll_closesocket
cmp r8, 0xd
je 0x49c9ad
sub r9, r8
cmp r9, 5
jae 0x49caa0
xor edx, edx
xor eax, eax
movzx r10d, byte [rcx + rdx]
add r10d, 0xffffffd0
cmp r10d, 9
ja 0x49c9ad
imul eax, eax, 0xa
add eax, r10d
inc rdx
cmp r9, rdx
jne 0x49ca52
lea rdx, [rsp + 0x40]
mov qword [rdx], rsi
mov qword [rdx + 8], r8
mov word [rdx + 0x10], ax
lea rsi, [rsp + 0x70]
mov rcx, rsi
call fcn.004ac660
cmp qword [rsi], 0
je 0x49cadc
mov rbx, qword [rsp + 0x78]
jmp 0x49c9ad
xor r10d, r10d
mov r11w, 0xa
xor eax, eax
cmp r9, r10
je 0x49ca73
movzx edi, byte [rcx + r10]
mul r11w
seto dl
add edi, 0xffffffd0
cmp edi, 9
ja 0x49c9ad
test dl, dl
jne 0x49c9ad
inc r10
add ax, di
jae 0x49caaa
jmp 0x49c9ad
lea rdi, [rsp + 0x70]
movzx eax, word [rdi + 0x18]
movzx ecx, word [rdi + 0x1e]
lea rdx, [rsp + 0x40]
mov word [rdx + 0x16], cx
mov ecx, dword [rdi + 0x1a]
mov dword [rdx + 0x12], ecx
movups xmm0, xmmword [rdi + 8]
lea rcx, [rsp + 0x30]
mov word [rcx], ax
movaps xmmword [rdx], xmm0
mov word [rdx + 0x10], ax
mov qword [rdx + 0x18], rcx
mov rcx, rdi
call fcn.004c2550
mov rax, qword [rdi]
mov rsi, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
shl rcx, 5
add rcx, rsi
jmp 0x49c78d
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str._repos_rust_1.70.0_library_std_src_sync_once.rs
mov edx, 0x2b
call fcn.00413c20
ud2
mov ecx, 0x20
mov edx, 4
call fcn.0040bce0
ud2