Function at 0x140016080
Capabilities:
Check if file exists
Create directory
Delete file
Download url
Receive data

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x7a8]
sub rsp, 0x870
movaps xmmword [rax - 0x48], xmm6
mov rax, qword [0x1402a0ec0]
xor rax, rsp
mov qword [rbp + 0x750], rax
mov r12b, r9b
mov rsi, r8
mov qword [rbp - 0x68], r8
mov rdi, rdx
mov qword [rbp - 0x78], rcx
mov qword [rsp + 0x50], rdx
mov qword [rbp - 0x60], r8
xor r13d, r13d
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], r13
lea r15d, [r13 + 0xf]
mov qword [rbp + 8], r15
mov byte [rbp - 0x10], r13b
mov ebx, 0x104
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x570]
call sub.VCRUNTIME140.dll_memset
mov r8d, ebx
lea rdx, [rbp + 0x570]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rbp + 0x570]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], r13
lea rax, [rbp + 0x570]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r13b
jne 0x140016140
lea rdx, [rbp + 0x570]
lea rcx, [rbp - 0x30]
call fcn.1400110ec
nop
lea rax, [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
cmp rdx, r15
cmova rax, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x20]
mov ebx, 1
mov r9b, 0x5c
cmp byte [rcx + rax - 1], r9b
je 0x1400161ad
cmp rcx, rdx
jae 0x14001619e
lea rax, [rcx + 1]
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x30]
cmp rdx, r15
cmova rax, qword [rbp - 0x30]
mov word [rax + rcx], 0x5c
jmp 0x1400161ad
mov r8b, r13b
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140011a64
mov r8d, 8
lea rdx, str.symbols_
lea rcx, [rbp - 0x30]
call fcn.140015f5c
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.140012ba8
lea rcx, [rbp - 0x10]
cmp qword [rbp + 8], r15
cmova rcx, qword [rbp - 0x10]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x14001631c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14001631c
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], r13
xor r8d, r8d
lea rdx, [0x1402549d9]
mov rcx, rdi
call fcn.1400110ec
nop
mov ebx, 0x1000
mov r14d, Ordinal_33
mov rdx, qword [rbp - 0x18]
cmp rdx, r15
jbe 0x14001625e
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, rbx
jb 0x140016259
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, r14
ja 0x140017154
call fcn.14012c930
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], r15
mov byte [rbp - 0x30], r13b
mov rdx, qword [rbp + 8]
cmp rdx, r15
jbe 0x14001629f
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, rbx
jb 0x14001629a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, r14
ja 0x140017198
call fcn.14012c930
mov qword [rbp], r13
mov qword [rbp + 8], r15
mov byte [rbp - 0x10], r13b
mov rdx, qword [rsi + 0x18]
cmp rdx, r15
jbe 0x1400162df
inc rdx
mov rcx, qword [rsi]
cmp rdx, rbx
jb 0x1400162da
add rdx, 0x27
mov rax, qword [rcx - 8]
sub rcx, rax
add rcx, 0xfffffffffffffff8
cmp rcx, r14
ja 0x1400171e8
mov rcx, rax
call fcn.14012c930
mov byte [rsi], r13b
mov qword [rsi + 0x18], r15
mov qword [rsi + 0x10], r13
mov rax, rdi
mov rcx, qword [rbp + 0x750]
xor rcx, rsp
call fcn.14012ce10
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x58]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0xd0]
call sub.VCRUNTIME140.dll_memset
mov rdx, rsi
cmp qword [rsi + 0x18], r15
jbe 0x14001633c
mov rdx, qword [rsi]
mov dword [rsp + 0x20], ebx
mov r9d, 0x40
lea r8d, [r9 - 0x1c]
lea rcx, [rbp + 0xd0]
call fcn.140011e88
mov rax, qword [rbp + 0xd0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0xd0], rax
mov rax, qword [rbp + 0xd0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0xcc], edx
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0xd0]
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 rbx, qword [rax + 8]
add rbx, qword [rax]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0xd0]
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 + 0x30], xmm1
mov qword [rbp + 0x40], r13
mov rdx, rbx
lea rcx, [rbp + 0x30]
call fcn.140011458
nop
mov r8, rbx
mov r15, qword [rbp + 0x30]
mov rdx, r15
lea rcx, [rbp + 0xd0]
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 0x1400170a6
test rbx, rbx
je 0x1400170a6
mov r8d, ebx
mov rdx, r15
lea rcx, [rsp + 0x58]
call fcn.140014c44
nop
lea r8, [rbp - 0x10]
cmp qword [rbp + 8], 0xf
cmova r8, qword [rbp - 0x10]
mov r9, qword [rbp]
xor edx, edx
mov rcx, rax
call fcn.140017570
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x58], xmm1
mov r14d, reloc.WLDAP32.dll_Ordinal_32
mov r8d, r14d
mov rdx, rax
lea rcx, [rbp + 0x48]
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], r13b
lea r8d, [r14 - 0x1c]
lea rdx, str..pdb
lea rcx, [rbp + 0x48]
call fcn.140015f5c
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x38], r13
mov r8d, r14d
mov rdx, rax
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], r13b
mov ebx, 0x1000
mov r14d, Ordinal_33
mov rdx, qword [rbp + 0x60]
cmp rdx, 0xf
jbe 0x1400164ee
inc rdx
mov rcx, qword [rbp + 0x48]
mov rax, rcx
cmp rdx, rbx
jb 0x1400164e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, r14
jbe 0x1400164e9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14012c930
movdqa xmm6, xmmword [0x140254f70]
movdqu xmmword [rbp + 0x58], xmm6
mov byte [rbp + 0x48], r13b
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x14001653a
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, rbx
jb 0x140016535
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, r14
jbe 0x140016535
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14012c930
movdqu xmmword [rsp + 0x68], xmm6
mov byte [rsp + 0x58], r13b
movabs rax, 0x7fffffffffffffff
mov rcx, qword [rbp - 0x40]
sub rax, rcx
cmp rax, 4
jb 0x1400171ef
lea r9, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova r9, qword [rbp - 0x50]
mov qword [rsp + 0x30], 4
lea rax, str..md5
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r8, [rbp - 0x50]
mov dl, byte [rsp + 0x40]
lea rcx, [rbp + 0x10]
call fcn.1400121e0
nop
test r12b, r12b
jne 0x1400167c1
lea rcx, [rbp - 0x50]
mov r12d, reloc.WS2_32.dll_ntohs
cmp qword [rbp - 0x38], r12
cmova rcx, qword [rbp - 0x50]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1400167c1
lea rcx, [rbp + 0x10]
cmp qword [rbp + 0x28], r12
cmova rcx, qword [rbp + 0x10]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1400167c1
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x1e0]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], r12
cmova rdx, qword [rbp + 0x10]
mov dword [rsp + 0x20], 1
lea r9d, [r12 + 0x31]
lea r8d, [r12 - 0xe]
lea rcx, [rbp + 0x1e0]
call fcn.140011e88
mov rax, qword [rbp + 0x1e0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x1e0], rax
mov rax, qword [rbp + 0x1e0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x1dc], edx
xorps xmm0, xmm0
movups xmmword [rbp + 0x48], xmm0
mov qword [rbp + 0x58], r13
mov qword [rbp + 0x60], r12
mov byte [rbp + 0x48], r13b
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0x1e0]
call fcn.140010290
lea rcx, [rbp + 0x1f0]
call fcn.140015fd4
test rax, rax
jne 0x1400166a7
mov rax, qword [rbp + 0x1e0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x1e0]
add rcx, rax
xor r8d, r8d
lea edx, [r12 - 0xd]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], r12
cmova rdx, qword [rbp - 0x50]
mov r8, qword [rbp - 0x40]
lea rcx, [rsp + 0x58]
call fcn.1400112a0
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0x90]
call fcn.140014d0c
lea rdx, [rbp + 0x48]
cmp qword [rbp + 0x60], r12
cmova rdx, qword [rbp + 0x48]
lea rcx, [rbp + 0x90]
cmp qword [rbp + 0xa8], r12
cmova rcx, qword [rbp + 0x90]
mov r8, qword [rbp + 0xa0]
cmp r8, qword [rbp + 0x58]
jne 0x14001679e
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14001679e
lea rdx, [rbp - 0x50]
mov rcx, rdi
call fcn.140012194
lea rcx, [rbp + 0x90]
call fcn.140012900
nop
lea rcx, [rbp + 0x48]
call fcn.140012900
nop
lea rcx, [rbp + 0x1e0]
call fcn.140012c18
nop
lea rcx, [rbp + 0x10]
call fcn.140012900
nop
lea rcx, [rbp - 0x50]
call fcn.140012900
nop
lea rcx, [rbp + 0x30]
call fcn.140012998
nop
lea rcx, [rbp + 0xd0]
call fcn.140012c18
nop
lea rcx, [rbp - 0x30]
call fcn.140012900
nop
lea rcx, [rbp - 0x10]
call fcn.140012900
nop
mov rcx, rsi
call fcn.140012900
jmp 0x1400162ea
lea rcx, [rbp + 0x90]
call fcn.140012900
nop
lea rcx, [rbp + 0x48]
call fcn.140012900
nop
lea rcx, [rbp + 0x1e0]
call fcn.140012c18
movsxd r13, dword [r15 + 0x3c]
add r13, r15
xor r12d, r12d
mov ecx, r12d
mov dword [rsp + 0x44], ecx
mov eax, 0x8664
cmp word [r13 + 4], ax
jne 0x14001680f
lea rax, [r13 + 0xb8]
mov qword [rsp + 0x50], rax
lea rax, [r13 + 0x54]
mov qword [rsp + 0x78], rax
lea rdx, [r13 + 0x50]
mov qword [rbp - 0x80], __WSAFDIsSet
mov qword [rsp + 0x48], reloc.WLDAP32.dll_Ordinal_60
lea eax, [r12 + 0x38]
jmp 0x140016855
mov eax, 0x14c
cmp word [r13 + 4], ax
jne 0x14001708f
mov ecx, 1
mov dword [rsp + 0x44], ecx
mov qword [rsp + 0x50], 0xa0
mov qword [rsp + 0x78], reloc.WLDAP32.dll_Ordinal_60
lea edx, [rcx + 0x37]
lea rax, [r13 + 0xa8]
mov qword [rbp - 0x80], rax
lea rax, [r13 + 0x54]
mov qword [rsp + 0x48], rax
lea rax, [r13 + 0x50]
test ecx, ecx
cmove rax, rdx
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r12, rax
xor eax, eax
test r12, r12
jne 0x140016a26
lea ecx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], r12
xor r8d, r8d
lea rdx, [0x1402549d9]
mov rcx, rdi
call fcn.1400110ec
nop
mov r13d, reloc.WS2_32.dll_ntohs
mov rdx, qword [rbp + 0x28]
cmp rdx, r13
jbe 0x1400168d6
inc rdx
mov rcx, qword [rbp + 0x10]
cmp rdx, rbx
mov rax, rcx
jb 0x1400168d1
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, r14
ja 0x14001709f
call fcn.14012c930
mov byte [rbp + 0x10], r12b
movdqu xmmword [rbp + 0x20], xmm6
mov rdx, qword [rbp - 0x38]
cmp rdx, r13
jbe 0x140016917
inc rdx
mov rcx, qword [rbp - 0x50]
cmp rdx, rbx
mov rax, rcx
jb 0x140016912
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, r14
jbe 0x140016912
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14012c930
mov byte [rbp - 0x50], r12b
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x40], r12
mov rdx, qword [rbp + 0x40]
sub rdx, r15
cmp rdx, rbx
mov rax, r15
jb 0x14001694a
mov r15, qword [r15 - 8]
sub rax, r15
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, r14
ja 0x140017105
mov rcx, r15
call fcn.14012c930
nop
lea rcx, [rbp + 0xd0]
call fcn.140012c18
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, r13
jbe 0x140016995
inc rdx
mov rcx, qword [rbp - 0x30]
cmp rdx, rbx
mov rax, rcx
jb 0x140016990
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, r14
ja 0x140017154
call fcn.14012c930
mov byte [rbp - 0x30], r12b
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x20], r12
mov rdx, qword [rbp + 8]
cmp rdx, r13
jbe 0x1400169d6
inc rdx
mov rcx, qword [rbp - 0x10]
cmp rdx, rbx
mov rax, rcx
jb 0x1400169d1
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, r14
ja 0x140017198
call fcn.14012c930
mov byte [rbp - 0x10], r12b
mov qword [rbp + 8], r13
mov qword [rbp], r12
mov rdx, qword [rsi + 0x18]
cmp rdx, r13
jbe 0x140016a16
inc rdx
cmp rdx, rbx
mov rcx, qword [rsi]
jb 0x140016a11
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, r14
ja 0x1400171e8
mov rcx, r8
call fcn.14012c930
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], r13
mov byte [rsi], r12b
jmp 0x1400162ea
cmp dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x48]
cmove rax, qword [rsp + 0x78]
mov r8d, dword [rax]
mov rdx, r15
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
movzx eax, word [r13 + 0x14]
add rax, 0x2c
xor edx, edx
mov ecx, edx
mov dword [rsp + 0x48], edx
cmp word [r13 + 6], dx
je 0x140016a95
lea rsi, [rax + r13]
cmp dword [rsi - 4], edx
je 0x140016a7e
mov r8d, dword [rsi - 4]
mov edx, dword [rsi]
add rdx, r15
mov ecx, dword [rsi - 8]
add rcx, r12
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [rsp + 0x48]
xor edx, edx
inc ecx
mov dword [rsp + 0x48], ecx
add rsi, 0x28
movzx eax, word [r13 + 6]
cmp ecx, eax
jne 0x140016a5f
mov rsi, qword [rbp - 0x68]
xor r13d, r13d
cmp dword [rsp + 0x44], r13d
mov rcx, qword [rbp - 0x80]
cmove rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
cmp dword [rcx + 4], r13d
je 0x140016ec4
cmp dword [rax + r12 + 0xc], 2
jne 0x140016ec4
mov r15d, dword [rax + r12 + 0x14]
add r15, r12
cmp dword [r15], 0x53445352
je 0x140016b48
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea ecx, [r13 + 0x32]
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, [0x1402549d9]
mov rcx, rdi
call fcn.1400110ec
nop
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x140016b3a
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, rbx
jb 0x140016b35
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, r14
ja 0x140016f2b
call fcn.14012c930
movdqu xmmword [rbp + 0x20], xmm6
mov byte [rbp + 0x10], r13b
jmp 0x14001675c
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
xor edx, edx
mov r8d, reloc.WLDAP32.dll_Ordinal_200
lea rcx, [rbp + 0x680]
call sub.VCRUNTIME140.dll_memset
lea rcx, [r15 + 4]
mov ebx, 0x64
mov r8d, ebx
lea rdx, [rbp + 0x680]
call qword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x140016bc6
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, [0x1402549d9]
mov rcx, rdi
call fcn.1400110ec
jmp 0x140016752
mov r8, rbx
xor edx, edx
lea rcx, [rbp + 0x400]
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x68], r13
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x680]
mov r8, rbx
lea rdx, [rbp + 0x400]
lea rcx, [rbp + 0x68]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs_s]
test eax, eax
jne 0x140016b8d
mov r14, qword [rbp + 0x68]
test r14, r14
je 0x140016b8d
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x470]
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov bl, byte [rbp + rax + 0x400]
lea eax, [rbx - 0x30]
cmp al, 9
jbe 0x140016c3a
lea eax, [rbx - 0x41]
cmp al, 5
jbe 0x140016c3a
lea eax, [rbx - 0x61]
cmp al, 5
ja 0x140016c51
lea rcx, [rbp + 0x470]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov byte [rbp + rax + 0x470], bl
mov r14, qword [rbp + 0x68]
inc r13d
mov eax, r13d
cmp rax, r14
jne 0x140016c1e
xor eax, eax
mov word [rbp - 0x58], ax
mov byte [rbp - 0x56], al
lea r9d, [rax + 0xa]
lea r8d, [rax + 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 rdx, qword [rbp - 0x78]
add rdx, 0x38
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x80], xmm1
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x140016ca3
mov rdx, qword [rdx]
lea rcx, [rbp + 0x70]
call fcn.1400112a0
nop
mov r13d, 1
mov r8d, r13d
lea rdx, [0x140254ab4]
lea rcx, [rbp + 0x70]
call fcn.140015f5c
or rbx, 0xffffffffffffffff
mov r8, rbx
xor r14d, r14d
inc r8
cmp byte [r15 + r8 + 0x18], r14b
jne 0x140016cd0
lea rdx, [r15 + 0x18]
lea rcx, [rbp + 0x70]
call fcn.140015f5c
mov r8, r13
lea rdx, [0x140254ab4]
lea rcx, [rbp + 0x70]
call fcn.140015f5c
lea rax, [rbp + 0x470]
mov r8, rbx
inc r8
cmp byte [rax + r8], r14b
jne 0x140016d04
lea rdx, [rbp + 0x470]
lea rcx, [rbp + 0x70]
call fcn.140015f5c
lea rax, [rbp - 0x58]
mov r8, rbx
inc r8
cmp byte [rax + r8], r14b
jne 0x140016d24
lea rdx, [rbp - 0x58]
lea rcx, [rbp + 0x70]
call fcn.140015f5c
mov r8, r13
lea rdx, [0x140254ab4]
lea rcx, [rbp + 0x70]
call fcn.140015f5c
inc rbx
cmp byte [r15 + rbx + 0x18], r14b
jne 0x140016d4d
mov r8, rbx
lea rdx, [r15 + 0x18]
lea rcx, [rbp + 0x70]
call fcn.140015f5c
lea r8, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova r8, qword [rbp - 0x50]
lea rdx, [rbp + 0x70]
cmp qword [rbp + 0x88], 0xf
cmova rdx, qword [rbp + 0x70]
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor ecx, ecx
call sub.urlmon.dll_URLDownloadToFileA
mov rcx, r12
test eax, eax
jns 0x140016dd1
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], r14
mov qword [rdi + 0x18], r14
xor r8d, r8d
lea rdx, [0x1402549d9]
mov rcx, rdi
call fcn.1400110ec
nop
lea rcx, [rbp + 0x70]
call fcn.140012900
jmp 0x140016752
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r14
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova rdx, qword [rbp - 0x50]
mov r8, qword [rbp - 0x40]
lea rcx, [rsp + 0x58]
call fcn.1400112a0
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0xb0]
call fcn.140014d0c
nop
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x2f0]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 0xf
cmova rdx, qword [rbp + 0x10]
mov dword [rsp + 0x20], r13d
mov r9d, 0x40
lea r8d, [r9 - 0x3e]
lea rcx, [rbp + 0x2f0]
call fcn.140011f8c
mov rax, qword [rbp + 0x2f0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x2f0], rax
mov rax, qword [rbp + 0x2f0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x2ec], edx
lea rdx, [rbp + 0xb0]
lea rcx, [rbp + 0x2f0]
call fcn.1400104cc
lea rdx, [rbp - 0x50]
mov rcx, rdi
call fcn.140012194
nop
lea rcx, [rbp + 0x2f0]
call fcn.140012c7c
nop
lea rcx, [rbp + 0xb0]
call fcn.140012900
jmp 0x140016dc3
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, [0x1402549d9]
mov rcx, rdi
call fcn.1400110ec
nop
mov rdx, qword [rbp + 0x28]
mov r12d, reloc.WS2_32.dll_ntohs
cmp rdx, r12
jbe 0x140016f37
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, rbx
jb 0x140016f32
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, r14
jbe 0x140016f32
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14012c930
movdqu xmmword [rbp + 0x20], xmm6
mov byte [rbp + 0x10], r13b
mov rdx, qword [rbp - 0x38]
cmp rdx, r12
jbe 0x140016f78
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, rbx
jb 0x140016f73
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, r14
jbe 0x140016f73
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14012c930
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x38], r12
mov byte [rbp - 0x50], r13b
mov rdx, qword [rbp + 0x40]
sub rdx, r15
mov rax, r15
cmp rdx, rbx
jb 0x140016fae
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, r14
jbe 0x140016fae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.14012c930
nop
lea rcx, [rbp + 0xd0]
call fcn.140012c18
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, r12
jbe 0x140016ffc
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, rbx
jb 0x140016ff7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, r14
jbe 0x140016ff7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14012c930
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], r12
mov byte [rbp - 0x30], r13b
mov rdx, qword [rbp + 8]
cmp rdx, r12
jbe 0x140017040
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, rbx
jb 0x14001703b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, r14
jbe 0x14001703b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14012c930
mov qword [rbp], r13
mov qword [rbp + 8], r12
mov byte [rbp - 0x10], r13b
mov rdx, qword [rsi + 0x18]
cmp rdx, r12
jbe 0x14001707c
inc rdx
mov rcx, qword [rsi]
cmp rdx, rbx
jb 0x140017077
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, r14
ja 0x140017088
mov rcx, r8
call fcn.14012c930
mov qword [rsi + 0x18], r12
mov byte [rsi], r13b
jmp 0x1400162e6
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]
jmp 0x14001687a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
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, [0x1402549d9]
mov rcx, rdi
call fcn.1400110ec
nop
mov ebx, 0x1000
mov r14d, Ordinal_33
test r15, r15
je 0x140017115
mov rdx, qword [rbp + 0x40]
sub rdx, r15
mov rax, r15
cmp rdx, rbx
jb 0x14001710c
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, r14
jbe 0x14001710c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.14012c930
nop
lea rcx, [rbp + 0xd0]
call fcn.140012c18
nop
mov rdx, qword [rbp - 0x18]
mov r15d, reloc.WS2_32.dll_ntohs
cmp rdx, r15
jbe 0x140017160
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, rbx
jb 0x14001715b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, r14
jbe 0x14001715b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14012c930
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], r15
mov byte [rbp - 0x30], r13b
mov rdx, qword [rbp + 8]
cmp rdx, r15
jbe 0x1400171a4
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, rbx
jb 0x14001719f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, r14
jbe 0x14001719f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14012c930
mov qword [rbp], r13
mov qword [rbp + 8], r15
mov byte [rbp - 0x10], r13b
mov rdx, qword [rsi + 0x18]
cmp rdx, r15
jbe 0x1400162df
inc rdx
mov rcx, qword [rsi]
cmp rdx, rbx
jb 0x1400162da
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, r14
ja 0x1400171e8
mov rcx, r8
jmp 0x1400162da
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140015f20
int3