Function at 0x140170770
Capabilities:
Enumerate pe sections

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
movzx r14d, dx
mov rsi, qword [rcx + 0x40]
cmp rsi, r14
jbe 0x140170b4a
mov ebp, r8d
mov rdi, rcx
lea rbx, [rcx + 0x30]
mov rax, qword [rcx + 0x30]
movzx ecx, word [rax + r14*2]
mov r8d, ecx
shr r8d, 0xc
je 0x14017082f
cmp r8d, 1
jne 0x140170810
mov eax, ecx
and eax, 0xfff
mov rdx, qword [rdi + 0x10]
cmp rdx, rax
jbe 0x140170b6c
mov rdx, qword [rdi]
imul r9, rax, 0x32
lea rax, [rdx + r9]
movzx edx, byte [rdx + r9 + 0x30]
cmp dl, 0x10
mov r9d, reloc.WS2_32.dll_recv
cmovb r9d, edx
movzx edx, r9b
xor r9d, r9d
cmp rdx, r9
je 0x140170810
lea r10, [r9 + 1]
cmp byte [rax + r9 + 0x20], bpl
mov r9, r10
jne 0x1401707f0
movzx esi, word [rax + r10*2 - 2]
xor eax, eax
jmp 0x1401709a5
cmp r8w, 1
je 0x140170895
movzx eax, r8w
test eax, eax
jne 0x1401708f6
mov rdx, qword [rdi + 0x28]
and ecx, 0xfff
jmp 0x140170869
and ecx, 0xfff
mov rdx, qword [rdi + 0x28]
cmp rdx, rcx
jbe 0x140170b7d
mov rax, rcx
shl rax, 9
add rax, qword [rdi + 0x18]
movzx r8d, bpl
movzx r8d, word [rax + r8*2]
cmp r8d, 0x1000
jae 0x140170869
xor eax, eax
mov esi, r8d
jmp 0x1401709a5
cmp rdx, rcx
jbe 0x140170b5e
shl rcx, 9
add rcx, qword [rdi + 0x18]
movzx eax, bpl
mov word [rcx + rax*2], si
mov rdx, qword [rdi + 0x40]
cmp rdx, qword [rdi + 0x38]
je 0x140170987
jmp 0x140170993
mov qword [rsp + 0x20], rbx
and ecx, 0xfff
mov rdx, qword [rdi + 0x10]
cmp rdx, rcx
jbe 0x140170b8b
mov r15, qword [rdi]
imul rbx, rcx, 0x32
lea r12, [r15 + rbx]
lea r13, [r15 + rbx]
add r13, 0x30
movzx eax, byte [r15 + rbx + 0x30]
cmp rax, 0x10
jae 0x1401709b8
mov byte [rax + r12 + 0x20], bpl
mov word [r12 + rax*2], si
inc byte [r13]
mov rbx, qword [rsp + 0x20]
mov rdx, qword [rdi + 0x40]
cmp rdx, qword [rdi + 0x38]
je 0x140170987
jmp 0x140170993
mov r15, qword [rdi + 0x10]
mov rax, r15
cmp r15, qword [rdi + 8]
jne 0x140170912
mov rcx, rdi
mov rdx, r15
call fcn.140170ca0
mov rax, qword [rdi + 0x10]
mov rcx, qword [rdi]
imul rax, rax, 0x32
xorps xmm0, xmm0
movups xmmword [rcx + rax + 0x20], xmm0
movups xmmword [rcx + rax + 0x10], xmm0
movups xmmword [rcx + rax], xmm0
mov byte [rcx + rax + 0x30], 0
mov rax, qword [rdi]
mov rcx, qword [rdi + 0x10]
mov rdx, rcx
inc rdx
mov qword [rdi + 0x10], rdx
je 0x140170bb3
test rax, rax
je 0x140170bb3
imul rcx, rcx, 0x32
mov word [rax + rcx], si
mov byte [rax + rcx + 0x20], bpl
mov byte [rax + rcx + 0x30], 1
mov rdx, qword [rdi + 0x40]
cmp rdx, r14
jbe 0x140170b99
mov rax, qword [rbx]
or r15d, 0x1000
mov word [rax + r14*2], r15w
mov rdx, qword [rdi + 0x40]
cmp rdx, qword [rdi + 0x38]
jne 0x140170993
mov rcx, rbx
call fcn.14007bff0
mov rdx, qword [rdi + 0x40]
mov rax, qword [rdi + 0x30]
mov word [rax + rdx*2], 0x2000
inc qword [rdi + 0x40]
mov ax, 1
mov edx, esi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rbp, qword [rdi + 0x28]
mov rcx, rbp
cmp rbp, qword [rdi + 0x20]
jne 0x1401709d5
lea rcx, [rdi + 0x18]
mov rdx, rbp
call fcn.140170be0
mov rcx, qword [rdi + 0x28]
shl rcx, 9
add rcx, qword [rdi + 0x18]
mov r8d, 0x200
mov dl, 0xff
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rdi + 0x18]
mov rdx, qword [rdi + 0x28]
mov rcx, rdx
inc rcx
mov qword [rdi + 0x28], rcx
je 0x140170bc3
test rax, rax
je 0x140170bc3
lea rcx, [r15 + rbx]
add rcx, 0x20
sub r13, rcx
cmp r13, 0x10
mov r8d, reloc.WS2_32.dll_recv
cmovb r8, r13
test r8, r8
je 0x140170b21
shl rdx, 9
add rax, rdx
movzx edx, byte [rcx]
movzx r8d, word [r12]
mov word [rax + rdx*2], r8w
movzx edx, byte [rcx + 1]
movzx r8d, word [r12 + 2]
mov word [rax + rdx*2], r8w
movzx edx, byte [rcx + 2]
movzx r8d, word [r12 + 4]
mov word [rax + rdx*2], r8w
movzx edx, byte [rcx + 3]
movzx r8d, word [r12 + 6]
mov word [rax + rdx*2], r8w
movzx edx, byte [rcx + 4]
movzx r8d, word [r12 + 8]
mov word [rax + rdx*2], r8w
movzx edx, byte [rcx + 5]
movzx r8d, word [r12 + 0xa]
mov word [rax + rdx*2], r8w
movzx edx, byte [rcx + 6]
movzx r8d, word [r12 + 0xc]
mov word [rax + rdx*2], r8w
movzx edx, byte [rcx + 7]
movzx r8d, word [r12 + 0xe]
mov word [rax + rdx*2], r8w
movzx edx, byte [rcx + 8]
movzx r8d, word [r12 + 0x10]
mov word [rax + rdx*2], r8w
movzx edx, byte [rcx + 9]
movzx r8d, word [r12 + 0x12]
mov word [rax + rdx*2], r8w
movzx edx, byte [rcx + 0xa]
movzx r8d, word [r12 + 0x14]
mov word [rax + rdx*2], r8w
movzx edx, byte [rcx + 0xb]
movzx r8d, word [r12 + 0x16]
mov word [rax + rdx*2], r8w
movzx edx, byte [rcx + 0xc]
movzx r8d, word [r12 + 0x18]
mov word [rax + rdx*2], r8w
movzx edx, byte [rcx + 0xd]
movzx r8d, word [r12 + 0x1a]
mov word [rax + rdx*2], r8w
movzx edx, byte [rcx + 0xe]
movzx r8d, word [r12 + 0x1c]
mov word [rax + rdx*2], r8w
movzx ecx, byte [rcx + 0xf]
movzx edx, word [r12 + 0x1e]
mov word [rax + rcx*2], dx
mov rdx, qword [rdi + 0x40]
cmp rdx, r14
jbe 0x140170ba2
mov rbx, qword [rsp + 0x20]
mov rax, qword [rbx]
mov word [rax + r14*2], bp
mov rdx, qword [rdi + 0x40]
cmp rdx, qword [rdi + 0x38]
je 0x140170987
jmp 0x140170993
lea r8, str.C:Usershp.cargo_registry_srcindex.crates.io_6f17d22bba15001fweezl_0.1.7_srcencode.rs
mov rcx, r14
mov rdx, rsi
call fcn.1401fc170
ud2
lea r8, str.C:Usershp.cargo_registry_srcindex.crates.io_6f17d22bba15001fweezl_0.1.7_srcencode.rs
call fcn.1401fc170
ud2
lea r8, str.C:Usershp.cargo_registry_srcindex.crates.io_6f17d22bba15001fweezl_0.1.7_srcencode.rs
mov rcx, rax
call fcn.1401fc170
ud2
lea r8, str.C:Usershp.cargo_registry_srcindex.crates.io_6f17d22bba15001fweezl_0.1.7_srcencode.rs
call fcn.1401fc170
ud2
lea r8, str.C:Usershp.cargo_registry_srcindex.crates.io_6f17d22bba15001fweezl_0.1.7_srcencode.rs
call fcn.1401fc170
ud2
lea r8, str.C:Usershp.cargo_registry_srcindex.crates.io_6f17d22bba15001fweezl_0.1.7_srcencode.rs
jmp 0x140170ba9
lea r8, str.C:Usershp.cargo_registry_srcindex.crates.io_6f17d22bba15001fweezl_0.1.7_srcencode.rs
mov rcx, r14
call fcn.1401fc170
ud2
lea rcx, [0x140269dc8]
lea r8, str.C:Usershp.cargo_registry_srcindex.crates.io_6f17d22bba15001fweezl_0.1.7_srcencode.rs
jmp 0x140170bd1
lea rcx, [0x140269dc8]
lea r8, str.C:Usershp.cargo_registry_srcindex.crates.io_6f17d22bba15001fweezl_0.1.7_srcencode.rs
mov edx, 0x2b
call fcn.1401fc0d0
ud2