Function at 0x14000f920
Capabilities:
Allocate or change rwx memory
Create directory
Delete file
Download url
Receive data

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x3e8
lea rbp, [rsp + 0x60]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x14004b080]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov qword [rbp + 0x18], r9
mov qword [rbp + 0x10], r8
mov rbx, rdx
mov rsi, rcx
mov byte [rbp], 0
cmp byte [rcx + 0x58], 0
je 0x14000f96d
xor eax, eax
jmp 0x1400107f7
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x30]
call fcn.140016f00
cmp qword [rbx + 0x18], 8
jb 0x14000f988
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rbp + 0x30]
call fcn.1400116b0
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
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
cmp dword [rbp + rcx + 0x40], 0
jne 0x140010781
lea rdx, [rbp + 0x158]
lea rcx, [rbp + 0x30]
call fcn.1400118f0
mov rcx, qword [rbp + 0x158]
add rcx, qword [rbp + 0x160]
je 0x140010781
lea rdx, [0x14003a8e0]
call fcn.140014c78
mov r15, rax
test rax, rax
jne 0x14000fa64
xor ecx, ecx
call fcn.1400149ec
lea rcx, [rbp + 0x40]
call fcn.1400123b0
test rax, rax
jne 0x140010781
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx + 0x78], r15
cmovne eax, edx
or eax, dword [rbp + rcx + 0x40]
and eax, 0x17
mov dword [rbp + rcx + 0x40], eax
mov edx, dword [rbp + rcx + 0x44]
and edx, eax
je 0x140010781
test dl, 4
je 0x14001082b
lea rbx, str.ios_base::badbit_set
jmp 0x140010840
lea rcx, [rbp + 0x30]
call fcn.1400119d0
mov r8, qword [rbp + 0x160]
add r8, qword [rbp + 0x158]
mov rdx, r15
lea rcx, [rbp + 0x30]
call fcn.140011dc0
lea rcx, [rbp + 0x40]
call fcn.1400123b0
mov edx, 2
test rax, rax
jne 0x14000fac7
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
mov eax, 6
cmp qword [rbp + rcx + 0x78], 0
cmovne eax, edx
or eax, dword [rbp + rcx + 0x40]
and eax, 0x17
mov dword [rbp + rcx + 0x40], eax
mov edx, dword [rbp + rcx + 0x44]
and edx, eax
jne 0x140010874
movsxd rdi, dword [r15 + 0x3c]
add rdi, r15
xor r14b, r14b
mov byte [rbp + 1], r14b
movzx eax, word [rdi + 4]
mov ecx, 0x8664
cmp ax, cx
jne 0x14000fb0b
lea rax, [rdi + 0xb8]
mov qword [rbp + 0x148], rax
lea rax, [rdi + 0x54]
mov qword [rbp + 8], rax
lea rcx, [rdi + 0x50]
mov ebx, 0x3c
lea eax, [rbx - 4]
lea r13d, [rbx + 0x54]
jmp 0x14000fb47
mov ecx, 0x14c
cmp ax, cx
jne 0x140010779
mov r14b, 1
mov byte [rbp + 1], r14b
mov qword [rbp + 0x148], 0xa0
mov qword [rbp + 8], 0x3c
mov ecx, 0x38
lea r13, [rdi + 0xa8]
lea rbx, [rdi + 0x54]
lea rax, [rdi + 0x50]
test r14b, r14b
cmove rax, rcx
mov edx, dword [rax]
xor ecx, ecx
lea r9d, [rcx + 0x40]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r12, rax
test rax, rax
jne 0x14000fb78
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x5c], eax
jmp 0x140010779
test r14b, r14b
cmove rbx, qword [rbp + 8]
mov r8d, dword [rbx]
mov rdx, r15
mov rcx, r12
call fcn.140016840
movzx ebx, word [rdi + 0x14]
add rbx, 0x2c
xor eax, eax
mov r14d, eax
cmp word [rdi + 6], ax
je 0x14000fbce
add rbx, rdi
mov eax, dword [rbx - 4]
test eax, eax
je 0x14000fbbe
mov r8d, eax
mov edx, dword [rbx]
add rdx, r15
mov ecx, dword [rbx - 8]
add rcx, r12
call fcn.140016840
inc r14d
add rbx, 0x28
movzx eax, word [rdi + 6]
cmp r14d, eax
jne 0x14000fba4
cmp byte [rbp + 1], 0
cmove r13, qword [rbp + 0x148]
mov eax, dword [r13]
cmp dword [r13 + 4], 0
je 0x140010768
cmp dword [rax + r12 + 0xc], 2
jne 0x140010768
mov edi, dword [rax + r12 + 0x14]
add rdi, r12
mov qword [rbp + 8], rdi
cmp dword [rdi], 0x53445352
jne 0x140010768
mov rdx, qword [rbp + 0x10]
lea rcx, [rsi + 8]
call fcn.14000b3e0
mov rax, qword [rsi + 0x18]
lea rcx, [rsi + 8]
mov rdx, qword [rsi + 0x20]
cmp rdx, 8
jb 0x14000fc30
mov rcx, qword [rsi + 8]
cmp word [rcx + rax*2 - 2], 0x5c
je 0x14000fc74
mov rcx, rax
cmp rax, rdx
jae 0x14000fc5e
inc rax
mov qword [rsi + 0x18], rax
lea rax, [rsi + 8]
cmp rdx, 8
jb 0x14000fc55
mov rax, qword [rsi + 8]
mov dword [rax + rcx*2], 0x5c
jmp 0x14000fc74
mov r9d, 0x5c
xor r8d, r8d
lea edx, [r9 - 0x5b]
lea rcx, [rsi + 8]
call fcn.140012680
lea rcx, [rsi + 8]
cmp qword [rsi + 0x20], 8
jb 0x14000fc83
mov rcx, qword [rsi + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000fcaa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000fcaa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x5c], eax
jmp 0x140010781
lea rdx, str.ntd_pdb_
lea rcx, [rsi + 8]
call fcn.140011f40
lea rcx, [rsi + 8]
cmp qword [rsi + 0x20], 8
jb 0x14000fcc9
mov rcx, qword [rsi + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000fce2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000fc9c
lea r13, [rdi + 0x18]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cdqe
mov qword [rbp + 0x148], rax
lea rcx, [rax + 1]
mov eax, 2
mul rcx
mov r14, rax
mov rax, 0xffffffffffffffff
cmovo r14, rax
lea rdx, [0x14003a8e0]
mov rcx, r14
call fcn.140014c78
mov rdi, rax
test rax, rax
je 0x140010781
mov r8, r14
xor edx, edx
mov rcx, rax
call fcn.140016f00
xor eax, eax
mov qword [rbp + 0x150], rax
mov rax, qword [rbp + 0x148]
mov qword [rsp + 0x20], rax
mov r9, r13
lea r8, [rax + 1]
mov rdx, rdi
lea rcx, [rbp + 0x150]
call fcn.140020910
test eax, eax
jne 0x14001081a
cmp qword [rbp + 0x150], 0
je 0x14001081a
mov rdx, rdi
lea rcx, [rsi + 8]
call fcn.140011f40
mov rcx, rdi
call fcn.1400149ec
xor eax, eax
mov dword [rbp + 0x10], eax
xorps xmm0, xmm0
movups xmmword [rbp + 0x170], xmm0
movups xmmword [rbp + 0x180], xmm0
mov dword [rbp + 0x190], eax
lea rcx, [rsi + 8]
cmp qword [rsi + 0x20], 8
jb 0x14000fdba
mov rcx, qword [rsi + 8]
lea r8, [rbp + 0x170]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
mov rdi, qword [rbp + 8]
add rdi, 4
test eax, eax
je 0x14000fe0e
mov r14d, dword [rbp + 0x190]
mov dword [rbp + 0x10], r14d
mov rdx, rdi
mov rcx, rsi
call fcn.14000f0b0
test al, al
jne 0x1400102a7
mov byte [rbp], 1
lea rcx, [rsi + 8]
cmp qword [rsi + 0x20], 8
jb 0x14000fe06
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14000fe12
mov byte [rbp], 1
xor edx, edx
mov r8d, 0xc8
lea rcx, [rbp + 0x2a0]
call fcn.140016f00
mov r8d, 0x64
lea rdx, [rbp + 0x2a0]
mov rcx, rdi
call qword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x140010768
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x220], xmm0
movups xmmword [rbp + 0x230], xmm0
movups xmmword [rbp + 0x240], xmm0
movups xmmword [rbp + 0x250], xmm0
movups xmmword [rbp + 0x260], xmm0
movups xmmword [rbp + 0x270], xmm0
mov dword [rbp + 0x280], eax
mov qword [rbp + 0x148], rax
mov qword [rsp + 0x20], 0x64
lea r9, [rbp + 0x2a0]
lea r8d, [rax + 0x64]
lea rdx, [rbp + 0x220]
lea rcx, [rbp + 0x148]
call fcn.14002054c
test eax, eax
jne 0x140010765
cmp qword [rbp + 0x148], 0
je 0x140010765
xorps xmm0, xmm0
movups xmmword [rbp + 0x1c0], xmm0
xor eax, eax
mov qword [rbp + 0x1d0], rax
mov edi, 0xf
mov qword [rbp + 0x1d8], rdi
mov byte [rbp + 0x1c0], al
mov r14d, eax
nop word [rax + rax]
movzx r9d, byte [rbp + rax + 0x220]
lea eax, [r9 - 0x30]
cmp al, 9
jbe 0x14000ff11
lea eax, [r9 - 0x41]
cmp al, 5
jbe 0x14000ff11
lea eax, [r9 - 0x61]
cmp al, 5
ja 0x14000ff60
mov rcx, qword [rbp + 0x1d0]
cmp rcx, rdi
jae 0x14000ff46
lea rax, [rcx + 1]
mov qword [rbp + 0x1d0], rax
lea rax, [rbp + 0x1c0]
cmp rdi, 0x10
cmovae rax, qword [rbp + 0x1c0]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14000ff59
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rbp + 0x1c0]
call fcn.14000e2a0
mov rdi, qword [rbp + 0x1d8]
inc r14d
mov eax, r14d
cmp rax, qword [rbp + 0x148]
jne 0x14000fef0
xor eax, eax
mov word [rbp + 0x140], ax
mov byte [rbp + 0x142], al
lea r9d, [rax + 0xa]
lea r8d, [rax + 3]
lea rdx, [rbp + 0x140]
mov rax, qword [rbp + 8]
mov ecx, dword [rax + 0x14]
call fcn.14001ecbc
xorps xmm0, xmm0
movups xmmword [rbp + 0x1a0], xmm0
xor eax, eax
mov qword [rbp + 0x1b0], rax
mov qword [rbp + 0x1b8], rax
lea r8d, [rax + 0x2c]
lea rdx, str.https:__msdl.microsoft.com_download_symbols_
lea rcx, [rbp + 0x1a0]
call fcn.140006db0
nop
mov r8, 0xffffffffffffffff
inc r8
cmp byte [r8 + r13], 0
jne 0x14000ffd2
mov rdx, r13
lea rcx, [rbp + 0x1a0]
call fcn.140003020
mov rcx, qword [rbp + 0x1b0]
mov rdx, qword [rbp + 0x1b8]
cmp rcx, rdx
jae 0x140010024
lea rax, [rcx + 1]
mov qword [rbp + 0x1b0], rax
lea rax, [rbp + 0x1a0]
cmp rdx, 0x10
cmovae rax, qword [rbp + 0x1a0]
mov word [rax + rcx], 0x2f
jmp 0x14001003a
mov r9b, 0x2f
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rbp + 0x1a0]
call fcn.14000e2a0
lea rdx, [rbp + 0x1c0]
cmp rdi, 0x10
cmovae rdx, qword [rbp + 0x1c0]
mov r8, qword [rbp + 0x1d0]
lea rcx, [rbp + 0x1a0]
call fcn.140003020
lea rax, [rbp + 0x140]
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x140010071
lea rdx, [rbp + 0x140]
lea rcx, [rbp + 0x1a0]
call fcn.140003020
mov rcx, qword [rbp + 0x1b0]
mov rdx, qword [rbp + 0x1b8]
cmp rcx, rdx
jae 0x1400100c7
lea rax, [rcx + 1]
mov qword [rbp + 0x1b0], rax
lea rax, [rbp + 0x1a0]
cmp rdx, 0x10
cmovae rax, qword [rbp + 0x1a0]
mov word [rax + rcx], 0x2f
jmp 0x1400100dd
mov r9b, 0x2f
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rbp + 0x1a0]
call fcn.14000e2a0
mov r8, rdi
inc r8
cmp byte [r8 + r13], 0
jne 0x1400100e0
mov rdx, r13
lea rcx, [rbp + 0x1a0]
call fcn.140003020
mov rax, qword [rbp + 0x1b0]
mov qword [rbp + 8], rax
lea rcx, [rax + 1]
mov eax, 2
mul rcx
mov r14, rax
cmovo r14, rdi
lea rdx, [0x14003a8e0]
mov rcx, r14
call fcn.140014c78
mov rdi, rax
test rax, rax
je 0x1400106c2
mov r8, r14
xor edx, edx
mov rcx, rax
call fcn.140016f00
xor eax, eax
mov qword [rbp + 0x150], rax
lea r9, [rbp + 0x1a0]
cmp qword [rbp + 0x1b8], 0x10
cmovae r9, qword [rbp + 0x1a0]
mov rax, qword [rbp + 8]
mov qword [rsp + 0x20], rax
lea r8, [rax + 1]
mov rdx, rdi
lea rcx, [rbp + 0x150]
call fcn.140020910
test eax, eax
jne 0x1400106b7
cmp qword [rbp + 0x150], 0
je 0x1400106b7
mov rdx, r13
lea rcx, str.name___s_n
call fcn.14000ef60
mov rdx, rdi
lea rcx, str.url____ls_n
call fcn.14000ef60
lea r8, [rsi + 8]
cmp qword [rsi + 0x20], 8
jb 0x1400101be
mov r8, qword [rsi + 8]
xor r13d, r13d
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov r14d, eax
mov rcx, rdi
call fcn.1400149ec
test r14d, r14d
jns 0x140010206
mov dword [rsi + 0x5c], r14d
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, r15
call fcn.1400149ec
jmp 0x1400106c5
mov rdx, qword [rbp + 0x1b8]
cmp rdx, 0x10
jb 0x140010247
inc rdx
mov rcx, qword [rbp + 0x1a0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010242
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400108cb
call fcn.1400149ec
mov qword [rbp + 0x1b0], r13
mov qword [rbp + 0x1b8], 0xf
mov byte [rbp + 0x1a0], 0
mov rdx, qword [rbp + 0x1d8]
cmp rdx, 0x10
jb 0x1400102a1
inc rdx
mov rcx, qword [rbp + 0x1c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001029c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140010825
call fcn.1400149ec
mov r14d, dword [rbp + 0x10]
jmp 0x1400102aa
xor r13d, r13d
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, r15
call fcn.1400149ec
test r14d, r14d
jne 0x140010304
lea rcx, [rsi + 8]
cmp qword [rsi + 0x20], 8
jb 0x1400102d7
mov rcx, qword [rsi + 8]
lea r8, [rbp + 0x170]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x1400102fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x5c], eax
mov rdi, r13
jmp 0x140010785
mov r15d, dword [rbp + 0x190]
jmp 0x140010308
mov r15d, dword [rbp + 0x10]
lea rcx, [rsi + 8]
cmp qword [rsi + 0x20], 8
jb 0x140010317
mov rcx, qword [rsi + 8]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1400102ea
cmp byte [rbp], 0
je 0x1400105c2
test rax, rax
je 0x1400105c2
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
movabs rax, 0x92061da0b8c6ee59
mov qword [rbp + 0x220], rax
movabs rax, 0xd71e711a17304bf7
mov qword [rbp + 0x228], rax
movabs rax, 0x925cbe8a4ab7bf30
mov qword [rbp + 0x230], rax
movabs rax, 0x54d2c7352fac7e85
mov qword [rbp + 0x238], rax
movabs rax, 0x72784c3c71c357f2
mov qword [rbp + 0x240], rax
movabs rax, 0xe787e55f8b52b3c8
mov qword [rbp + 0x248], rax
movabs rax, 0xc62db4c708fae425
mov qword [rbp + 0x250], rax
movabs rax, 0x764bd917d0003a1c
mov qword [rbp + 0x258], rax
movabs rax, 0x4ff0218a7b4ec40c
mov qword [rbp + 0x260], rax
movabs rcx, 0x4ac85565d649a42c
mov qword [rbp + 0x268], rcx
movabs r14, 0xf36e3dccd4a29a37
mov qword [rbp + 0x1c0], r14
movabs rsi, 0xb8721f6d78546b84
mov qword [rbp + 0x1c8], rsi
movabs rdi, 0xf129cdaa2ed2db51
mov qword [rbp + 0x1d0], rdi
movabs rbx, 0x38beb2535cdf1be6
mov qword [rbp + 0x1d8], rbx
movabs rax, 0x191b255012e37b8b
mov qword [rbp + 0x1e0], rax
movabs rax, 0x93e48031e53dd0e8
mov qword [rbp + 0x1e8], rax
movabs rax, 0xa70ddaae699d8505
mov qword [rbp + 0x1f0], rax
movabs rax, 0x1927ba37a2654e7a
mov qword [rbp + 0x1f8], rax
movabs rax, 0x4ff021a41c20ad7f
mov qword [rbp + 0x200], rax
mov qword [rbp + 0x208], rcx
vmovdqu ymm0, ymmword [rbp + 0x220]
vpxor ymm1, ymm0, ymmword [rbp + 0x1c0]
vmovdqa ymmword [rbp + 0x220], ymm1
vmovdqu ymm0, ymmword [rbp + 0x240]
vpxor ymm1, ymm0, ymmword [rbp + 0x1e0]
vmovdqa ymmword [rbp + 0x240], ymm1
vmovdqa xmm0, xmmword [rbp + 0x260]
vxorps xmm0, xmm0, xmmword [rbp + 0x200]
vmovdqa xmmword [rbp + 0x260], xmm0
lea rdx, [rbp + 0x220]
lea rcx, [0x14004c3f0]
vzeroupper
call fcn.1400069c0
mov rcx, rax
lea rdx, [0x140044950]
call fcn.1400069c0
movabs rax, 0x9d0b1dbfa7c7e847
mov qword [rbp + 0x1c0], rax
movabs rax, 0xdb52701958260ef0
mov qword [rbp + 0x1c8], rax
movabs rax, 0xf129cd844ba1b43d
mov qword [rbp + 0x1d0], rax
mov qword [rbp + 0x1d8], rbx
mov qword [rbp + 0x1a0], r14
mov qword [rbp + 0x1a8], rsi
mov qword [rbp + 0x1b0], rdi
mov qword [rbp + 0x1b8], rbx
vmovdqu ymm0, ymmword [rbp + 0x1c0]
vpxor ymm1, ymm0, ymmword [rbp + 0x1a0]
vmovdqa ymmword [rbp + 0x1c0], ymm1
lea rdx, [rbp + 0x1c0]
lea rcx, [0x14004c3f0]
vzeroupper
call fcn.1400069c0
mov rcx, rax
lea rdx, [0x140044950]
call fcn.1400069c0
call fcn.14000abc0
mov rdi, r13
jmp 0x140010785
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x1400105fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x5c], eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, r13
jmp 0x140010785
lea rdx, [rsi + 8]
cmp qword [rsi + 0x20], 8
jb 0x140010609
mov rdx, qword [rsi + 8]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.dbghelp.dll_SymInitializeW]
test eax, eax
jne 0x14001063c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x5c], eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, r13
jmp 0x140010785
mov ecx, 0x10006
call qword [sym.imp.dbghelp.dll_SymSetOptions]
lea r8, [rsi + 8]
cmp qword [rsi + 0x20], 8
jb 0x140010656
mov r8, qword [rsi + 8]
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], 0x10000000
xor r9d, r9d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.dbghelp.dll_SymLoadModuleExW]
mov qword [rsi + 0x30], rax
test rax, rax
jne 0x140010699
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x5c], eax
mov rcx, rdi
call qword [sym.imp.dbghelp.dll_SymCleanup]
jmp 0x140010622
mov rax, qword [rbp + 0x18]
test rax, rax
je 0x1400106ae
lea rdx, [rsi + 8]
mov rcx, rax
call fcn.14000b3e0
mov byte [rsi + 0x58], 1
jmp 0x140010785
mov dword [rsi + 0x5c], eax
mov rcx, rdi
call fcn.1400149ec
xor r13d, r13d
mov rdx, qword [rbp + 0x1b8]
cmp rdx, 0x10
jb 0x140010706
inc rdx
mov rcx, qword [rbp + 0x1a0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010701
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400108cb
call fcn.1400149ec
mov qword [rbp + 0x1b0], r13
mov qword [rbp + 0x1b8], 0xf
mov byte [rbp + 0x1a0], 0
mov rdx, qword [rbp + 0x1d8]
cmp rdx, 0x10
jb 0x140010760
inc rdx
mov rcx, qword [rbp + 0x1c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001075b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140010825
call fcn.1400149ec
mov rdi, r13
jmp 0x140010785
mov dword [rsi + 0x5c], eax
mov r8d, 0x8000
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, r15
call fcn.1400149ec
xor ecx, ecx
mov edi, ecx
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.140011600
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x30], rax
mov rcx, qword [rbp + 0x30]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x18]
mov dword [rbp + rdx + 0x2c], r8d
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0xe0], rax
lea rcx, [rbp + 0xe0]
call fcn.140013fac
nop
mov rax, rdi
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.140014990
add rsp, 0x3e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov dword [rsi + 0x5c], eax
mov rcx, rdi
jmp 0x14001077c
call fcn.14001b1f4
int3
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rbp + 0x18]
call fcn.140001570
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0x1c0]
call fcn.140001930
lea rdx, [0x140049f80]
lea rcx, [rbp + 0x1c0]
call fcn.140016764
int3
test dl, 4
je 0x140010882
lea rbx, str.ios_base::badbit_set
jmp 0x140010897
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rbp + 0x18]
call fcn.140001570
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0x1c0]
call fcn.140001930
lea rdx, [0x140049f80]
lea rcx, [rbp + 0x1c0]
call fcn.140016764
nop
call fcn.14001b1f4
int3