Function at 0x140020300
Capabilities:
Enumerate pe sections

Disassembly:
mov byte [rsp + 0x18], r8b
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x20]
lea rcx, reloc.WS2_32.dll_accept
call fcn.140011668
mov qword [rbp + 8], 0
mov dword [rbp + 0x64], 1
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0xf0]
mov qword [rbp + 0x28], rax
jmp 0x140020357
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x1a0]
add rax, 0xf0
cmp qword [rbp + 0x28], rax
je 0x14002039c
mov rax, qword [rbp + 0x28]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movzx eax, word [rax + 0x10]
movzx ecx, word [rbp + 0x1a8]
cmp eax, ecx
jne 0x14002039a
mov rax, qword [rbp + 8]
movzx eax, byte [rax + 0x29]
movzx ecx, byte [rbp + 0x1b0]
cmp eax, ecx
jne 0x14002039a
jmp 0x14002039c
jmp 0x14002034c
mov rax, qword [rbp + 0x1a0]
add rax, 0xf0
cmp qword [rbp + 0x28], rax
jne 0x14002040d
mov rax, qword [rbp + 0x1a0]
add rax, 0x110
movzx r8d, byte [rbp + 0x1b0]
movzx edx, word [rbp + 0x1a8]
mov rcx, rax
call fcn.14001c1b0
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140020406
mov rax, qword [rbp + 0x1a0]
add rax, 0x100
movzx r8d, byte [rbp + 0x1b0]
movzx edx, word [rbp + 0x1a8]
mov rcx, rax
call fcn.14001c1b0
mov qword [rbp + 8], rax
mov dword [rbp + 0x64], 0
cmp qword [rbp + 8], 0
jne 0x14002041b
xor eax, eax
jmp 0x1400205f1
movzx eax, byte [rbp + 0x1b0]
mov rcx, qword [rbp + 0x1a0]
cmp rax, qword [rcx + 0x48]
jae 0x1400204fa
movzx eax, byte [rbp + 0x1b0]
imul rax, rax, 0x50
mov rcx, qword [rbp + 0x1a0]
add rax, qword [rcx + 0x40]
mov qword [rbp + 0x88], rax
movzx eax, word [rbp + 0x1a8]
cdq
and edx, 0xfff
add eax, edx
sar eax, 0xc
mov word [rbp + 0xa4], ax
movzx eax, word [rbp + 0xa4]
mov rcx, qword [rbp + 0x88]
movzx eax, word [rcx + rax*2 + 6]
test eax, eax
jle 0x1400204fa
movzx eax, word [rbp + 0xa4]
mov rcx, qword [rbp + 0x88]
movzx eax, word [rcx + rax*2 + 6]
dec ax
movzx ecx, word [rbp + 0xa4]
mov rdx, qword [rbp + 0x88]
mov word [rdx + rcx*2 + 6], ax
movzx eax, word [rbp + 0xa4]
mov rcx, qword [rbp + 0x88]
movzx eax, word [rcx + rax*2 + 6]
test eax, eax
jne 0x1400204fa
movzx eax, word [rbp + 0xa4]
mov ecx, 1
mov dword [rbp + 0x174], ecx
movzx ecx, al
mov eax, dword [rbp + 0x174]
shl eax, cl
not eax
mov rcx, qword [rbp + 0x88]
movzx ecx, word [rcx + 4]
and ecx, eax
mov eax, ecx
mov rcx, qword [rbp + 0x88]
mov word [rcx + 4], ax
mov rax, qword [rbp + 8]
movzx eax, byte [rax + 0x28]
and eax, 0xf
mov dword [rbp + 0x44], eax
mov rax, qword [rbp + 8]
mov rcx, rax
call fcn.1400116d1
mov rax, qword [rbp + 8]
cmp qword [rax + 0x58], 0
je 0x140020599
cmp dword [rbp + 0x64], 0
je 0x14002054b
mov rax, qword [rbp + 8]
movzx eax, word [rax + 0x24]
mov rcx, qword [rbp + 0x1a0]
mov ecx, dword [rcx + 0xd8]
sub ecx, eax
mov eax, ecx
mov rcx, qword [rbp + 0x1a0]
mov dword [rcx + 0xd8], eax
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x58]
mov rax, qword [rax]
dec rax
mov rcx, qword [rbp + 8]
mov rcx, qword [rcx + 0x58]
mov qword [rcx], rax
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x58]
cmp qword [rax], 0
jne 0x140020599
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x58]
mov eax, dword [rax + 8]
bts eax, 8
mov rcx, qword [rbp + 8]
mov rcx, qword [rcx + 0x58]
mov dword [rcx + 8], eax
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0x58]
call fcn.140011339
mov rcx, qword [rbp + 8]
call fcn.1400111fe
mov rax, qword [rbp + 0x1a0]
add rax, 0xf0
mov rcx, qword [rbp + 0x1a0]
cmp qword [rcx + 0xf0], rax
jne 0x1400205c4
mov eax, dword [rbp + 0x44]
jmp 0x1400205f1
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0xf0]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov eax, dword [rax + 0x14]
mov rcx, qword [rbp + 8]
add eax, dword [rcx + 0x18]
mov rcx, qword [rbp + 0x1a0]
mov dword [rcx + 0x70], eax
mov eax, dword [rbp + 0x44]
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret