Function at 0x14001f930
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1400a3020]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbp, r8
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x58], rcx
movzx eax, byte [r8 + 0x125]
mov byte [rcx], al
mov qword [rcx + 8], r9
lea r14, [rcx + 0x10]
xor r15d, r15d
mov qword [r14], r15
mov qword [rcx + 0x18], r15
mov qword [rcx + 0x20], r15
lea ecx, [r15 + 0x20]
call fcn.140047d0c
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
mov qword [rbx + 0x50], r15
mov qword [rbx + 0x58], r15
mov qword [rbx + 0x60], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x48], r15
mov edi, 7
mov qword [rsp + 0x50], rdi
mov r8d, edi
cmp qword [rsi + 0x10], rdi
cmovb r8, qword [rsi + 0x10]
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x14001f9d5
mov rdx, qword [rsi]
lea rcx, [rsp + 0x38]
call fcn.140002760
lea r8, [rsp + 0x38]
mov r10, qword [rsp + 0x50]
cmp r10, 8
setae r11b
mov r9, qword [rsp + 0x38]
cmovae r8, r9
cmp qword [rsp + 0x48], rdi
jne 0x14001fa3c
lea rax, str.http:__
movzx ecx, word [r8]
mov edx, 0x68
cmp cx, dx
jb 0x14001fa3c
sub r8, rax
cmp cx, dx
ja 0x14001fa3c
cmp rdi, 1
je 0x14001facc
dec rdi
add rax, 2
movzx ecx, word [rax + r8]
movzx edx, word [rax]
cmp cx, dx
jae 0x14001fa1c
xor dil, dil
test r11b, r11b
je 0x14001fa79
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x14001fa71
add rdx, 0x27
mov r9, qword [r9 - 8]
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001fc43
mov rcx, r9
call fcn.1400477f0
test dil, dil
je 0x14001fad4
mov ecx, 0x10
call fcn.140047d0c
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov r9d, dword [rbp + 0x160]
mov r8d, dword [rbp + 0x15c]
mov rdx, rsi
mov rcx, rax
call fcn.140020690
mov rcx, rax
lea rax, [rsp + 0x30]
cmp r14, rax
je 0x14001fb0d
mov r8, qword [r14]
mov qword [r14], rcx
test r8, r8
je 0x14001fb25
mov rax, qword [r8]
mov rcx, r8
jmp 0x14001fb1d
mov dil, 1
jmp 0x14001fa3f
mov ecx, 0x28
call fcn.140047d0c
mov rdi, rax
mov qword [rsp + 0x30], rax
lea rax, vtable.CLocalFileSaverImpl.0
mov qword [rdi], rax
lea rcx, [rdi + 8]
mov rdx, rsi
call fcn.140001ce0
nop
lea rax, [rsp + 0x30]
cmp r14, rax
je 0x14001fb17
mov rcx, qword [r14]
mov qword [r14], rdi
test rcx, rcx
je 0x14001fb25
mov rax, qword [rcx]
jmp 0x14001fb1d
mov rax, qword [rdi]
mov rcx, rdi
mov edx, 1
call qword [rax + 0x18]
xor ecx, ecx
call fcn.1400011d0
cmp qword [rsi + 0x18], 8
jb 0x14001fb36
mov rsi, qword [rsi]
mov r8, rsi
lea rdx, str.CFileSaver::CFileSaver__:_output_set_to__s
mov rcx, rax
call fcn.140022090
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, rax
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x14001fb70
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x50], r15
mov qword [rbx + 0x50], rdi
test rdi, rdi
je 0x14001fc49
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, rax
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x14001fba5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x58], r15
mov qword [rbx + 0x58], rdi
test rdi, rdi
je 0x14001fc6f
mov dword [rsp + 0x60], r15d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, rbx
lea r8, [0x14001fca0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x14001fbf0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x60], r15
mov qword [rbx + 0x60], rdi
test rdi, rdi
je 0x14001fc1d
mov rax, rbx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400477d0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov r8b, 1
lea rdx, str.CFileSaver::CFileSaver__:_Can_not_create_BackgroundUploadThreadProc_thread
lea rcx, [rsp + 0x38]
call fcn.1400011b0
lea rdx, [0x1400a1530]
lea rcx, [rsp + 0x38]
call fcn.140049b34
int3
call fcn.14004e14c
int3
mov r8b, 1
lea rdx, str.CFileSaver::CFileSaver__:_Can_not_create_QueueNotEmptyEvent_thread
lea rcx, [rsp + 0x38]
call fcn.1400011b0
lea rdx, [0x1400a1530]
lea rcx, [rsp + 0x38]
call fcn.140049b34
int3
mov r8b, 1
lea rdx, str.CFileSaver::CFileSaver__:_Can_not_create_FinishEvent_thread
lea rcx, [rsp + 0x38]
call fcn.1400011b0
lea rdx, [0x1400a1530]
lea rcx, [rsp + 0x38]
call fcn.140049b34
int3