Function at 0x140036250
Capabilities:
Create directory
Download url
Get common file path
Receive data

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3a8]
sub rsp, 0x4a8
mov rax, qword [0x140112040]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rbx, r9
mov qword [rsp + 0x30], rbx
mov rsi, r8
mov qword [rbp - 0x30], r8
mov r12, rdx
mov qword [rsp + 0x38], rdx
mov rdi, rcx
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x70], rdx
mov qword [rbp - 0x68], r8
mov qword [rbp - 0x60], rbx
xor r13d, r13d
mov dword [rsp + 0x40], r13d
mov r8, qword [r8 + 0x10]
mov rcx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x1400362d3
mov rcx, qword [rsi]
mov r14, 0xffffffffffffffff
test r8, r8
jne 0x140036369
lea rdx, [0x1400f8547]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140036369
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x1b0]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x1b0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x140036342
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], r13
xor r8d, r8d
lea rdx, [0x1400f8547]
mov rcx, rdi
call fcn.1400052d0
jmp 0x140036fde
lea rax, [rbp + 0x1b0]
mov r8, r14
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140036350
lea rdx, [rbp + 0x1b0]
mov rcx, rsi
call fcn.1400159b0
mov rax, qword [rsi + 0x10]
mov rcx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x14003637a
mov rcx, qword [rsi]
cmp byte [rcx + rax - 1], 0x5c
je 0x140036396
mov r8d, 1
lea rdx, [0x1400fa348]
mov rcx, rsi
call fcn.140015270
mov rcx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x1400363a3
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1400363c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14003631d
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov rdx, r12
cmp qword [r12 + 0x18], 0xf
jbe 0x1400363e0
mov rdx, qword [r12]
mov r8d, Ordinal_41
lea rcx, [rbp + 0x30]
call fcn.140031ce0
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 rdx, [rbp + 0x10]
lea rcx, [rbp + 0x30]
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 r15, qword [rax + 8]
add r15, qword [rax]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x30]
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]
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x50], xmm1
mov qword [rbp - 0x40], r13
test r15, r15
je 0x1400364bc
movabs rax, 0x7fffffffffffffff
cmp r15, rax
ja 0x140037033
cmp r15, 0x1000
jb 0x140036492
lea rcx, [r15 + 0x27]
cmp rcx, r15
jbe 0x140037039
call fcn.14009e344
mov rcx, rax
test rax, rax
je 0x140036f7f
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14003649a
mov rcx, r15
call fcn.14009e344
mov qword [rbp - 0x50], rax
lea rbx, [rax + r15]
mov qword [rbp - 0x40], rbx
mov r8, r15
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x48], rbx
mov rbx, qword [rsp + 0x30]
mov r8, r15
mov rdx, qword [rbp - 0x50]
lea rcx, [rbp + 0x30]
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]
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
test al, al
jne 0x140036f22
test r15, r15
je 0x140036f22
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [0x1400fcce0]
movdqu xmmword [rbp - 0x80], xmm1
mov byte [rsp + 0x70], al
mov r13d, 2
mov dword [rsp + 0x40], r13d
lea r8, [rbp + 0x10]
mov edx, r15d
mov rcx, qword [rbp - 0x50]
call fcn.14009ce80
xor r15d, r15d
mov ebx, r15d
nop dword [rax + rax]
mov dword [rbp - 0x58], r15d
movzx r8d, byte [rbp + rbx + 0x10]
lea rdx, str._02x
lea rcx, [rbp - 0x58]
call fcn.140088680
lea rax, [rbp - 0x58]
mov r8, r14
inc r8
cmp byte [rax + r8], r15b
jne 0x140036551
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x70]
call fcn.140015270
inc rbx
cmp rbx, 0x10
jb 0x140036530
mov r8, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x14003657e
mov r8, qword [rsi]
mov r9, qword [rsi + 0x10]
lea rcx, [rsp + 0x70]
call fcn.140033cb0
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rax + 0x10], r15
mov byte [rax], r15b
or r13d, 4
mov dword [rsp + 0x40], r13d
mov r8d, 4
lea rdx, str..pdb
lea rcx, [rsp + 0x50]
call fcn.140015270
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], r15
mov qword [rbp + 8], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rcx, [rsp + 0x50]
call fcn.140004fe0
nop
lea rcx, [rsp + 0x70]
call fcn.140004fe0
mov rax, qword [rbp - 0x50]
movsxd r13, dword [rax + 0x3c]
add r13, rax
mov edx, r15d
mov dword [rbp - 0x58], edx
movzx eax, word [r13 + 4]
mov ecx, 0x8664
cmp ax, cx
jne 0x140036667
lea rax, [r13 + 0xb8]
mov qword [rbp + 0x10], rax
lea r15, [r13 + 0x54]
lea rcx, [r13 + 0x50]
mov qword [rsp + 0x48], __WSAFDIsSet
mov ebx, reloc.WLDAP32.dll_Ordinal_60
mov eax, gethostname
jmp 0x1400366a4
mov ecx, 0x14c
cmp ax, cx
jne 0x140036e57
mov edx, 1
mov dword [rbp - 0x58], edx
mov qword [rbp + 0x10], 0xa0
mov ecx, gethostname
mov r15d, reloc.WLDAP32.dll_Ordinal_60
lea rax, [r13 + 0xa8]
mov qword [rsp + 0x48], rax
lea rbx, [r13 + 0x54]
lea rax, [r13 + 0x50]
test edx, edx
cmove rax, rcx
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r12, rax
test rax, rax
jne 0x1400367a2
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
xor r15d, r15d
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r15
xor r8d, r8d
lea rdx, [0x1400f8547]
mov rcx, rdi
call fcn.1400052d0
nop
lea rcx, [rbp - 0x10]
call fcn.140004fe0
nop
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14003673d
mov rdx, qword [rbp - 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003672c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140036f7f
call fcn.14009e1f0
mov qword [rbp - 0x40], r15
xorps xmm0, xmm0
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.140031250
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 rcx, qword [rsp + 0x38]
call fcn.140004fe0
nop
mov rcx, rsi
call fcn.140004fe0
nop
mov rcx, qword [rsp + 0x30]
jmp 0x140036ff3
cmp dword [rbp - 0x58], 0
cmove rbx, r15
mov r8d, dword [rbx]
mov rdx, qword [rbp - 0x50]
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [r13 + 0x14]
add rbx, 0x2c
xor r15d, r15d
cmp word [r13 + 6], r15w
je 0x140036800
add rbx, r13
nop
mov eax, dword [rbx - 4]
test eax, eax
je 0x1400367eb
mov r8d, eax
mov edx, dword [rbx]
add rdx, qword [rbp - 0x50]
mov ecx, dword [rbx - 8]
add rcx, r12
call sub.VCRUNTIME140.dll_memcpy
inc r15d
add rbx, 0x28
movzx eax, word [r13 + 6]
cmp r15d, eax
jne 0x1400367d0
mov rsi, qword [rbp - 0x30]
cmp dword [rbp - 0x58], 0
mov rcx, qword [rsp + 0x48]
cmove rcx, qword [rbp + 0x10]
mov eax, dword [rcx]
cmp dword [rcx + 4], 0
je 0x140036dd2
cmp dword [rax + r12 + 0xc], 2
jne 0x140036dd2
mov r15d, dword [rax + r12 + 0x14]
add r15, r12
cmp dword [r15], 0x53445352
je 0x1400368c3
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, reloc.WLDAP32.dll_Ordinal_50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
xor ebx, ebx
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rbx
xor r8d, r8d
lea rdx, [0x1400f8547]
mov rcx, rdi
call fcn.1400052d0
nop
lea rcx, [rbp - 0x10]
call fcn.140004fe0
nop
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14003673d
mov rdx, qword [rbp - 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400368b5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140036e50
call fcn.14009e1f0
mov qword [rbp - 0x40], rbx
jmp 0x140036735
lea rax, [rbp - 0x10]
cmp qword [rbp + 8], 0xf
cmova rax, qword [rbp - 0x10]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp]
mov qword [rbp - 0x28], rax
call fcn.14009d694
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
lea r8, [rbp - 0x30]
mov edx, eax
lea rcx, [rbp + 0x10]
call fcn.140022db0
nop
xor r13d, r13d
mov qword [rbp - 0x30], r13
lea rax, [0x140284930]
mov qword [rbp - 0x28], rax
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x10]
call fcn.1400234d0
movzx ebx, al
cmp dword [rbp - 0x30], r13d
jne 0x14003701e
lea rcx, [rbp + 0x10]
call fcn.140015200
test bl, bl
jne 0x140036d60
xor edx, edx
mov r8d, reloc.WLDAP32.dll_Ordinal_200
lea rcx, [rbp + 0x2c0]
call sub.VCRUNTIME140.dll_memset
lea rcx, [r15 + 4]
mov r8d, 0x64
lea rdx, [rbp + 0x2c0]
call qword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x1400369f1
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, reloc.WLDAP32.dll_Ordinal_50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], r13
xor r8d, r8d
lea rdx, [0x1400f8547]
mov rcx, rdi
call fcn.1400052d0
nop
lea rcx, [rbp - 0x10]
call fcn.140004fe0
nop
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14003673d
mov rdx, qword [rbp - 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400369e3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140036d59
call fcn.14009e1f0
mov qword [rbp - 0x40], r13
jmp 0x140036735
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x140], xmm0
movups xmmword [rbp + 0x150], xmm0
movups xmmword [rbp + 0x160], xmm0
movups xmmword [rbp + 0x170], xmm0
movups xmmword [rbp + 0x180], xmm0
movups xmmword [rbp + 0x190], xmm0
mov dword [rbp + 0x1a0], eax
mov qword [rbp + 0x10], r13
mov qword [rsp + 0x20], 0x64
lea r9, [rbp + 0x2c0]
mov r8d, 0x64
lea rdx, [rbp + 0x140]
lea rcx, [rbp + 0x10]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs_s]
test eax, eax
jne 0x140036cdd
mov rbx, qword [rbp + 0x10]
test rbx, rbx
je 0x140036cdd
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x1b0]
call sub.VCRUNTIME140.dll_memset
mov edx, r13d
mov rax, r13
movzx ecx, byte [rbp + rax + 0x140]
lea eax, [rcx - 0x30]
cmp al, 9
jbe 0x140036a9d
lea eax, [rcx - 0x41]
cmp al, 5
jbe 0x140036a9d
lea eax, [rcx - 0x61]
cmp al, 5
ja 0x140036ac2
lea r8, [rbp + 0x1b0]
mov rax, r14
nop word [rax + rax]
lea rax, [rax + 1]
cmp byte [r8 + rax], 0
jne 0x140036ab0
mov byte [rbp + rax + 0x1b0], cl
inc edx
mov eax, edx
cmp rax, rbx
jne 0x140036a80
xor eax, eax
mov word [rbp - 0x58], ax
mov byte [rbp - 0x56], al
mov r9d, 0xa
mov r8d, 3
lea rdx, [rbp - 0x58]
mov ecx, dword [r15 + 0x14]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa_s]
mov r13, qword [rsp + 0x30]
mov rdx, r13
lea rcx, [rbp - 0x30]
call fcn.140014e80
nop
mov r8, r14
inc r8
cmp byte [r15 + r8 + 0x18], 0
jne 0x140036b03
lea rdx, [r15 + 0x18]
lea rcx, [rbp - 0x30]
call fcn.140015270
mov r8d, 1
lea rdx, [0x1400fa354]
lea rcx, [rbp - 0x30]
call fcn.140015270
lea rax, [rbp + 0x1b0]
mov r8, r14
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140036b40
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp - 0x30]
call fcn.140015270
lea rax, [rbp - 0x58]
mov r8, r14
inc r8
cmp byte [rax + r8], 0
jne 0x140036b61
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x30]
call fcn.140015270
mov r8d, 1
lea rdx, [0x1400fa354]
lea rcx, [rbp - 0x30]
call fcn.140015270
nop
inc r14
cmp byte [r15 + r14 + 0x18], 0
jne 0x140036b90
mov r8, r14
lea rdx, [r15 + 0x18]
lea rcx, [rbp - 0x30]
call fcn.140015270
lea r8, [rbp - 0x10]
cmp qword [rbp + 8], 0xf
cmova r8, qword [rbp - 0x10]
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rdx, qword [rbp - 0x30]
xor ebx, ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
mov rcx, r12
test eax, eax
jns 0x140036cc8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rbx
xor r8d, r8d
lea rdx, [0x1400f8547]
mov rcx, rdi
call fcn.1400052d0
nop
lea rcx, [rbp - 0x30]
call fcn.140004fe0
nop
lea rcx, [rbp - 0x10]
call fcn.140004fe0
nop
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140036c65
mov rdx, qword [rbp - 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036c54
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140036d59
call fcn.14009e1f0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rbx
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.140031250
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 rcx, qword [rsp + 0x38]
call fcn.140004fe0
nop
mov rcx, rsi
call fcn.140004fe0
nop
mov rcx, r13
jmp 0x140036ff3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rbp - 0x30]
call fcn.140004fe0
jmp 0x140036d67
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, reloc.WLDAP32.dll_Ordinal_50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], r13
xor r8d, r8d
lea rdx, [0x1400f8547]
mov rcx, rdi
call fcn.1400052d0
nop
lea rcx, [rbp - 0x10]
call fcn.140004fe0
nop
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14003673d
mov rdx, qword [rbp - 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400369e3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400369e3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov r13, qword [rsp + 0x30]
xor ebx, ebx
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp]
movups xmmword [rdi + 0x10], xmm1
mov qword [rbp], rbx
mov qword [rbp + 8], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x10], 0
lea rcx, [rbp - 0x10]
call fcn.140004fe0
nop
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140036c65
mov rdx, qword [rbp - 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036c54
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140036e50
jmp 0x140036c54
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, reloc.WLDAP32.dll_Ordinal_50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
xor ebx, ebx
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rbx
xor r8d, r8d
lea rdx, [0x1400f8547]
mov rcx, rdi
call fcn.1400052d0
nop
lea rcx, [rbp - 0x10]
call fcn.140004fe0
nop
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14003673d
mov rdx, qword [rbp - 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400368b5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400368b5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov ecx, reloc.WLDAP32.dll_Ordinal_50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r15
xor r8d, r8d
lea rdx, [0x1400f8547]
mov rcx, rdi
call fcn.1400052d0
nop
lea rcx, [rbp - 0x10]
call fcn.140004fe0
nop
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140036ed3
mov rdx, qword [rbp - 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036ec2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140036f7f
call fcn.14009e1f0
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.140031250
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 rcx, r12
jmp 0x140036789
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_SetLastError]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], r13
xor r8d, r8d
lea rdx, [0x1400f8547]
mov rcx, rdi
call fcn.1400052d0
nop
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140036f97
mov rdx, qword [rbp - 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036f86
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140036f86
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009e1f0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], r13
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.140031250
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 rcx, r12
call fcn.140004fe0
nop
mov rcx, rsi
call fcn.140004fe0
nop
mov rcx, rbx
call fcn.140004fe0
mov rax, rdi
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.14009e1d0
add rsp, 0x4a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea r8, [rbp + 0x10]
lea rdx, [rbp - 0x30]
lea rcx, str.exists
call fcn.140023470
nop
call fcn.140015b80
int3
call fcn.1400051d0
int3