Function at 0x140046e00
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1c8]
sub rsp, 0x290
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov rax, qword [0x1400aa0c0]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rdi, rdx
mov rbx, rcx
xor r13d, r13d
mov dword [rbp - 0x20], r13d
call qword [sym.imp.libcurl.dll_curl_easy_init]
mov r12, rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], r13
mov qword [rbp + 0x48], 0xf
mov byte [rbp + 0x30], r13b
test rax, rax
je 0x140047a96
cmp qword [rbx + 0x18], 0xf
jbe 0x140046e79
mov rbx, qword [rbx]
mov r8, rbx
mov edx, 0x2712
mov rcx, r12
call qword [sym.imp.libcurl.dll_curl_easy_setopt]
lea r8, [0x140040ad0]
mov edx, 0x4e2b
mov rcx, r12
call qword [sym.imp.libcurl.dll_curl_easy_setopt]
lea r8, [rbp + 0x30]
mov edx, 0x2711
mov rcx, r12
call qword [sym.imp.libcurl.dll_curl_easy_setopt]
mov edx, 0x34
mov r8d, 1
mov rcx, r12
call qword [sym.imp.libcurl.dll_curl_easy_setopt]
mov rcx, r12
call qword [sym.imp.libcurl.dll_curl_easy_perform]
mov ebx, eax
test eax, eax
je 0x140047132
lea rdi, [0x1400aa1a0]
mov qword [rbp - 0x20], rdi
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x140047aae
mov ecx, dword [0x1400aa1ec]
cmp ecx, 0x7fffffff
jne 0x140046f0f
dec ecx
mov dword [0x1400aa1ec], ecx
jmp 0x140047acf
mov ecx, ebx
call qword [sym.imp.libcurl.dll_curl_easy_strerror]
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], r13
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140046f30
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.140037960
nop
mov r8, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
sub rax, r8
mov r15d, 0x11
lea r14, str.Download_failed:
cmp rax, r15
jb 0x140046fdf
lea rax, [r8 + 0x11]
mov qword [rbp - 0x48], rax
lea rbx, [rbp - 0x58]
cmp rcx, 0xf
cmova rbx, qword [rbp - 0x58]
lea rax, [0x1400954e1]
cmp rax, rbx
jbe 0x140046fa3
lea rax, [rbx + r8]
cmp r14, rax
ja 0x140046fa3
cmp rbx, r14
ja 0x140046f9b
mov rsi, r13
jmp 0x140046fa6
mov rsi, rbx
sub rsi, r14
jmp 0x140046fa6
mov rsi, r15
lea rcx, [rbx + 0x11]
inc r8
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, rsi
mov rdx, r14
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbx + rsi]
sub r15, rsi
lea rdx, [r14 + 0x11]
add rdx, rsi
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbp - 0x58]
jmp 0x140046ff8
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov rdx, r15
lea rcx, [rbp - 0x58]
call fcn.140075c20
movups xmm6, xmmword [rax]
movups xmm7, xmmword [rax + 0x10]
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [0x1400aa2a0]
cmp rdx, 0xf
jbe 0x14004704b
mov rcx, qword [0x1400aa288]
inc rdx
cmp rdx, 0x1000
jb 0x140047046
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140047092
mov rcx, r8
call fcn.14008514c
movups xmmword [0x1400aa288], xmm6
movups xmmword [0x1400aa298], xmm7
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x14004709e
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047099
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140047099
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 fcn.14008514c
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov r8d, 0xb
lea rdx, str.app_log.txt
lea rcx, [rsp + 0x40]
call fcn.140037960
nop
lea rdx, [rsp + 0x40]
lea rcx, [0x1400aa288]
call fcn.140040de0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14004711b
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047115
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140047115
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008514c
nop
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rcx, r12
call qword [sym.imp.libcurl.dll_curl_easy_cleanup]
jmp 0x140047b7b
lea rax, str.downloads
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 9
call fcn.140085eb0
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
lea r8, [rbp - 0x30]
mov edx, eax
lea rcx, [rbp + 0x10]
call fcn.140039450
nop
mov r8d, 3
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x20]
call fcn.14003b3d0
movsd xmm0, qword [rax]
movsd qword [rbp - 0x30], xmm0
mov ecx, dword [rax + 8]
mov dword [rbp - 0x20], ecx
lea rax, str.HK_t_
mov qword [rbp - 0x18], rax
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x20], xmm0
mov eax, dword [rbp - 0x30]
test eax, eax
je 0x1400472b1
cmp eax, 1
setne al
test al, al
jne 0x1400471cd
lea rcx, [rbp + 0x10]
cmp qword [rbp + 0x28], 7
cmova rcx, qword [rbp + 0x10]
call fcn.1400863b4
shr rax, 0x20
test eax, eax
jne 0x140047c0a
mov rcx, qword [rdi + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 4
jb 0x140047c1d
mov r9, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x1400471f5
mov r9, qword [rdi]
mov qword [rsp + 0x30], 4
lea rax, str..zip
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r8, rdi
movzx edx, byte [rsp + 0x60]
lea rcx, [rsp + 0x68]
call fcn.14006de60
nop
lea rax, [rsp + 0x68]
cmp qword [rbp - 0x80], 0xf
cmova rax, qword [rsp + 0x68]
mov qword [rbp - 0x30], rax
mov rax, qword [rsp + 0x78]
mov qword [rbp - 0x28], rax
call fcn.140085eb0
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
lea r8, [rbp - 0x30]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.140039450
nop
lea r8, [rsp + 0x40]
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x10]
call fcn.140039cf0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x1400472c3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400472be
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400472be
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
test ecx, ecx
jne 0x140047bf5
jmp 0x1400471ae
call fcn.14008514c
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r13w
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x140047316
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047311
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140047311
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008514c
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x80], 0xf
mov byte [rsp + 0x68], 0
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 7
cmova rdx, qword [rbp - 0x10]
lea rcx, [rbp + 0x50]
call fcn.14006d290
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x50], rax
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x4c], edx
cmp qword [rbp + 0xd8], 0
je 0x1400476d8
lea rdx, [rbp + 0x30]
cmp qword [rbp + 0x48], 0xf
cmova rdx, qword [rbp + 0x30]
mov r8, qword [rbp + 0x40]
lea rcx, [rbp + 0x50]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rbp + 0x58]
call fcn.140060c50
test rax, rax
jne 0x1400473cb
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x50]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
movzx eax, byte [0x1400dce2f]
test al, al
jne 0x1400473f8
mov r8d, 0x21
lea rdx, str.Lua_file_compiled__restart_Steam.
lea rcx, [0x1400aa288]
call fcn.140061200
mov eax, r13d
xchg byte [0x1400dce29], al
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov r8d, 0xb
lea rdx, str.app_log.txt
lea rcx, [rsp + 0x40]
call fcn.140037960
nop
lea rdx, [rsp + 0x40]
lea rcx, [0x1400aa288]
call fcn.140040de0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140047474
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004746f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004746f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008514c
lea r14, [rbp - 0x10]
cmp qword [rbp + 8], 7
cmova r14, qword [rbp - 0x10]
mov rsi, qword [rbp]
call fcn.140085eb0
mov r15d, eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x80], 0xf
mov byte [rsp + 0x68], 0
mov dword [rbp - 0x20], 0x803e
test rsi, rsi
je 0x140047526
cmp rsi, 0x7fffffff
ja 0x140047c23
mov dword [rsp + 0x20], r13d
xor r9d, r9d
mov r8d, esi
mov rdx, r14
mov ecx, eax
call fcn.140085f20
mov rbx, rax
mov rcx, rax
shr rcx, 0x20
test ecx, ecx
jne 0x140047c29
movsxd rdx, ebx
xor r8d, r8d
lea rcx, [rsp + 0x68]
call fcn.14005f3b0
lea r9, [rsp + 0x68]
cmp qword [rbp - 0x80], 0xf
cmova r9, qword [rsp + 0x68]
mov dword [rsp + 0x20], ebx
mov r8d, esi
mov rdx, r14
mov ecx, r15d
call fcn.140085f20
shr rax, 0x20
test eax, eax
jne 0x140047c2f
mov ecx, 0x48
call fcn.140084e00
mov rbx, rax
mov qword [rbp - 0x20], rax
mov rdx, rdi
mov rcx, rax
call fcn.14005f5e0
xorps xmm0, xmm0
movups xmmword [rbx + 0x20], xmm0
mov qword [rbx + 0x30], r13
mov qword [rbx + 0x38], r13
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rbx + 0x20], xmm0
movups xmm1, xmmword [rsp + 0x78]
movups xmmword [rbx + 0x30], xmm1
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x80], 0xf
mov byte [rsp + 0x68], 0
lea rax, [0x140045bf0]
mov qword [rbx + 0x40], rax
mov qword [rbp - 0x20], rbx
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
mov r9, rbx
lea r8, [0x140076ce0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x30], rax
test rax, rax
je 0x1400476c8
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x1400475f2
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400475ed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400475ed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008514c
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x80], 0xf
mov byte [rsp + 0x68], 0
cmp dword [rbp - 0x28], 0
je 0x1400476bc
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x1400476bc
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
lea rcx, [0x1400aa150]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14004764e
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov eax, dword [0x1400aa19c]
cmp eax, 0x7fffffff
jne 0x14004766f
dec eax
mov dword [0x1400aa19c], eax
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
cmp byte [0x1400dce4e], 0
jne 0x14004769d
nop dword [rax + rax]
lea rdx, [0x1400aa150]
lea rcx, [0x1400dcec0]
call qword [sym.imp.MSVCP140.dll__Cnd_wait]
cmp byte [0x1400dce4e], 0
je 0x140047680
lea rcx, [0x1400aa150]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
nop
cmp dword [rbp - 0x28], 0
je 0x1400479aa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x28], r13d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
lea rdi, [0x1400aa1a0]
mov qword [rbp - 0x30], rdi
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x1400476fc
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov eax, dword [0x1400aa1ec]
cmp eax, 0x7fffffff
jne 0x14004771d
dec eax
mov dword [0x1400aa1ec], eax
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
lea r14, [rbp - 0x10]
cmp qword [rbp + 8], 7
cmova r14, qword [rbp - 0x10]
mov rsi, qword [rbp]
call fcn.140085eb0
mov r15d, eax
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov r8, r13
mov qword [rbp - 0x68], r13
mov ecx, 0xf
mov qword [rbp - 0x60], rcx
mov byte [rbp - 0x78], r8b
mov dword [rbp - 0x20], 0x43e
test rsi, rsi
je 0x1400477d5
cmp rsi, 0x7fffffff
ja 0x140047c37
mov dword [rsp + 0x20], r13d
xor r9d, r9d
mov r8d, esi
mov rdx, r14
mov ecx, eax
call fcn.140085f20
mov rbx, rax
mov rcx, rax
shr rcx, 0x20
test ecx, ecx
jne 0x140047c3d
movsxd rdx, ebx
xor r8d, r8d
lea rcx, [rbp - 0x78]
call fcn.14005f3b0
lea r9, [rbp - 0x78]
cmp qword [rbp - 0x60], 0xf
cmova r9, qword [rbp - 0x78]
mov dword [rsp + 0x20], ebx
mov r8d, esi
mov rdx, r14
mov ecx, r15d
call fcn.140085f20
shr rax, 0x20
test eax, eax
jne 0x140047bed
mov rcx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x68]
mov rax, rcx
sub rax, r8
mov ebx, 0x21
lea r15, str.Failed_to_open_file_for_writing:
cmp rax, rbx
jb 0x140047864
lea rax, [r8 + 0x21]
mov qword [rbp - 0x68], rax
lea rsi, [rbp - 0x78]
cmp rcx, 0xf
cmova rsi, qword [rbp - 0x78]
lea rax, [0x1400954a1]
cmp rax, rsi
jbe 0x140047828
lea rax, [rsi + r8]
cmp r15, rax
ja 0x140047828
cmp rsi, r15
ja 0x140047820
mov r14, r13
jmp 0x14004782b
mov r14, rsi
sub r14, r15
jmp 0x14004782b
mov r14, rbx
lea rcx, [rsi + 0x21]
inc r8
mov rdx, rsi
call sub.VCRUNTIME140.dll_memmove
mov r8, r14
mov rdx, r15
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsi + r14]
sub rbx, r14
lea rdx, [r15 + 0x21]
add rdx, r14
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbp - 0x78]
jmp 0x14004787d
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov rdx, rbx
lea rcx, [rbp - 0x78]
call fcn.140075c20
movups xmm6, xmmword [rax]
movups xmm7, xmmword [rax + 0x10]
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [0x1400aa2a0]
cmp rdx, 0xf
jbe 0x1400478d0
mov rcx, qword [0x1400aa288]
inc rdx
cmp rdx, 0x1000
jb 0x1400478cb
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140047917
mov rcx, r8
call fcn.14008514c
movups xmmword [0x1400aa288], xmm6
movups xmmword [0x1400aa298], xmm7
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x140047923
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004791e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004791e
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 fcn.14008514c
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov r8d, 0xb
lea rdx, str.app_log.txt
lea rcx, [rsp + 0x40]
call fcn.140037960
nop
lea rdx, [rsp + 0x40]
lea rcx, [0x1400aa288]
call fcn.140040de0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x1400479a0
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004799a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004799a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008514c
nop
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
nop
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x50], rax
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x4c], edx
lea rcx, [rbp + 0x58]
call fcn.14005de10
lea rcx, [rbp + 0x60]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xf8]
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 [rbp + 8]
cmp rdx, 7
jbe 0x140047a34
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047a2f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140047a2f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008514c
mov qword [rbp], r13
mov qword [rbp + 8], 7
mov word [rbp - 0x10], r13w
mov rdx, qword [rbp + 0x28]
cmp rdx, 7
jbe 0x140047a88
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047a83
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140047a83
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008514c
mov rcx, r12
call qword [sym.imp.libcurl.dll_curl_easy_cleanup]
jmp 0x140047b7b
lea rdi, [0x1400aa1a0]
mov qword [rbp - 0x30], rdi
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x140047aba
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov eax, dword [0x1400aa1ec]
cmp eax, 0x7fffffff
jne 0x140047adb
dec eax
mov dword [0x1400aa1ec], eax
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov r8d, 0x1a
lea rdx, str.Failed_to_initialize_CURL.
lea rcx, [0x1400aa288]
call fcn.140061200
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov r8d, 0xb
lea rdx, str.app_log.txt
lea rcx, [rsp + 0x40]
call fcn.140037960
nop
lea rdx, [rsp + 0x40]
lea rcx, [0x1400aa288]
call fcn.140040de0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140047b71
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047b6b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140047b6b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008514c
nop
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
nop
mov rdx, qword [rbp + 0x48]
cmp rdx, 0xf
jbe 0x140047bb9
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047bb4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140047bb4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008514c
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140084a20
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x50]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, eax
call fcn.140038da0
nop
lea r8, [rbp + 0x10]
lea rdx, [rbp - 0x20]
lea rcx, str.exists
call fcn.14003a930
int3
lea r8, [rbp + 0x10]
mov edx, eax
lea rcx, str.create_directory
call fcn.14003a7e0
int3
call fcn.140035cb0
nop
call fcn.140038ac0
int3
call fcn.140038da0
int3
mov ecx, eax
call fcn.140038da0
nop
call fcn.140038ac0
int3
call fcn.140038da0
int3