Function at 0x140016a20
Capabilities:
Allocate or change rwx memory
Create directory
Delete file
Download url
Enumerate pe sections
Receive data

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x278]
sub rsp, 0x378
mov rax, qword [0x140029040]
xor rax, rsp
mov qword [rbp + 0x260], rax
mov qword [rsp + 0x60], r9
mov qword [rsp + 0x58], r8
mov rdi, rdx
mov rbx, rcx
cmp byte [rcx + 0x60], 0
je 0x140016a6d
mov eax, 1
jmp 0x1400177a2
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
cmp qword [rdi + 0x18], 7
jbe 0x140016a89
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.140017830
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x6c], edx
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::good_void_const___ptr64]
test al, al
jne 0x140016ae3
mov edi, 2
jmp 0x14001770d
lea rdx, [rbp + 0xd8]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____cdecl_std::basic_istream_char__struct_std::char_traits_char__::tellg_void____ptr64]
mov rcx, qword [rbp + 0xd8]
add rcx, qword [rbp + 0xe0]
jne 0x140016b0f
mov edi, 3
jmp 0x14001770d
lea rdx, [0x14001ba4e]
call fcn.140018ee8
mov r13, rax
test rax, rax
jne 0x140016b61
xor ecx, ecx
call fcn.140018b60
lea rcx, [rbp - 0x80]
call fcn.140013f00
test rax, rax
jne 0x140016b57
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov edi, 4
jmp 0x14001770d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
mov r8, qword [rbp + 0xe0]
add r8, qword [rbp + 0xd8]
mov rdx, r13
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
lea rcx, [rbp - 0x80]
call fcn.140013f00
mov edi, 2
test rax, rax
jne 0x140016bbc
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
xor r8d, r8d
mov edx, edi
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
movsxd r14, dword [r13 + 0x3c]
add r14, r13
xor r12b, r12b
mov byte [rsp + 0x40], r12b
movzx eax, word [r14 + 4]
mov ecx, 0x8664
cmp ax, cx
jne 0x140016c05
lea rax, [r14 + 0xb8]
mov qword [rbp + 0x88], rax
lea r15, [r14 + 0x54]
lea rcx, [r14 + 0x50]
mov qword [rsp + 0x48], 0x90
mov esi, 0x3c
mov eax, 0x38
jmp 0x140016c45
mov ecx, 0x14c
cmp ax, cx
jne 0x140017700
mov r12b, 1
mov byte [rsp + 0x40], r12b
mov qword [rbp + 0x88], 0xa0
mov ecx, 0x38
mov r15d, 0x3c
lea rax, [r14 + 0xa8]
mov qword [rsp + 0x48], rax
lea rsi, [r14 + 0x54]
lea rax, [r14 + 0x50]
test r12b, r12b
cmove rax, rcx
mov edx, dword [rax]
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x140016c87
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x64], eax
mov rcx, r13
call fcn.140018b60
mov edi, 6
jmp 0x14001770d
test r12b, r12b
cmove rsi, r15
mov r8d, dword [rsi]
mov rdx, r13
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
movzx esi, word [r14 + 0x14]
add rsi, 0x2c
xor r12d, r12d
mov r15d, r12d
cmp word [r14 + 6], r12w
je 0x140016cf0
add rsi, r14
mov rdi, qword [rsp + 0x50]
nop word [rax + rax]
mov eax, dword [rsi - 4]
test eax, eax
je 0x140016cda
mov r8d, eax
mov edx, dword [rsi]
add rdx, r13
mov ecx, dword [rsi - 8]
add rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
inc r15d
add rsi, 0x28
movzx eax, word [r14 + 6]
cmp r15d, eax
jne 0x140016cc0
mov edi, 2
movzx r14d, byte [rsp + 0x40]
test r14b, r14b
mov rcx, qword [rbp + 0x88]
cmovne rcx, qword [rsp + 0x48]
mov eax, dword [rcx]
mov r9, qword [rsp + 0x50]
cmp dword [rcx + 4], r12d
je 0x140016d31
cmp dword [rax + r9 + 0xc], 2
jne 0x140016d31
mov r15d, dword [rax + r9 + 0x14]
add r15, r9
mov qword [rsp + 0x48], r15
cmp dword [r15], 0x53445352
je 0x140016d54
xor edx, edx
mov r8d, 0x8000
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, r13
call fcn.140018b60
mov edi, 7
jmp 0x14001770d
lea rsi, [rbx + 0x10]
mov rdx, qword [rsp + 0x58]
mov rcx, rsi
call fcn.140017a30
mov rcx, rsi
mov rdx, qword [rsi + 0x18]
cmp rdx, 7
jbe 0x140016d75
mov rcx, qword [rsi]
mov rax, qword [rbx + 0x20]
cmp word [rcx + rax*2 - 2], 0x5c
je 0x140016db2
mov rcx, qword [rsi + 0x10]
cmp rcx, rdx
jae 0x140016da4
lea rax, [rcx + 1]
mov qword [rsi + 0x10], rax
cmp rdx, 7
jbe 0x140016d9b
mov rsi, qword [rsi]
mov dword [rsi + rcx*2], 0x5c
jmp 0x140016db2
mov r9d, 0x5c
mov rcx, rsi
call fcn.140017ad0
lea rcx, [rbx + 0x10]
cmp qword [rcx + 0x18], 7
jbe 0x140016dc0
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140016dec
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140016dec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x64], eax
mov edi, 8
jmp 0x14001770d
lea rax, str.Pdbx86_
lea rdx, str.Pdbx64_
test r14b, r14b
cmovne rdx, rax
lea rcx, [rbx + 0x10]
call fcn.1400133e0
lea rcx, [rbx + 0x10]
cmp qword [rcx + 0x18], 7
jbe 0x140016e18
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140016e44
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140016e44
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x64], eax
mov edi, 9
jmp 0x14001770d
lea rcx, [r15 + 0x18]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cdqe
mov qword [rbp + 0x88], rax
lea rcx, [rax + 1]
mov rax, rdi
mul rcx
mov r14, rax
mov rax, 0xffffffffffffffff
cmovb r14, rax
lea rdx, [0x14001ba4e]
mov rcx, r14
call fcn.140018ee8
mov rsi, rax
test rax, rax
je 0x140016b57
mov r8, r14
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0xb0], r12
mov rax, qword [rbp + 0x88]
mov qword [rsp + 0x20], rax
lea r9, [r15 + 0x18]
lea r8, [rax + 1]
mov rdx, rsi
lea rcx, [rbp + 0xb0]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs_s]
test eax, eax
jne 0x1400176ee
cmp qword [rbp + 0xb0], r12
je 0x1400176ee
lea rcx, [rbx + 0x10]
mov rdx, rsi
call fcn.1400133e0
mov rcx, rsi
call fcn.140018b60
mov dword [rsp + 0x58], r12d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0xf0], xmm0
movups xmmword [rbp + 0x100], xmm0
mov dword [rbp + 0x110], eax
lea rcx, [rbx + 0x10]
cmp qword [rcx + 0x18], 7
jbe 0x140016f17
mov rcx, qword [rcx]
lea r8, [rbp + 0xf0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
mov r15d, 0xf
mov rsi, qword [rsp + 0x48]
test eax, eax
je 0x140016f69
mov r14d, dword [rbp + 0x110]
mov dword [rsp + 0x58], r14d
lea rdx, [rsi + 4]
mov rcx, rbx
call fcn.1400162f0
test al, al
jne 0x140017440
lea rcx, [rbx + 0x10]
cmp qword [rcx + 0x18], 7
jbe 0x140016f63
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edx, edx
mov r8d, 0xc8
lea rcx, [rbp + 0x190]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsi + 4]
mov r8d, 0x64
lea rdx, [rbp + 0x190]
call qword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x140016fbd
xor edx, edx
mov r8d, 0x8000
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, r13
call fcn.140018b60
mov edi, 0xb
jmp 0x14001770d
lea rdx, [rbp + 0x190]
lea rcx, str._INFO_GUID___ls_n
call fcn.140001180
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x120], xmm0
movups xmmword [rbp + 0x130], xmm0
movups xmmword [rbp + 0x140], xmm0
movups xmmword [rbp + 0x150], xmm0
movups xmmword [rbp + 0x160], xmm0
movups xmmword [rbp + 0x170], xmm0
mov dword [rbp + 0x180], eax
mov qword [rbp + 0x88], r12
mov qword [rsp + 0x20], 0x64
lea r9, [rbp + 0x190]
mov r8d, 0x64
lea rdx, [rbp + 0x120]
lea rcx, [rbp + 0x88]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs_s]
test eax, eax
jne 0x1400176c9
cmp qword [rbp + 0x88], r12
je 0x1400176c9
xorps xmm0, xmm0
movups xmmword [rbp + 0xb8], xmm0
mov qword [rbp + 0xc8], r12
mov r14, r15
mov qword [rbp + 0xd0], r15
mov byte [rbp + 0xb8], r12b
mov esi, r12d
mov rax, r12
nop dword [rax]
nop word [rax + rax]
movzx r9d, byte [rbp + rax + 0x120]
lea eax, [r9 - 0x30]
cmp al, 9
jbe 0x1400170a1
lea eax, [r9 - 0x41]
cmp al, 5
jbe 0x1400170a1
lea eax, [r9 - 0x61]
cmp al, 5
ja 0x1400170e9
mov rcx, qword [rbp + 0xc8]
cmp rcx, r14
jae 0x1400170d6
lea rax, [rcx + 1]
mov qword [rbp + 0xc8], rax
lea rax, [rbp + 0xb8]
cmp r14, 0xf
cmova rax, qword [rbp + 0xb8]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400170e2
lea rcx, [rbp + 0xb8]
call fcn.1400155b0
mov r14, qword [rbp + 0xd0]
inc esi
mov eax, esi
cmp rax, qword [rbp + 0x88]
jne 0x140017080
xor eax, eax
mov word [rbp + 0x80], ax
mov byte [rbp + 0x82], al
mov r9d, 0xa
mov r8d, 3
lea rdx, [rbp + 0x80]
mov rsi, qword [rsp + 0x48]
mov ecx, dword [rsi + 0x14]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa_s]
xorps xmm0, xmm0
movups xmmword [rbp + 0x90], xmm0
mov qword [rbp + 0xa0], r12
mov qword [rbp + 0xa8], r12
mov r8d, 0x2c
lea rdx, str.https:__msdl.microsoft.com_download_symbols_
lea rcx, [rbp + 0x90]
call fcn.140015270
nop
lea rdx, [rsi + 0x18]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140017163
lea rcx, [rbp + 0x90]
call fcn.140014120
mov rcx, qword [rbp + 0xa0]
mov rdx, qword [rbp + 0xa8]
cmp rcx, rdx
jae 0x1400171b2
lea rax, [rcx + 1]
mov qword [rbp + 0xa0], rax
lea rax, [rbp + 0x90]
cmp rdx, 0xf
cmova rax, qword [rbp + 0x90]
mov word [rax + rcx], 0x2f
jmp 0x1400171c1
mov r9b, 0x2f
lea rcx, [rbp + 0x90]
call fcn.1400155b0
lea rdx, [rbp + 0xb8]
cmp r14, 0xf
cmova rdx, qword [rbp + 0xb8]
mov r8, qword [rbp + 0xc8]
lea rcx, [rbp + 0x90]
call fcn.140014120
lea rax, [rbp + 0x80]
mov r14, 0xffffffffffffffff
mov r8, r14
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140017200
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x90]
call fcn.140014120
mov rcx, qword [rbp + 0xa0]
mov rdx, qword [rbp + 0xa8]
cmp rcx, rdx
jae 0x140017256
lea rax, [rcx + 1]
mov qword [rbp + 0xa0], rax
lea rax, [rbp + 0x90]
cmp rdx, 0xf
cmova rax, qword [rbp + 0x90]
mov word [rax + rcx], 0x2f
jmp 0x140017265
mov r9b, 0x2f
lea rcx, [rbp + 0x90]
call fcn.1400155b0
lea rdx, [rsi + 0x18]
mov r8, r14
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140017270
lea rcx, [rbp + 0x90]
call fcn.140014120
mov r14, qword [rbp + 0xa0]
lea rcx, [r14 + 1]
mov rax, rdi
mul rcx
mov rsi, rax
mov rax, 0xffffffffffffffff
cmovb rsi, rax
lea rdx, [0x14001ba4e]
mov rcx, rsi
call fcn.140018ee8
mov rdi, rax
test rax, rax
je 0x14001761f
mov r8, rsi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0xb0], r12
lea r9, [rbp + 0x90]
cmp qword [rbp + 0xa8], 0xf
cmova r9, qword [rbp + 0x90]
mov qword [rsp + 0x20], r14
lea r8, [r14 + 1]
mov rdx, rdi
lea rcx, [rbp + 0xb0]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs_s]
test eax, eax
jne 0x14001760d
cmp qword [rbp + 0xb0], 0
je 0x14001760d
mov rsi, qword [rsp + 0x48]
mov edx, dword [rsi + 0x14]
lea rcx, str._INFO_Age____08X_n
call fcn.140001180
lea rdx, [rsi + 0x18]
lea rcx, str._INFO_Name___s_n
call fcn.140001180
mov rdx, rdi
lea rcx, str._INFO_URL____ls_n
call fcn.140001180
lea r8, [rbx + 0x10]
cmp qword [r8 + 0x18], 7
jbe 0x14001735b
mov r8, qword [r8]
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov esi, eax
mov rcx, rdi
call fcn.140018b60
test esi, esi
jns 0x1400173a4
mov dword [rbx + 0x64], esi
xor edx, edx
mov r8d, 0x8000
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, r13
call fcn.140018b60
mov edi, 0xd
jmp 0x140017624
mov rdx, qword [rbp + 0xa8]
cmp rdx, 0xf
jbe 0x1400173e5
inc rdx
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400173e0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001765c
call fcn.140018b60
mov qword [rbp + 0xa0], r12
mov qword [rbp + 0xa8], r15
mov byte [rbp + 0x90], 0
mov rdx, qword [rbp + 0xd0]
cmp rdx, 0xf
jbe 0x14001743b
inc rdx
mov rcx, qword [rbp + 0xb8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017436
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400176b5
call fcn.140018b60
mov r14d, dword [rsp + 0x58]
xor edx, edx
mov r8d, 0x8000
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, r13
call fcn.140018b60
test r14d, r14d
jne 0x1400174a1
lea rcx, [rbx + 0x10]
cmp qword [rcx + 0x18], 7
jbe 0x14001746e
mov rcx, qword [rcx]
lea r8, [rbp + 0xf0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x14001749a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x64], eax
mov edi, 0xe
mov r15d, edi
mov r12d, edi
jmp 0x140017710
mov r14d, dword [rbp + 0x110]
lea rcx, [rbx + 0x10]
cmp qword [rcx + 0x18], 7
jbe 0x1400174af
mov rcx, qword [rcx]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400174ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x64], eax
mov r12d, r15d
jmp 0x140017710
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbx], rax
test rax, rax
jne 0x14001752d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x64], eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15d, 0x11
mov r12d, r15d
jmp 0x140017710
lea rdx, [rbx + 0x10]
cmp qword [rdx + 0x18], 7
jbe 0x14001753b
mov rdx, qword [rdx]
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.dbghelp.dll_SymInitializeW]
test eax, eax
jne 0x140017574
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x64], eax
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15d, 0x12
mov r12d, r15d
jmp 0x140017710
mov ecx, 0x10006
call qword [sym.imp.dbghelp.dll_SymSetOptions]
lea r8, [rbx + 0x10]
cmp qword [r8 + 0x18], 7
jbe 0x14001758d
mov r8, qword [r8]
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], 0x10000000
xor r9d, r9d
xor edx, edx
mov rcx, qword [rbx]
call qword [sym.imp.dbghelp.dll_SymLoadModuleExW]
mov qword [rbx + 0x38], rax
test rax, rax
jne 0x1400175ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x64], eax
mov rcx, qword [rbx]
call qword [sym.imp.dbghelp.dll_SymCleanup]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15d, 0x13
mov r12d, r15d
jmp 0x140017710
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x140017604
lea rdx, [rbx + 0x10]
mov rcx, rax
call fcn.140017a30
mov byte [rbx + 0x60], 1
jmp 0x140017710
mov dword [rbx + 0x64], eax
mov rcx, rdi
call fcn.140018b60
mov edi, 0x18
jmp 0x140017624
mov edi, 4
mov rdx, qword [rbp + 0xa8]
cmp rdx, 0xf
jbe 0x140017668
inc rdx
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017663
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017663
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140018b60
mov qword [rbp + 0xa0], r12
mov qword [rbp + 0xa8], r15
mov byte [rbp + 0x90], 0
mov rdx, qword [rbp + 0xd0]
cmp rdx, 0xf
jbe 0x1400176c1
inc rdx
mov rcx, qword [rbp + 0xb8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400176bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400176bc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140018b60
mov r15d, edi
mov r12d, edi
jmp 0x140017710
mov dword [rbx + 0x64], eax
xor edx, edx
mov r8d, 0x8000
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, r13
call fcn.140018b60
mov edi, 0xc
jmp 0x14001770d
mov dword [rbx + 0x64], eax
mov rcx, rsi
call fcn.140018b60
mov edi, 0x18
jmp 0x14001770d
mov rcx, r13
call fcn.140018b60
mov edi, 5
mov r12d, edi
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x6c], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x80], rax
cmp qword [rbp], 0
je 0x140017771
lea rcx, [rbp - 0x10]
mov rax, qword [rbp - 0x68]
cmp qword [rax], rcx
jne 0x140017771
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp + 8]
mov qword [rax], rcx
mov rax, qword [rbp - 0x48]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp - 0x30]
mov dword [rax], edx
cmp byte [rbp - 4], 0
je 0x140017780
lea rcx, [rbp - 0x80]
call fcn.140013f00
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x78]
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 + 0x20]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov eax, r12d
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.140018b40
add rsp, 0x378
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret