Function at 0x140051b80
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 [0x14023a0c0]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rsi, r9
mov qword [rbp - 0x10], r9
mov rdi, r8
mov r14, rdx
mov r15, rcx
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x70], rdx
mov qword [rbp - 0x68], r8
mov qword [rbp - 0x60], r9
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov r8, qword [r8 + 0x10]
mov rcx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140051bf7
mov rcx, qword [rdi]
test r8, r8
jne 0x140051d57
lea rdx, [0x140153e2e]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140051d57
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 0x140051d42
xorps xmm0, xmm0
movups xmmword [r15], xmm0
mov qword [r15 + 0x10], rbx
mov qword [r15 + 0x18], rbx
xor r8d, r8d
lea rdx, [0x140153e2e]
mov rcx, r15
call fcn.140002d40
nop
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x140051c9e
mov rcx, qword [r14]
inc rdx
cmp rdx, 0x1000
jb 0x140051c99
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140051d34
mov rcx, r8
call fcn.1400c2084
mov qword [r14 + 0x10], rbx
mov qword [r14 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r14], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x140051ce4
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140051cdf
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140051d3b
mov rcx, r8
call fcn.1400c2084
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x140051ea1
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140051e9c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x140051e99
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, str.C:ProgramData
mov rcx, rdi
call fcn.14004f6a0
mov rax, qword [rdi + 0x10]
mov rcx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140051d68
mov rcx, qword [rdi]
cmp byte [rcx + rax - 1], 0x5c
je 0x140051d84
mov r8d, 1
lea rdx, [0x14021f270]
mov rcx, rdi
call fcn.140002840
mov rcx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140051d91
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x140051ed6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140051ed6
xorps xmm0, xmm0
movups xmmword [r15], xmm0
mov qword [r15 + 0x10], rbx
mov qword [r15 + 0x18], rbx
xor r8d, r8d
lea rdx, [0x140153e2e]
mov rcx, r15
call fcn.140002d40
nop
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x140051e0e
inc rdx
cmp rdx, 0x1000
mov rcx, qword [r14]
jb 0x140051e09
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140052e53
mov rcx, r8
call fcn.1400c2084
mov qword [r14 + 0x10], rbx
mov qword [r14 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r14], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x140051e58
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140051e53
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140052e5a
mov rcx, r8
call fcn.1400c2084
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x140051ea1
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140051e9c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140052e61
mov rcx, r8
call fcn.1400c2084
mov byte [rsi], 0
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rsi + 0x10], rbx
mov rax, r15
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.1400c1cc0
add rsp, 0x4a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov rdx, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x140051ef4
mov rdx, qword [r14]
mov r8d, Ordinal_41
lea rcx, [rbp + 0x30]
call fcn.1400411b0
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x30], r12
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 r13, qword [rax + 8]
add r13, 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], rbx
test r13, r13
je 0x140051fcd
movabs rax, 0x7fffffffffffffff
cmp r13, rax
ja 0x140052e7d
cmp r13, 0x1000
jb 0x140051fa6
lea rcx, [r13 + 0x27]
cmp rcx, r13
jbe 0x140052e83
call fcn.1400c1e00
mov rcx, rax
test rax, rax
je 0x140052e29
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140051fae
mov rcx, r13
call fcn.1400c1e00
mov qword [rbp - 0x50], rax
lea rbx, [rax + r13]
mov qword [rbp - 0x40], rbx
mov r8, r13
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x48], rbx
xor ebx, ebx
mov r8, r13
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 0x140052dcb
test r13, r13
je 0x140052dcb
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [0x14021f990]
movdqu xmmword [rbp - 0x80], xmm1
mov byte [rsp + 0x70], al
mov dword [rsp + 0x30], 2
lea r8, [rbp + 0x10]
mov edx, r13d
mov rcx, qword [rbp - 0x50]
call fcn.140054e20
mov r12, 0xffffffffffffffff
xor r13d, r13d
nop word [rax + rax]
mov dword [rbp - 0x58], r13d
movzx r8d, byte [rbp + rbx + 0x10]
lea rdx, str._02x
lea rcx, [rbp - 0x58]
call fcn.140054dc0
lea rax, [rbp - 0x58]
mov r8, r12
inc r8
cmp byte [rax + r8], r13b
jne 0x140052061
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x70]
call fcn.140002840
inc rbx
cmp rbx, 0x10
jb 0x140052040
mov r8, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x14005208e
mov r8, qword [rdi]
mov r9, qword [rdi + 0x10]
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.1400518c0
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
xor ebx, ebx
mov qword [rax + 0x10], rbx
mov byte [rax], bl
mov eax, 2
or eax, 4
mov dword [rsp + 0x30], eax
mov r8d, 4
lea rdx, str..pdb
lea rcx, [rsp + 0x50]
call fcn.140002840
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x20], rbx
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x28], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], bl
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x14005215f
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005215a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005215a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c2084
movdqa xmm0, xmmword [0x14021f990]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x1400521b9
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400521ac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400521ac
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c2084
movdqa xmm0, xmmword [0x14021f990]
movdqu xmmword [rbp - 0x80], xmm0
mov byte [rsp + 0x70], 0
mov rax, qword [rbp - 0x50]
movsxd r13, dword [rax + 0x3c]
add r13, rax
mov edx, ebx
mov dword [rbp - 0x58], ebx
movzx eax, word [r13 + 4]
mov ecx, 0x8664
cmp ax, cx
jne 0x140052210
lea rax, [r13 + 0xb8]
mov qword [rsp + 0x48], rax
lea rax, [r13 + 0x54]
mov qword [rsp + 0x38], rax
lea rcx, [r13 + 0x50]
mov qword [rsp + 0x40], __WSAFDIsSet
mov ebx, reloc.WLDAP32.dll_Ordinal_60
mov eax, Ordinal_60
jmp 0x140052251
mov ecx, 0x14c
cmp ax, cx
jne 0x140052d59
mov edx, 1
mov dword [rbp - 0x58], edx
mov qword [rsp + 0x48], 0xa0
mov qword [rsp + 0x38], reloc.WLDAP32.dll_Ordinal_60
mov ecx, Ordinal_60
lea rax, [r13 + 0xa8]
mov qword [rsp + 0x40], 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 qword [rbp + 0x10], rax
test rax, rax
jne 0x140052377
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
xorps xmm0, xmm0
movups xmmword [r15], xmm0
xor ebx, ebx
mov qword [r15 + 0x10], rbx
mov qword [r15 + 0x18], rbx
xor r8d, r8d
lea rdx, [0x140153e2e]
mov rcx, r15
call fcn.140002d40
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x1400522d6
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400522d1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140052dc4
call fcn.1400c2084
mov byte [rbp - 0x38], 0
mov qword [rbp - 0x20], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x28], rbx
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14005232c
mov rdx, qword [rbp - 0x40]
sub rdx, rcx
cmp rdx, 0x1000
mov rax, rcx
jb 0x14005231b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140052e29
call fcn.1400c2084
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.14003f8f0
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]
jmp 0x140051dd4
cmp dword [rbp - 0x58], 0
cmove rbx, qword [rsp + 0x38]
mov r8d, dword [rbx]
mov rdx, qword [rbp - 0x50]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [r13 + 0x14]
add rbx, 0x2c
xor ecx, ecx
mov dword [rsp + 0x38], ecx
cmp word [r13 + 6], cx
je 0x1400523e6
add rbx, r13
mov rsi, qword [rbp + 0x10]
nop dword [rax]
mov eax, dword [rbx - 4]
test eax, eax
je 0x1400523cf
mov r8d, eax
mov edx, dword [rbx]
add rdx, qword [rbp - 0x50]
mov ecx, dword [rbx - 8]
add rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [rsp + 0x38]
inc ecx
mov dword [rsp + 0x38], ecx
add rbx, 0x28
movzx eax, word [r13 + 6]
cmp ecx, eax
jne 0x1400523b0
mov rsi, qword [rbp - 0x10]
cmp dword [rbp - 0x58], 0
mov rcx, qword [rsp + 0x48]
cmovne rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
mov r13, qword [rbp + 0x10]
cmp dword [rcx + 4], 0
je 0x140052c81
cmp dword [rax + r13 + 0xc], 2
jne 0x140052c81
mov eax, dword [rax + r13 + 0x14]
add rax, r13
mov qword [rsp + 0x40], rax
cmp dword [rax], 0x53445352
je 0x14005260e
mov rcx, r13
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 [r15], xmm0
xor ebx, ebx
mov qword [r15 + 0x10], rbx
mov qword [r15 + 0x18], rbx
xor r8d, r8d
lea rdx, [0x140153e2e]
mov rcx, r15
call fcn.140002d40
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x14005249d
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140052498
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140052ceb
call fcn.1400c2084
mov byte [rbp - 0x38], 0
mov qword [rbp - 0x20], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x28], rbx
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x1400524f3
mov rdx, qword [rbp - 0x40]
sub rdx, rcx
cmp rdx, 0x1000
mov rax, rcx
jb 0x1400524e2
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140052d44
call fcn.1400c2084
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.14003f8f0
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 rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x140052574
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x14005256f
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140052d4b
mov rcx, r8
call fcn.1400c2084
mov byte [r14], 0
mov qword [r14 + 0x18], reloc.WS2_32.dll_ntohs
mov qword [r14 + 0x10], rbx
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x1400525be
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400525b9
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140052d52
mov rcx, r8
call fcn.1400c2084
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x140051ea1
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140051e9c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x140051e99
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rax, [rbp - 0x38]
cmp qword [rbp - 0x20], 0xf
cmova rax, qword [rbp - 0x38]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x28]
mov qword [rbp - 8], rax
movaps xmm0, xmmword [rbp - 0x10]
movdqa xmmword [rbp - 0x10], xmm0
xor r8d, r8d
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x10]
call fcn.14004ae40
nop
xor eax, eax
mov qword [rbp - 0x10], rax
lea rax, [0x14023a158]
mov qword [rbp - 8], rax
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x10]
call fcn.140038930
movzx ebx, al
cmp dword [rbp - 0x10], 0
jne 0x140052e68
mov rdx, qword [rbp + 0x28]
cmp rdx, 7
jbe 0x1400526b0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400526ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400526ab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c2084
test bl, bl
jne 0x140052c69
xor edx, edx
mov r8d, reloc.WLDAP32.dll_Ordinal_200
lea rcx, [rbp + 0x2c0]
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x40]
add rcx, 4
mov r8d, 0x64
lea rdx, [rbp + 0x2c0]
call qword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x1400528d4
mov rcx, r13
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 [r15], xmm0
xor ebx, ebx
mov qword [r15 + 0x10], rbx
mov qword [r15 + 0x18], rbx
xor r8d, r8d
lea rdx, [0x140153e2e]
mov rcx, r15
call fcn.140002d40
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x140052763
inc rdx
mov rcx, qword [rbp - 0x38]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14005275e
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140052bfb
call fcn.1400c2084
mov byte [rbp - 0x38], 0
mov qword [rbp - 0x20], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x28], rbx
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x1400527b9
mov rdx, qword [rbp - 0x40]
sub rdx, rcx
cmp rdx, 0x1000
mov rax, rcx
jb 0x1400527a8
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140052c54
call fcn.1400c2084
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.14003f8f0
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 rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x14005283a
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x140052835
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140052c5b
mov rcx, r8
call fcn.1400c2084
mov byte [r14], 0
mov qword [r14 + 0x18], reloc.WS2_32.dll_ntohs
mov qword [r14 + 0x10], rbx
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x140052884
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14005287f
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140052c62
mov rcx, r8
call fcn.1400c2084
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x140051ea1
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140051e9c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x140051e99
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
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
xor ebx, ebx
mov qword [rbp + 0x10], rbx
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 0x140052b93
mov rbx, qword [rbp + 0x10]
test rbx, rbx
je 0x140052b93
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x1b0]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
xor eax, eax
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rbp + rax + 0x140]
lea eax, [rcx - 0x30]
cmp al, 9
jbe 0x14005298d
lea eax, [rcx - 0x41]
cmp al, 5
jbe 0x14005298d
lea eax, [rcx - 0x61]
cmp al, 5
ja 0x1400529b2
lea r8, [rbp + 0x1b0]
mov rax, r12
nop word [rax + rax]
lea rax, [rax + 1]
cmp byte [r8 + rax], 0
jne 0x1400529a0
mov byte [rbp + rax + 0x1b0], cl
inc edx
mov eax, edx
cmp rax, rbx
jne 0x140052970
xor eax, eax
mov word [rbp - 0x58], ax
mov byte [rbp - 0x56], al
mov r9d, 0xa
mov r8d, 3
lea rdx, [rbp - 0x58]
mov rbx, qword [rsp + 0x40]
mov ecx, dword [rbx + 0x14]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa_s]
mov rdx, rsi
lea rcx, [rbp - 0x10]
call fcn.140002ff0
nop
mov r8, r12
inc r8
cmp byte [rbx + r8 + 0x18], 0
jne 0x1400529f2
lea rdx, [rbx + 0x18]
lea rcx, [rbp - 0x10]
call fcn.140002840
mov r8d, 1
lea rdx, [0x14021f27c]
lea rcx, [rbp - 0x10]
call fcn.140002840
lea rax, [rbp + 0x1b0]
mov r8, r12
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140052a30
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp - 0x10]
call fcn.140002840
lea rax, [rbp - 0x58]
mov r8, r12
inc r8
cmp byte [rax + r8], 0
jne 0x140052a51
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x10]
call fcn.140002840
mov r8d, 1
lea rdx, [0x14021f27c]
lea rcx, [rbp - 0x10]
call fcn.140002840
nop
inc r12
cmp byte [rbx + r12 + 0x18], 0
jne 0x140052a80
mov r8, r12
lea rdx, [rbx + 0x18]
lea rcx, [rbp - 0x10]
call fcn.140002840
lea r8, [rbp - 0x38]
cmp qword [rbp - 0x20], 0xf
cmova r8, qword [rbp - 0x38]
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 0xf
cmova rdx, qword [rbp - 0x10]
xor ebx, ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
mov rcx, r13
test eax, eax
jns 0x140052b45
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xorps xmm0, xmm0
movups xmmword [r15], xmm0
mov qword [r15 + 0x10], rbx
mov qword [r15 + 0x18], rbx
xor r8d, r8d
lea rdx, [0x140153e2e]
mov rcx, r15
call fcn.140002d40
nop
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x140052b2f
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140052b2a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140052b82
call fcn.1400c2084
movdqa xmm0, xmmword [0x14021f990]
movdqu xmmword [rbp], xmm0
mov byte [rbp - 0x10], 0
jmp 0x140052728
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x140052c6b
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140052b89
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140052b89
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c2084
jmp 0x140052c6b
mov rcx, r13
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 [r15], xmm0
mov qword [r15 + 0x10], rbx
mov qword [r15 + 0x18], rbx
xor r8d, r8d
lea rdx, [0x140153e2e]
mov rcx, r15
call fcn.140002d40
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x140052c07
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140052c02
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140052c02
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c2084
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x20], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x38], 0
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x1400527b9
mov rdx, qword [rbp - 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400527a8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400527a8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xor ebx, ebx
movups xmm0, xmmword [rbp - 0x38]
movups xmmword [r15], xmm0
movups xmm1, xmmword [rbp - 0x28]
movups xmmword [r15 + 0x10], xmm1
jmp 0x14005249d
mov rcx, r13
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 [r15], xmm0
xor ebx, ebx
mov qword [r15 + 0x10], rbx
mov qword [r15 + 0x18], rbx
xor r8d, r8d
lea rdx, [0x140153e2e]
mov rcx, r15
call fcn.140002d40
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x140052cf7
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140052cf2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140052cf2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c2084
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x20], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x38], 0
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x1400524f3
mov rdx, qword [rbp - 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400524e2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400524e2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
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 [r15], xmm0
mov qword [r15 + 0x10], rbx
mov qword [r15 + 0x18], rbx
xor r8d, r8d
lea rdx, [0x140153e2e]
mov rcx, r15
call fcn.140002d40
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x1400522d6
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400522d1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400522d1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_SetLastError]
xorps xmm0, xmm0
movups xmmword [r15], xmm0
mov qword [r15 + 0x10], rbx
mov qword [r15 + 0x18], rbx
xor r8d, r8d
lea rdx, [0x140153e2e]
mov rcx, r15
call fcn.140002d40
nop
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140052e41
mov rdx, qword [rbp - 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140052e30
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140052e30
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c2084
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rbx
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x30], r12
jmp 0x140052340
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea r8, [rbp + 0x10]
lea rdx, [rbp - 0x10]
lea rcx, str.exists
call fcn.1400388d0
nop
call fcn.140002770
int3
call fcn.140001ed0
int3