Function at 0x14006d6f0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x320]
sub rsp, 0x420
mov rax, qword [0x140124080]
xor rax, rsp
mov qword [rbp + 0x310], rax
mov r12, r9
mov rdi, r8
mov qword [rbp + 0x20], r8
mov rsi, rdx
mov r13, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rdx
mov rax, qword [rbp + 0x380]
mov qword [rsp + 0x38], rax
xor r15d, r15d
mov qword [rbp - 0x40], r15
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], r15
mov eax, 7
mov qword [rbp - 0x20], rax
mov word [rbp - 0x38], r15w
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], r15
mov qword [rbp], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x18], r15b
mov dword [rbp + 8], r15d
mov rbx, qword [r8]
test rbx, rbx
jne 0x14006d794
mov dword [rdx], 0xc00000ef
mov byte [rdx + 0x58], bl
jmp 0x14006da69
movups xmmword [rbp + 0x90], xmm0
mov rax, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x40], rax
mov qword [rbp + 0x90], rax
mov r14, r15
mov qword [rbp + 0x98], r15
movups xmmword [rbp + 0xc0], xmm0
movups xmmword [rbp + 0xd0], xmm0
movups xmmword [rbp + 0xe0], xmm0
movups xmmword [rbp + 0xf0], xmm0
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x100]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [r13 + 8]
mov qword [rbp + 0x10], r15
mov rax, qword [rax + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea rdx, [rbp + 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 0x40
lea r8, [rbp + 0xc0]
mov rdx, rbx
call qword [rax + Ordinal_26]
mov eax, 0x5a4d
cmp word [rbp + 0xc0], ax
je 0x14006d834
mov dword [rsi], 0xc000012f
mov byte [rsi + 0x58], 0
jmp 0x14006da69
mov rax, qword [r13 + 8]
movsxd rdx, dword [rbp + 0xfc]
add rdx, qword [rdi]
mov qword [rbp + 0x10], r15
je 0x14006d86c
mov rax, qword [rax + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rbp + 0x10]
mov qword [rsp + 0x20], r8
mov r9d, 0x108
lea r8, [rbp + 0x100]
call qword [rax + Ordinal_26]
cmp dword [rbp + 0x100], 0x4550
je 0x14006d887
mov dword [rsi], 0xc000007b
mov byte [rsi + 0x58], 0
jmp 0x14006da69
mov ebx, dword [rbp + 0x188]
mov edx, 0x10b
mov rax, qword [rbp + 0x118]
cmp ax, dx
cmove ebx, dword [rbp + 0x178]
mov edi, ebx
test ebx, ebx
je 0x14006da50
mov ecx, dword [rbp + 0x18c]
cmp ax, dx
cmove ecx, dword [rbp + 0x17c]
mov dword [rbp + 0x10], ecx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
mov r13, rax
mov qword [rbp + 0x98], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
mov qword [rbp + 0x18], r15
add rdx, rdi
jne 0x14006d8f3
mov eax, 0xc0000141
jmp 0x14006d915
mov rax, qword [rcx + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rbp + 0x18]
mov qword [rsp + 0x20], r8
mov r9d, dword [rbp + 0x10]
mov r8, r14
call qword [rax + Ordinal_26]
test eax, eax
jns 0x14006d920
mov dword [rsi], eax
mov byte [rsi + 0x58], 0
jmp 0x14006da5a
mov r10, r14
cmp dword [rbp + 0x10], 0x28
ja 0x14006d9bb
mov ecx, dword [r14 + 0x14]
cmp ecx, dword [r14 + 0x18]
cmovbe ecx, dword [r14 + 0x18]
imul eax, ecx, 0xff
add eax, dword [r14 + 0x24]
sub eax, ebx
mov dword [rbp + 0x10], eax
mov ebx, eax
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
mov qword [rbp + 0x98], rax
test r13, r13
je 0x14006d96c
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
mov qword [rbp + 0x18], r15
add rdx, rdi
jne 0x14006d98c
mov eax, 0xc0000141
jmp 0x14006d9b0
mov rax, qword [rcx + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rbp + 0x18]
mov qword [rsp + 0x20], r8
mov r9, rbx
mov r8, r14
call qword [rax + Ordinal_26]
mov r10, r14
test eax, eax
jns 0x14006d9bb
mov dword [rsi], eax
mov byte [rsi + 0x58], 0
jmp 0x14006da5a
mov ebx, dword [r10 + 0x24]
sub rbx, rdi
add rbx, r10
mov r13d, dword [r10 + 0x20]
sub r13, rdi
add r13, r10
mov eax, dword [r10 + 0x1c]
sub rax, rdi
add rax, r10
mov qword [rbp + 0x18], rax
mov r8d, r15d
cmp dword [r10 + 0x14], r15d
jbe 0x14006da50
cmp r12, 0xffff
ja 0x14006da03
movzx r11d, r8w
movzx ecx, r8w
add ecx, dword [r10 + 0x10]
movzx eax, r12w
cmp eax, ecx
jmp 0x14006da45
cmp r8d, dword [r10 + 0x18]
jae 0x14006e0bc
mov eax, r8d
mov ecx, dword [r13 + rax*4]
sub rcx, rdi
add rcx, r10
movzx r11d, word [rbx + rax*2]
mov r9, r12
sub r9, rcx
nop word [rax + rax]
movzx edx, byte [rcx]
movzx eax, byte [rcx + r9]
sub edx, eax
jne 0x14006da43
inc rcx
test eax, eax
jne 0x14006da30
test edx, edx
je 0x14006daa8
inc r8d
cmp r8d, dword [r10 + 0x14]
jb 0x14006d9e6
mov dword [rsi], 0xc0000225
mov byte [rsi + 0x58], 0
test r14, r14
je 0x14006da69
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rbp - 0x18]
call fcn.140055220
lea rcx, [rbp - 0x38]
call fcn.14006a970
mov rax, rsi
mov rcx, qword [rbp + 0x310]
xor rcx, rsp
call fcn.1400e9640
mov rbx, qword [rsp + 0x478]
add rsp, 0x420
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
movzx eax, r11w
mov rcx, qword [rbp + 0x18]
mov ebx, dword [rcx + rax*4]
add rbx, rdx
mov qword [rbp - 0x40], rbx
lea rax, [rdx + rdi]
cmp rbx, rax
jb 0x14006e058
mov eax, dword [rbp + 0x10]
add rax, rdx
add rax, rdi
cmp rbx, rax
ja 0x14006e058
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x210]
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx + 8]
mov qword [rbp + 0x18], r15
test rbx, rbx
je 0x14006db2d
mov rax, qword [rax + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea rdx, [rbp + 0x18]
mov qword [rsp + 0x20], rdx
mov r9d, 0xff
lea r8, [rbp + 0x210]
mov rdx, rbx
call qword [rax + Ordinal_26]
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], r15
mov qword [rbp + 0x48], r15
lea rax, [rbp + 0x210]
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14006db50
lea rdx, [rbp + 0x210]
lea rcx, [rbp + 0x30]
call fcn.1400559a0
nop
lea rbx, [rbp + 0x30]
cmp qword [rbp + 0x48], 0xf
cmova rbx, qword [rbp + 0x30]
mov r13, qword [rbp + 0x40]
cmp r13, 1
jb 0x14006dbc4
lea r12, [rbx + r13]
mov r8, r13
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x14006dbc4
nop dword [rax]
cmp byte [rax], 0x2e
je 0x14006dd4e
inc rax
mov r8, r12
sub r8, rax
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x14006dba0
mov rax, rdi
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x50], xmm1
cmp r13, rax
cmovb rax, r13
lea rdx, [rbp + 0x30]
cmp qword [rbp + 0x48], 0xf
cmova rdx, qword [rbp + 0x30]
mov r8, rax
lea rcx, [rbp - 0x60]
call fcn.1400559a0
nop
mov r8d, 4
lea rdx, str..dll
lea rcx, [rbp - 0x60]
call fcn.1400553e0
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xb0], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xa0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xb0], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rcx, [rbp - 0x60]
call fcn.140055220
lea r13, [rbp + 0x30]
mov rdx, qword [rbp + 0x30]
mov r9, qword [rbp + 0x48]
cmp r9, 0xf
cmova r13, rdx
mov rbx, qword [rbp + 0x40]
cmp rbx, 1
jb 0x14006dcb3
lea r12, [rbx + r13]
mov r8, rbx
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, r13
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x14006dcab
cmp byte [rax], 0x2e
je 0x14006dd56
inc rax
mov r8, r12
sub r8, rax
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x14006dc87
mov rdx, qword [rbp + 0x30]
mov r9, qword [rbp + 0x48]
mov rax, rdi
lea rcx, [rax + 1]
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], r15
mov qword [rbp + 0x68], r15
cmp rbx, rcx
jb 0x14006e0cb
sub rbx, rcx
mov r8, rdi
cmp rbx, rdi
cmovb r8, rbx
lea rax, [rbp + 0x30]
cmp r9, 0xf
cmova rax, rdx
lea rdx, [rax + rcx]
lea rcx, [rbp + 0x50]
call fcn.1400559a0
nop
lea rdx, [rbp + 0xa0]
lea rcx, [rbp + 0x70]
call fcn.14006c960
nop
mov byte [rbp + 0xa], 1
mov r12, qword [rbp + 0x80]
lea r9, [rbp + 0x70]
cmp qword [rbp + 0x88], 7
cmova r9, qword [rbp + 0x70]
mov eax, 7
cmp r12, rax
ja 0x14006dd66
lea rbx, [rbp - 0x38]
mov qword [rbp - 0x28], r12
lea r8, [r12 + r12]
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + r12*2], r15w
jmp 0x14006dd72
sub rax, rbx
jmp 0x14006dbc7
sub rax, r13
mov rdx, qword [rbp + 0x30]
mov r9, qword [rbp + 0x48]
jmp 0x14006dcb6
mov rdx, r12
lea rcx, [rbp - 0x38]
call fcn.14006ad90
lea rbx, [rbp + 0x50]
cmp qword [rbp + 0x68], 0xf
cmova rbx, qword [rbp + 0x50]
mov r13, qword [rbp + 0x60]
cmp r13, 1
jb 0x14006ddc7
lea r12, [rbx + r13]
mov r8, r13
mov edx, reloc.WLDAP32.dll_Ordinal_35
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x14006ddc7
cmp byte [rax], 0x23
je 0x14006df00
inc rax
mov r8, r12
sub r8, rax
mov edx, reloc.WLDAP32.dll_Ordinal_35
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x14006dda3
mov byte [rbp + 0xb], 0
lea rdx, [rbp + 0x50]
cmp qword [rbp + 0x68], 0xf
cmova rdx, qword [rbp + 0x50]
mov r8, r13
lea rcx, [rbp - 0x18]
call fcn.140055280
movzx ebx, byte [rbp + 0xb]
movzx r12d, word [rbp + 8]
mov eax, 0x10b
cmp word [rbp + 0x118], ax
setne r15b
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
xor r9d, r9d
lea r8, [rbp + 0x70]
lea rdx, [rbp + 0x20]
mov r15, qword [rsp + 0x30]
mov rcx, r15
call fcn.14006d390
nop
cmp qword [rbp + 0x20], 0
jne 0x14006df35
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp - 0x40]
mov qword [rsp + 0x50], rax
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x58]
call fcn.14006a790
nop
lea rdx, [rbp - 0x18]
lea rcx, [rsp + 0x78]
call fcn.140054f60
movzx eax, word [rbp + 8]
mov word [rbp - 0x68], ax
movzx eax, byte [rbp + 0xa]
mov byte [rbp - 0x66], al
movzx eax, byte [rbp + 0xb]
mov byte [rbp - 0x65], al
mov r8d, 0x107
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.14006fdf0
nop
mov rbx, qword [rbp + 0x28]
test rbx, rbx
je 0x14006dec3
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14006dec3
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14006dec3
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rcx, [rbp + 0x70]
call fcn.14006a970
nop
lea rcx, [rbp + 0x50]
call fcn.140055220
nop
lea rcx, [rbp + 0xa0]
call fcn.140055220
nop
lea rcx, [rbp + 0x30]
call fcn.140055220
nop
test r14, r14
je 0x14006defb
mov rcx, r14
call qword [rsp + 0x40]
nop
jmp 0x14006da69
sub rax, rbx
sete bl
mov byte [rbp + 0xb], bl
test rax, rax
jne 0x14006ddcb
lea rcx, [rbp + 0x50]
cmp qword [rbp + 0x68], 0xf
cmova rcx, qword [rbp + 0x50]
inc rcx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov r12d, eax
mov word [rbp + 8], ax
jmp 0x14006ddee
lea rax, [rbp + 0x70]
lea r8, [rbp + 0x20]
mov rdx, rsi
mov rcx, r15
test bl, bl
je 0x14006dfc4
cmp qword [rbp + 0x88], 7
cmova rax, qword [rbp + 0x70]
movzx r9d, r12w
mov qword [rsp + 0x20], rax
call fcn.14006d6c0
nop
mov rbx, qword [rbp + 0x28]
test rbx, rbx
je 0x14006df94
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14006df94
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14006df94
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rcx, [rbp + 0x70]
call fcn.14006a970
nop
lea rcx, [rbp + 0x50]
call fcn.140055220
nop
lea rcx, [rbp + 0xa0]
call fcn.140055220
nop
lea rcx, [rbp + 0x30]
call fcn.140055220
nop
jmp 0x14006e046
cmp qword [rbp + 0x88], 7
cmova rax, qword [rbp + 0x70]
lea r9, [rbp + 0x50]
cmp qword [rbp + 0x68], 0xf
cmova r9, qword [rbp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.14006d6c0
nop
mov rbx, qword [rbp + 0x28]
test rbx, rbx
je 0x14006e01b
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14006e01b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14006e01b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rcx, [rbp + 0x70]
call fcn.14006a970
nop
lea rcx, [rbp + 0x50]
call fcn.140055220
nop
lea rcx, [rbp + 0xa0]
call fcn.140055220
nop
lea rcx, [rbp + 0x30]
call fcn.140055220
nop
test r14, r14
je 0x14006e053
mov rcx, r14
call qword [rsp + 0x40]
nop
jmp 0x14006da69
mov qword [rsp + 0x50], rbx
movups xmm1, xmmword [rbp - 0x38]
movups xmmword [rsp + 0x58], xmm1
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rsp + 0x68], xmm0
mov qword [rbp - 0x28], r15
mov eax, 7
mov qword [rbp - 0x20], rax
mov word [rbp - 0x38], r15w
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rsp + 0x78], xmm1
movups xmm0, xmmword [rbp - 8]
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 8], r15
mov qword [rbp], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x18], 0
mov dword [rbp - 0x68], r15d
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.14006fdf0
nop
jmp 0x14006da5a
mov dword [rsi], 0xc0000225
mov byte [rsi + 0x58], 0
jmp 0x14006da5a
call fcn.1400595f0
int3