Function at 0x18004f530
Capabilities:
Print debug messages

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x1f0], rbx
mov rax, qword [0x1800f30e0]
xor rax, rsp
mov qword [rbp + 0xa8], rax
mov r15, rdx
mov rsi, rcx
mov qword [rbp + 0x80], rcx
xor r14b, r14b
xor eax, eax
mov qword [rsp + 0x28], rax
lea rax, [0x1800ffc30]
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x28], r14b
lea rcx, [rsp + 0x20]
call fcn.180029cf0
nop
mov rax, qword [0x1800ffc48]
sub rax, qword [0x1800ffc40]
sar rax, 3
mov qword [rsp + 0x30], rax
lea rdx, str.get_downloadurl_by_filename:_urlVec_size_is__d
lea rcx, [rsp + 0x70]
call fcn.180012550
mov rbx, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea rax, [fcn.180046ce0]
mov qword [rsp + 0x48], rax
lea rax, [0x180031d00]
mov qword [rsp + 0x50], rax
cmp byte [rbx + 0x44], r14b
je 0x18004f5f7
mov rcx, rbx
call fcn.180024c60
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.18000b4a0
inc dword [rbx + 0x3c]
mov r9d, dword [rbx + 0x3c]
cmp qword [rbx + 0x30], 0
je 0x18004f652
mov r10d, dword [rbx + 0x40]
cmp r9d, r10d
jge 0x18004f652
nop dword [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 0x18004f652
inc r9d
mov dword [rbx + 0x3c], r9d
cmp r9d, r10d
jl 0x18004f620
mov rdx, rbx
lea rcx, [rbp + 0x88]
call fcn.180010fb0
nop
cmp byte [rbp + 0x60], 0
je 0x18004f68e
mov rcx, qword [rbp + 0x70]
test rcx, rcx
je 0x18004f68a
mov rax, qword [rcx]
call qword [rax + select]
mov rcx, rax
test rax, rax
je 0x18004f68a
mov rax, qword [rax]
mov edx, 1
call qword [rax]
nop
mov byte [rbp + 0x60], 0
lea rcx, [rbp - 0x20]
call fcn.180017830
lea rcx, [rbp - 0x48]
call fcn.180002870
mov rdx, qword [rbp - 0x78]
test rdx, rdx
je 0x18004f6cd
mov r8, qword [rbp - 0x68]
sub r8, rdx
sar r8, 2
lea rcx, [rbp - 0x78]
call fcn.180025de0
mov qword [rbp - 0x78], 0
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x70], xmm0
lea rcx, [rsp + 0x70]
call fcn.180019130
lea rcx, [rbp + 0x88]
cmp qword [rbp + 0xa0], 0x10
cmovae rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rbx, qword [0x1800ffc40]
mov qword [rsp + 0x38], rbx
cmp rbx, qword [0x1800ffc48]
je 0x18004f7eb
or rdi, 0xffffffffffffffff
mov rcx, rsi
call fcn.180022ae0
mov edx, 0x5c
mov rcx, rax
call fcn.18007ad58
mov r9, rax
test rax, rax
je 0x18004f778
inc r9
mov r10, qword [rbx]
lea r8, [r10 + 0x400]
mov rax, r9
sub r8, r9
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x18004f754
inc rax
test ecx, ecx
jne 0x18004f741
test edx, edx
je 0x18004f78c
lea rdx, [r10 + 0x504]
mov r8, rdi
inc r8
cmp byte [rdx + r8], 0
jne 0x18004f762
mov rcx, r9
call fcn.1800894d0
test eax, eax
je 0x18004f78c
add rbx, 8
mov qword [rsp + 0x38], rbx
cmp rbx, qword [0x1800ffc48]
je 0x18004f7eb
jmp 0x18004f711
mov rdx, qword [rbx]
cmp byte [rdx], 0
jne 0x18004f7a0
xor edi, edi
jmp 0x18004f7a9
inc rdi
cmp byte [rdx + rdi], 0
jne 0x18004f7a0
mov r8, rdi
mov rcx, r15
call fcn.1800025d0
mov edx, 0x710
mov rcx, qword [rbx]
call fcn.180059820
lea rdx, [rbx + 8]
mov r8, qword [0x1800ffc48]
sub r8, rdx
mov rcx, rbx
call fcn.180079c20
sub qword [0x1800ffc48], 8
mov r14b, 1
lea rcx, str.get_downloadurl_by_filename:_find_downloadurl_in_urlVec
jmp 0x18004f7f2
lea rcx, str.get_downloadurl_by_filename:_no_find
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
mov rax, qword [rbp + 0xa0]
cmp rax, 0x10
jb 0x18004f855
inc rax
mov rcx, qword [rbp + 0x88]
cmp rax, 0x1000
jb 0x18004f850
test cl, 0x1f
je 0x18004f823
call fcn.1800837e4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18004f832
call fcn.1800837e4
int3
sub rcx, rax
cmp rcx, 8
jae 0x18004f841
call fcn.1800837e4
int3
cmp rcx, 0x27
jbe 0x18004f84d
call fcn.1800837e4
int3
mov rcx, rax
call fcn.1800591c4
mov qword [rbp + 0xa0], SafeArrayGetLBound
mov qword [rbp + 0x98], 0
mov byte [rbp + 0x88], 0
cmp byte [rsp + 0x28], 0
je 0x18004f8dd
mov ecx, 0x80000000
mov rax, qword [rsp + 0x20]
lock xadd dword [rax], ecx
bt ecx, 0x1e
jb 0x18004f8dd
cmp ecx, 0x80000000
jle 0x18004f8dd
mov rax, qword [rsp + 0x20]
lock bts dword [rax], 0x1e
jb 0x18004f8dd
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rdi + 8]
test rbx, rbx
jne 0x18004f8d3
xor edx, edx
xor ecx, ecx
call fcn.180025ad0
mov rcx, rax
xor eax, eax
lock cmpxchg qword [rdi + 8], rcx
mov rbx, rax
je 0x18004f8d0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18004f8d3
mov rbx, rcx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
mov rax, qword [rsi + 0x18]
cmp rax, 0x10
jb 0x18004f932
inc rax
mov rcx, qword [rsi]
cmp rax, 0x1000
jb 0x18004f92d
test cl, 0x1f
je 0x18004f900
call fcn.1800837e4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18004f90f
call fcn.1800837e4
int3
sub rcx, rax
cmp rcx, 8
jae 0x18004f91e
call fcn.1800837e4
int3
cmp rcx, 0x27
jbe 0x18004f92a
call fcn.1800837e4
int3
mov rcx, rax
call fcn.1800591c4
mov qword [rsi + 0x18], SafeArrayGetLBound
mov qword [rsi + 0x10], 0
cmp qword [rsi + 0x18], 0x10
jb 0x18004f94c
mov rsi, qword [rsi]
mov byte [rsi], 0
movzx eax, r14b
mov rcx, qword [rbp + 0xa8]
xor rcx, rsp
call fcn.180059260
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1b0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret