Function at 0x14001fe10
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1400c5080]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov dword [rsp + 0x54], r9d
mov r14, rdx
mov rsi, rcx
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x80], rdx
xor r15d, r15d
mov dword [rsp + 0x50], r15d
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, str.win32u.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r8, r14
lea rdx, str.C:WindowsSystem32drivers_
lea rcx, [rbp - 0x70]
call fcn.14002afe0
nop
mov rdi, qword [rbp - 0x60]
lea rbx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0x10
cmovae rbx, qword [rbp - 0x70]
call fcn.140096f58
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.14001e4c0
nop
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
mov r9d, 0xffffffff
lea r8d, [r15 + 3]
lea rdx, [rbp + 0x140]
call fcn.1400971e8
mov r8d, eax
test eax, eax
jne 0x14001ff23
mov ecx, dword [rbp + 0x150]
bt ecx, 0xa
jae 0x14001ff18
mov edx, dword [rbp + 0x154]
cmp edx, 0xa000000c
jne 0x14001ff09
lea ecx, [rax + 4]
jmp 0x14001ff3f
cmp edx, 0xa0000003
jne 0x14001ff18
mov ecx, 0xa
jmp 0x14001ff3f
and ecx, 0x10
or ecx, 0x20
shr ecx, 4
jmp 0x14001ff3f
sub eax, 2
je 0x14001ff3a
sub eax, 1
je 0x14001ff3a
sub eax, 0x32
je 0x14001ff3a
cmp eax, 0x46
mov ecx, r15d
jne 0x14001ff3f
mov ecx, 1
mov dword [rsp + 0x30], r8d
lea rax, [0x1400c50c8]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rbp - 0x30], xmm0
test ecx, ecx
je 0x14001ffa4
cmp ecx, 1
sete bl
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x14001ffb6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001ffb1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001ffb1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov bl, 1
test r8d, r8d
jne 0x140020802
jmp 0x14001ff64
call fcn.140097750
test bl, bl
je 0x1400200ad
xorps xmm0, xmm0
movups xmmword [rsi + 0x40], xmm0
mov qword [rsi], r15
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rsi], 0
mov qword [rsi + 0x20], r15
mov qword [rsi + 0x30], r15
mov qword [rsi + 0x38], reloc.WS2_32.dll_ntohs
mov byte [rsi + 0x20], 0
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x140020026
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140020021
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400207f4
call fcn.140097750
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x58], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x70], 0
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x140020070
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x14002006b
add rdx, 0x27
mov rax, qword [rcx - 8]
sub rcx, rax
add rcx, 0xfffffffffffffff8
cmp rcx, 0x1f
ja 0x1400207fb
mov rcx, rax
call fcn.140097750
mov qword [r14 + 0x10], r15
mov qword [r14 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r14], 0
mov rax, rsi
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140097730
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x30]
call sub.VCRUNTIME140.dll_memset
lea rbx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0x10
cmovae rbx, qword [rbp - 0x70]
lea rax, [0x1400b7fc0]
mov qword [rbp + 0x30], rax
lea rcx, [rbp + 0xe0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x50], reloc.WS2_32.dll_ntohl
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x30], rdi
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x2c], edx
lea rax, [rbp + 0x40]
mov qword [rsp + 0x60], rax
lea rcx, [rbp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x40], rax
mov byte [rbp + 0xbc], 0
mov byte [rbp + 0xb1], 0
lea rcx, [rbp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0xc0], r15
mov rax, qword [0x1400c6270]
mov qword [rbp + 0xb4], rax
mov qword [rbp + 0xa8], r15
mov r8d, reloc.WLDAP32.dll_Ordinal_33
mov rdx, rbx
lea rcx, [rbp + 0x40]
call fcn.14002a620
test rax, rax
jne 0x1400201af
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x30]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x30], rdi
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x2c], edx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rax
mov qword [rsp + 0x60], r15
mov word [rsp + 0x68], 1
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
mov rax, qword [rbp + rcx + 0x78]
mov qword [rsp + 0x30], rax
test rax, rax
sete byte [rsp + 0x38]
mov byte [rsp + 0x39], 0
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], r15
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x30], xmm0
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm1
lea rax, [rbp - 0x50]
mov qword [rsp + 0x60], rax
movzx r12d, byte [rsp + 0x39]
movzx edi, byte [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
movzx r13d, byte [rbp - 0x28]
mov r15, qword [rbp - 0x30]
test dil, dil
jne 0x140020269
test rbx, rbx
je 0x140020264
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x140020264
movzx r12d, al
jmp 0x140020266
xor ebx, ebx
mov dil, 1
test r13b, r13b
jne 0x140020287
test r15, r15
je 0x140020281
mov rcx, r15
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
jne 0x140020284
xor r15d, r15d
mov r13b, 1
test rbx, rbx
jne 0x1400203fc
test r15, r15
jne 0x140020405
mov eax, 0x5a4d
mov rcx, qword [rbp - 0x50]
cmp word [rcx], ax
je 0x140020474
xorps xmm0, xmm0
movups xmmword [rsi + 0x40], xmm0
mov qword [rsi], 0
mov qword [rsi + 0x10], 0
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rsi], 0
mov qword [rsi + 0x20], 0
mov qword [rsi + 0x30], 0
mov qword [rsi + 0x38], reloc.WS2_32.dll_ntohs
mov byte [rsi + 0x20], 0
mov rdx, qword [rbp - 0x40]
sub rdx, rcx
cmp rdx, 0x1000
mov rax, rcx
jb 0x140020314
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140020757
call fcn.140097750
xor ebx, ebx
xorps xmm0, xmm0
mov qword [rbp - 0x40], rbx
movdqu xmmword [rbp - 0x50], xmm0
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x30], rax
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x2c], edx
lea rcx, [rbp + 0x40]
call fcn.140029cc0
lea rcx, [rbp + 0x48]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xe0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x1400203a9
inc rdx
mov rcx, qword [rbp - 0x70]
cmp rdx, 0x1000
mov rax, rcx
jb 0x1400203a4
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400207f4
call fcn.140097750
mov byte [rbp - 0x70], 0
mov qword [rbp - 0x58], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x60], rbx
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x1400203f3
inc rdx
cmp rdx, 0x1000
mov rcx, qword [r14]
jb 0x1400203ee
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400207fb
mov rcx, r8
call fcn.140097750
mov qword [r14 + 0x10], rbx
jmp 0x140020074
test r15, r15
jne 0x140020299
test dil, dil
jne 0x140020425
test rbx, rbx
je 0x140020423
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x140020423
movzx r12d, al
jmp 0x140020425
xor ebx, ebx
mov byte [rsp + 0x20], r12b
mov rax, qword [rbp - 0x48]
cmp rax, qword [rbp - 0x40]
je 0x14002043d
mov byte [rax], r12b
inc qword [rbp - 0x48]
jmp 0x14002044f
lea r8, [rsp + 0x20]
mov rdx, qword [rbp - 0x48]
lea rcx, [rbp - 0x50]
call fcn.14002c710
test rbx, rbx
je 0x14002046a
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sbumpc_void____ptr64]
cmp eax, 0xffffffff
je 0x14002046a
xor dil, dil
jmp 0x140020246
xor ebx, ebx
mov dil, 1
jmp 0x140020246
movsxd rbx, dword [rcx + 0x3c]
add rbx, rcx
cmp dword [rbx], 0x4550
je 0x1400204c5
xorps xmm0, xmm0
movups xmmword [rsi + 0x40], xmm0
mov qword [rsi], 0
mov qword [rsi + 0x10], 0
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rsi], 0
mov qword [rsi + 0x20], 0
mov qword [rsi + 0x30], 0
mov qword [rsi + 0x38], reloc.WS2_32.dll_ntohs
mov byte [rsi + 0x20], 0
jmp 0x1400202e8
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
lea r8d, [r15 + 5]
lea rdx, [0x1400aab38]
lea rcx, [rsp + 0x30]
call fcn.140020980
lea r8, [rsp + 0x30]
mov rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.14001fcd0
mov eax, dword [rsp + 0x54]
mov rdi, qword [rbp - 0x30]
cmp rax, rdi
jbe 0x14002065a
xorps xmm0, xmm0
movups xmmword [rsi + 0x40], xmm0
mov qword [rsi], r15
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rsi], r15b
mov qword [rsi + 0x20], r15
mov qword [rsi + 0x30], r15
mov qword [rsi + 0x38], reloc.WS2_32.dll_ntohs
mov byte [rsi + 0x20], r15b
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140020586
mov rdx, qword [rbp - 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140020575
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140020757
call fcn.140097750
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], r15
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x30], rax
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x2c], edx
lea rcx, [rbp + 0x40]
call fcn.140029cc0
lea rcx, [rbp + 0x48]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xe0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x140020608
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140020603
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400207f4
call fcn.140097750
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x58], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x70], 0
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x140020070
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x14002006b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400207fb
mov rcx, r8
jmp 0x14002006b
mov qword [rbp - 0x20], r15
movdqa xmm0, xmmword [0x1400b8250]
movdqa xmmword [rbp - 0x10], xmm0
mov byte [rbp - 0x20], 0
mov qword [rbp], r15
movdqa xmmword [rbp + 0x10], xmm0
mov byte [rbp], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0x10
cmovae rdx, qword [rbp - 0x70]
mov r8, qword [rbp - 0x60]
lea rcx, [rbp - 0x20]
call fcn.140020980
lea rax, [rbp]
cmp rax, r14
je 0x1400206c1
mov rdx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x1400206b4
mov rdx, qword [r14]
mov r8, qword [r14 + 0x10]
lea rcx, [rbp]
call fcn.140020980
movzx ecx, word [rbx + 6]
mov dword [rbp + 0x28], ecx
mov rax, qword [rbp - 0x28]
mov dword [rbp + 0x20], eax
mov dword [rbp + 0x24], edi
movaps xmm0, xmmword [rbp - 0x20]
movups xmmword [rsi], xmm0
movaps xmm1, xmmword [rbp - 0x10]
movups xmmword [rsi + 0x10], xmm1
movdqa xmm0, xmmword [0x1400b8250]
movdqa xmmword [rbp - 0x10], xmm0
mov byte [rbp - 0x20], 0
movaps xmm0, xmmword [rbp]
movups xmmword [rsi + 0x20], xmm0
movaps xmm1, xmmword [rbp + 0x10]
movups xmmword [rsi + 0x30], xmm1
movdqa xmm0, xmmword [0x1400b8250]
movdqa xmmword [rbp + 0x10], xmm0
mov byte [rbp], 0
mov dword [rsi + 0x40], eax
mov dword [rsi + 0x44], edi
mov dword [rsi + 0x48], ecx
lea rcx, [rbp - 0x20]
call fcn.140020890
nop
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14002076f
mov rdx, qword [rbp - 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002075e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002075e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140097750
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], r15
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x30], rax
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x2c], edx
lea rcx, [rbp + 0x40]
call fcn.140029cc0
lea rcx, [rbp + 0x48]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xe0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x140020608
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140020603
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140020603
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x30]
lea rcx, str.exists
call fcn.14001ee60
int3