Function at 0x180043a50
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0xc8]
sub rsp, 0x1b0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1800ba0e0]
xor rax, rsp
mov qword [rbp + 0xa8], rax
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x80], rcx
xor eax, eax
mov qword [rsp + 0x28], rax
lea rax, [0x1800c5b60]
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x28], 0
lea rcx, [rsp + 0x20]
call fcn.18002ad20
nop
mov rax, qword [0x1800c5b78]
sub rax, qword [0x1800c5b70]
sar rax, 3
mov qword [rsp + 0x38], rax
lea rdx, str.get_downloadurl_by_filename:_urlVec_size_is__d
lea rcx, [rsp + 0x70]
call fcn.180012ec0
mov rbx, rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x40], rax
lea rax, [fcn.180038600]
mov qword [rsp + 0x48], rax
lea rax, [0x180032660]
mov qword [rsp + 0x50], rax
cmp byte [rbx + 0x44], 0
je 0x180043b12
mov rcx, rbx
call fcn.180025730
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.18000bd70
inc dword [rbx + 0x3c]
mov r9d, dword [rbx + 0x3c]
cmp qword [rbx + 0x30], 0
je 0x180043b72
mov r10d, dword [rbx + 0x40]
cmp r9d, r10d
jge 0x180043b72
nop word [rax + rax]
movsxd rcx, r9d
mov rdx, qword [rbx + 0x18]
mov rax, rcx
shr rax, 5
lea r8, [rdx + rax*4]
mov qword [rsp + 0x60], r8
and ecx, 0x1f
mov eax, 1
shl eax, cl
test dword [r8], eax
je 0x180043b72
inc r9d
mov dword [rbx + 0x3c], r9d
cmp r9d, r10d
jl 0x180043b40
mov rdx, rbx
lea rcx, [rbp + 0x88]
call fcn.180011920
nop
cmp byte [rbp + 0x60], 0
je 0x180043baf
mov rcx, qword [rbp + 0x70]
test rcx, rcx
je 0x180043bab
mov rax, qword [rcx]
call qword [rax + select]
test rax, rax
je 0x180043bab
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
mov byte [rbp + 0x60], 0
lea rcx, [rbp - 0x20]
call fcn.1800181b0
lea rcx, [rbp - 0x48]
call fcn.180002860
mov rdx, qword [rbp - 0x78]
test rdx, rdx
je 0x180043bee
mov r8, qword [rbp - 0x68]
sub r8, rdx
sar r8, 2
lea rcx, [rbp - 0x78]
call fcn.180026c50
mov qword [rbp - 0x78], 0
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x70], xmm0
lea rcx, [rsp + 0x70]
call fcn.180019a80
lea rcx, [rbp + 0x88]
cmp qword [rbp + 0xa0], 0x10
cmovae rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rbx, qword [0x1800c5b70]
mov qword [rsp + 0x30], rbx
or rdi, 0xffffffffffffffff
mov rax, qword [0x1800c5b78]
cmp rbx, rax
je 0x180043d12
mov rcx, rsi
call fcn.18003c9f0
mov edx, 0x5c
mov rcx, rax
call fcn.180053728
test rax, rax
je 0x180043c9c
inc rax
mov r10, qword [rbx]
lea r9, [r10 + 0x400]
mov rcx, rax
sub r9, rax
movzx r8d, byte [rcx]
movzx edx, byte [rcx + r9]
sub r8d, edx
jne 0x180043c77
inc rcx
test edx, edx
jne 0x180043c62
test r8d, r8d
je 0x180043cb3
lea rdx, [r10 + 0x504]
mov r8, rdi
inc r8
cmp byte [rdx + r8], 0
jne 0x180043c86
mov rcx, rax
call fcn.180065000
test eax, eax
je 0x180043cb3
add rbx, 8
mov qword [rsp + 0x30], rbx
mov rax, qword [0x1800c5b78]
cmp rbx, rax
je 0x180043d0b
jmp 0x180043c35
mov rdx, qword [rbx]
cmp byte [rdx], 0
jne 0x180043cc0
xor edi, edi
jmp 0x180043cc9
inc rdi
cmp byte [rdx + rdi], 0
jne 0x180043cc0
mov r8, rdi
mov rcx, r14
call fcn.1800025c0
mov edx, 0x710
mov rcx, qword [rbx]
call fcn.18004b24c
lea rdx, [rbx + 8]
mov r8, qword [0x1800c5b78]
sub r8, rdx
mov rcx, rbx
call fcn.1800525f0
sub qword [0x1800c5b78], 8
lea rcx, str.get_downloadurl_by_filename:_find_downloadurl_in_urlVec
jmp 0x180043d99
mov rbx, qword [0x1800c5b70]
sub rax, rbx
sar rax, 3
test rax, rax
je 0x180043d78
mov qword [rsp + 0x30], rbx
mov rdx, qword [rbx]
cmp byte [rdx], 0
jne 0x180043d30
xor edi, edi
jmp 0x180043d39
inc rdi
cmp byte [rdx + rdi], 0
jne 0x180043d30
mov r8, rdi
mov rcx, r14
call fcn.1800025c0
mov edx, 0x710
mov rcx, qword [rbx]
call fcn.18004b24c
lea rdx, [rbx + 8]
mov r8, qword [0x1800c5b78]
sub r8, rdx
mov rcx, rbx
call fcn.1800525f0
sub qword [0x1800c5b78], 8
lea rcx, str.get_downloadurl_by_filename:_find_downloadurl_in_begin_one
jmp 0x180043d99
lea rdx, [0x1800c5b40]
cmp r14, rdx
je 0x180043d92
mov r9, rdi
xor r8d, r8d
mov rcx, r14
call fcn.180002490
lea rcx, str.get_downloadurl_by_filename:_find_downloadurl_in_curTabUrl
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
mov rax, qword [rbp + 0xa0]
cmp rax, 0x10
jb 0x180043dfc
inc rax
mov rcx, qword [rbp + 0x88]
cmp rax, 0x1000
jb 0x180043df7
test cl, 0x1f
je 0x180043dca
call fcn.18005c7f4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180043dd9
call fcn.18005c7f4
int3
sub rcx, rax
cmp rcx, 8
jae 0x180043de8
call fcn.18005c7f4
int3
cmp rcx, 0x27
jbe 0x180043df4
call fcn.18005c7f4
int3
mov rcx, rax
call fcn.18004b054
mov qword [rbp + 0xa0], SafeArrayGetLBound
mov qword [rbp + 0x98], 0
mov byte [rbp + 0x88], 0
cmp byte [rsp + 0x28], 0
je 0x180043e84
mov ecx, 0x80000000
mov rax, qword [rsp + 0x20]
lock xadd dword [rax], ecx
bt ecx, 0x1e
jb 0x180043e84
cmp ecx, 0x80000000
jle 0x180043e84
mov rax, qword [rsp + 0x20]
lock bts dword [rax], 0x1e
jb 0x180043e84
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rdi + 8]
test rbx, rbx
jne 0x180043e7a
xor edx, edx
xor ecx, ecx
call fcn.180026940
mov rcx, rax
xor eax, eax
lock cmpxchg qword [rdi + 8], rcx
mov rbx, rax
je 0x180043e77
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180043e7a
mov rbx, rcx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
mov rax, qword [rsi + 0x18]
cmp rax, 0x10
jb 0x180043ed9
inc rax
mov rcx, qword [rsi]
cmp rax, 0x1000
jb 0x180043ed4
test cl, 0x1f
je 0x180043ea7
call fcn.18005c7f4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180043eb6
call fcn.18005c7f4
int3
sub rcx, rax
cmp rcx, 8
jae 0x180043ec5
call fcn.18005c7f4
int3
cmp rcx, 0x27
jbe 0x180043ed1
call fcn.18005c7f4
int3
mov rcx, rax
call fcn.18004b054
mov qword [rsi + 0x18], SafeArrayGetLBound
mov qword [rsi + 0x10], 0
cmp qword [rsi + 0x18], 0x10
jb 0x180043ef3
mov rsi, qword [rsi]
mov byte [rsi], 0
mov al, 1
mov rcx, qword [rbp + 0xa8]
xor rcx, rsp
call fcn.18004b0f0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret