Function at 0x140016090
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 [0x1403111c0]
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 0x140016150
lea rdx, [rbp + 0x570]
lea rcx, [rbp - 0x30]
call fcn.1400110fc
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 0x1400161bd
cmp rcx, rdx
jae 0x1400161ae
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 0x1400161bd
mov r8b, r13b
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140011a74
mov r8d, 8
lea rdx, str.symbols_
lea rcx, [rbp - 0x30]
call fcn.140015f6c
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.140012bb8
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 0x14001632c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14001632c
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], r13
xor r8d, r8d
lea rdx, [0x140294999]
mov rcx, rdi
call fcn.1400110fc
nop
mov ebx, 0x1000
mov r14d, Ordinal_35
mov rdx, qword [rbp - 0x18]
cmp rdx, r15
jbe 0x14001626e
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, rbx
jb 0x140016269
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, r14
ja 0x140017164
call fcn.14017fd24
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], r15
mov byte [rbp - 0x30], r13b
mov rdx, qword [rbp + 8]
cmp rdx, r15
jbe 0x1400162af
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, rbx
jb 0x1400162aa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, r14
ja 0x1400171a8
call fcn.14017fd24
mov qword [rbp], r13
mov qword [rbp + 8], r15
mov byte [rbp - 0x10], r13b
mov rdx, qword [rsi + 0x18]
cmp rdx, r15
jbe 0x1400162ef
inc rdx
mov rcx, qword [rsi]
cmp rdx, rbx
jb 0x1400162ea
add rdx, 0x27
mov rax, qword [rcx - 8]
sub rcx, rax
add rcx, 0xfffffffffffffff8
cmp rcx, r14
ja 0x1400171f8
mov rcx, rax
call fcn.14017fd24
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.140180200
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 0x14001634c
mov rdx, qword [rsi]
mov dword [rsp + 0x20], ebx
mov r9d, 0x40
lea r8d, [r9 - 0x1c]
lea rcx, [rbp + 0xd0]
call fcn.140011e98
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.140011468
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 0x1400170b6
test rbx, rbx
je 0x1400170b6
mov r8d, ebx
mov rdx, r15
lea rcx, [rsp + 0x58]
call fcn.140014c54
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.140017580
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.140015f6c
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_35
mov rdx, qword [rbp + 0x60]
cmp rdx, 0xf
jbe 0x1400164fe
inc rdx
mov rcx, qword [rbp + 0x48]
mov rax, rcx
cmp rdx, rbx
jb 0x1400164f9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, r14
jbe 0x1400164f9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14017fd24
movdqa xmm6, xmmword [0x140294f30]
movdqu xmmword [rbp + 0x58], xmm6
mov byte [rbp + 0x48], r13b
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x14001654a
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, rbx
jb 0x140016545
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, r14
jbe 0x140016545
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14017fd24
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 0x1400171ff
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.1400121f0
nop
test r12b, r12b
jne 0x1400167d1
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 0x1400167d1
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 0x1400167d1
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.140011e98
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.1400102a0
lea rcx, [rbp + 0x1f0]
call fcn.140015fe4
test rax, rax
jne 0x1400166b7
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.1400112b0
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0x90]
call fcn.140014d1c
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 0x1400167ae
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400167ae
lea rdx, [rbp - 0x50]
mov rcx, rdi
call fcn.1400121a4
lea rcx, [rbp + 0x90]
call fcn.140012910
nop
lea rcx, [rbp + 0x48]
call fcn.140012910
nop
lea rcx, [rbp + 0x1e0]
call fcn.140012c28
nop
lea rcx, [rbp + 0x10]
call fcn.140012910
nop
lea rcx, [rbp - 0x50]
call fcn.140012910
nop
lea rcx, [rbp + 0x30]
call fcn.1400129a8
nop
lea rcx, [rbp + 0xd0]
call fcn.140012c28
nop
lea rcx, [rbp - 0x30]
call fcn.140012910
nop
lea rcx, [rbp - 0x10]
call fcn.140012910
nop
mov rcx, rsi
call fcn.140012910
jmp 0x1400162fa
lea rcx, [rbp + 0x90]
call fcn.140012910
nop
lea rcx, [rbp + 0x48]
call fcn.140012910
nop
lea rcx, [rbp + 0x1e0]
call fcn.140012c28
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 0x14001681f
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 0x140016865
mov eax, 0x14c
cmp word [r13 + 4], ax
jne 0x14001709f
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 0x140016a36
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, [0x140294999]
mov rcx, rdi
call fcn.1400110fc
nop
mov r13d, reloc.WS2_32.dll_ntohs
mov rdx, qword [rbp + 0x28]
cmp rdx, r13
jbe 0x1400168e6
inc rdx
mov rcx, qword [rbp + 0x10]
cmp rdx, rbx
mov rax, rcx
jb 0x1400168e1
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, r14
ja 0x1400170af
call fcn.14017fd24
mov byte [rbp + 0x10], r12b
movdqu xmmword [rbp + 0x20], xmm6
mov rdx, qword [rbp - 0x38]
cmp rdx, r13
jbe 0x140016927
inc rdx
mov rcx, qword [rbp - 0x50]
cmp rdx, rbx
mov rax, rcx
jb 0x140016922
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, r14
jbe 0x140016922
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14017fd24
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 0x14001695a
mov r15, qword [r15 - 8]
sub rax, r15
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, r14
ja 0x140017115
mov rcx, r15
call fcn.14017fd24
nop
lea rcx, [rbp + 0xd0]
call fcn.140012c28
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, r13
jbe 0x1400169a5
inc rdx
mov rcx, qword [rbp - 0x30]
cmp rdx, rbx
mov rax, rcx
jb 0x1400169a0
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, r14
ja 0x140017164
call fcn.14017fd24
mov byte [rbp - 0x30], r12b
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x20], r12
mov rdx, qword [rbp + 8]
cmp rdx, r13
jbe 0x1400169e6
inc rdx
mov rcx, qword [rbp - 0x10]
cmp rdx, rbx
mov rax, rcx
jb 0x1400169e1
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, r14
ja 0x1400171a8
call fcn.14017fd24
mov byte [rbp - 0x10], r12b
mov qword [rbp + 8], r13
mov qword [rbp], r12
mov rdx, qword [rsi + 0x18]
cmp rdx, r13
jbe 0x140016a26
inc rdx
cmp rdx, rbx
mov rcx, qword [rsi]
jb 0x140016a21
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, r14
ja 0x1400171f8
mov rcx, r8
call fcn.14017fd24
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], r13
mov byte [rsi], r12b
jmp 0x1400162fa
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 0x140016aa5
lea rsi, [rax + r13]
cmp dword [rsi - 4], edx
je 0x140016a8e
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 0x140016a6f
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 0x140016ed4
cmp dword [rax + r12 + 0xc], 2
jne 0x140016ed4
mov r15d, dword [rax + r12 + 0x14]
add r15, r12
cmp dword [r15], 0x53445352
je 0x140016b58
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, [0x140294999]
mov rcx, rdi
call fcn.1400110fc
nop
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x140016b4a
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, rbx
jb 0x140016b45
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, r14
ja 0x140016f3b
call fcn.14017fd24
movdqu xmmword [rbp + 0x20], xmm6
mov byte [rbp + 0x10], r13b
jmp 0x14001676c
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 0x140016bd6
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, [0x140294999]
mov rcx, rdi
call fcn.1400110fc
jmp 0x140016762
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 0x140016b9d
mov r14, qword [rbp + 0x68]
test r14, r14
je 0x140016b9d
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 0x140016c4a
lea eax, [rbx - 0x41]
cmp al, 5
jbe 0x140016c4a
lea eax, [rbx - 0x61]
cmp al, 5
ja 0x140016c61
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 0x140016c2e
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 0x140016cb3
mov rdx, qword [rdx]
lea rcx, [rbp + 0x70]
call fcn.1400112b0
nop
mov r13d, 1
mov r8d, r13d
lea rdx, [0x140294a74]
lea rcx, [rbp + 0x70]
call fcn.140015f6c
or rbx, 0xffffffffffffffff
mov r8, rbx
xor r14d, r14d
inc r8
cmp byte [r15 + r8 + 0x18], r14b
jne 0x140016ce0
lea rdx, [r15 + 0x18]
lea rcx, [rbp + 0x70]
call fcn.140015f6c
mov r8, r13
lea rdx, [0x140294a74]
lea rcx, [rbp + 0x70]
call fcn.140015f6c
lea rax, [rbp + 0x470]
mov r8, rbx
inc r8
cmp byte [rax + r8], r14b
jne 0x140016d14
lea rdx, [rbp + 0x470]
lea rcx, [rbp + 0x70]
call fcn.140015f6c
lea rax, [rbp - 0x58]
mov r8, rbx
inc r8
cmp byte [rax + r8], r14b
jne 0x140016d34
lea rdx, [rbp - 0x58]
lea rcx, [rbp + 0x70]
call fcn.140015f6c
mov r8, r13
lea rdx, [0x140294a74]
lea rcx, [rbp + 0x70]
call fcn.140015f6c
inc rbx
cmp byte [r15 + rbx + 0x18], r14b
jne 0x140016d5d
mov r8, rbx
lea rdx, [r15 + 0x18]
lea rcx, [rbp + 0x70]
call fcn.140015f6c
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 0x140016de1
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, [0x140294999]
mov rcx, rdi
call fcn.1400110fc
nop
lea rcx, [rbp + 0x70]
call fcn.140012910
jmp 0x140016762
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.1400112b0
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0xb0]
call fcn.140014d1c
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.140011f9c
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.1400104dc
lea rdx, [rbp - 0x50]
mov rcx, rdi
call fcn.1400121a4
nop
lea rcx, [rbp + 0x2f0]
call fcn.140012c8c
nop
lea rcx, [rbp + 0xb0]
call fcn.140012910
jmp 0x140016dd3
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, [0x140294999]
mov rcx, rdi
call fcn.1400110fc
nop
mov rdx, qword [rbp + 0x28]
mov r12d, reloc.WS2_32.dll_ntohs
cmp rdx, r12
jbe 0x140016f47
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, rbx
jb 0x140016f42
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, r14
jbe 0x140016f42
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14017fd24
movdqu xmmword [rbp + 0x20], xmm6
mov byte [rbp + 0x10], r13b
mov rdx, qword [rbp - 0x38]
cmp rdx, r12
jbe 0x140016f88
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, rbx
jb 0x140016f83
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, r14
jbe 0x140016f83
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14017fd24
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 0x140016fbe
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, r14
jbe 0x140016fbe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.14017fd24
nop
lea rcx, [rbp + 0xd0]
call fcn.140012c28
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, r12
jbe 0x14001700c
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, rbx
jb 0x140017007
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, r14
jbe 0x140017007
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14017fd24
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], r12
mov byte [rbp - 0x30], r13b
mov rdx, qword [rbp + 8]
cmp rdx, r12
jbe 0x140017050
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, rbx
jb 0x14001704b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, r14
jbe 0x14001704b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14017fd24
mov qword [rbp], r13
mov qword [rbp + 8], r12
mov byte [rbp - 0x10], r13b
mov rdx, qword [rsi + 0x18]
cmp rdx, r12
jbe 0x14001708c
inc rdx
mov rcx, qword [rsi]
cmp rdx, rbx
jb 0x140017087
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, r14
ja 0x140017098
mov rcx, r8
call fcn.14017fd24
mov qword [rsi + 0x18], r12
mov byte [rsi], r13b
jmp 0x1400162f6
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 0x14001688a
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, [0x140294999]
mov rcx, rdi
call fcn.1400110fc
nop
mov ebx, 0x1000
mov r14d, Ordinal_35
test r15, r15
je 0x140017125
mov rdx, qword [rbp + 0x40]
sub rdx, r15
mov rax, r15
cmp rdx, rbx
jb 0x14001711c
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, r14
jbe 0x14001711c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.14017fd24
nop
lea rcx, [rbp + 0xd0]
call fcn.140012c28
nop
mov rdx, qword [rbp - 0x18]
mov r15d, reloc.WS2_32.dll_ntohs
cmp rdx, r15
jbe 0x140017170
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, rbx
jb 0x14001716b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, r14
jbe 0x14001716b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14017fd24
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], r15
mov byte [rbp - 0x30], r13b
mov rdx, qword [rbp + 8]
cmp rdx, r15
jbe 0x1400171b4
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, rbx
jb 0x1400171af
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, r14
jbe 0x1400171af
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14017fd24
mov qword [rbp], r13
mov qword [rbp + 8], r15
mov byte [rbp - 0x10], r13b
mov rdx, qword [rsi + 0x18]
cmp rdx, r15
jbe 0x1400162ef
inc rdx
mov rcx, qword [rsi]
cmp rdx, rbx
jb 0x1400162ea
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, r14
ja 0x1400171f8
mov rcx, r8
jmp 0x1400162ea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140015f30
int3