Function at 0x18003e7f0
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 [0x1800ad0e0]
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, [0x1800b8980]
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x28], r14b
lea rcx, [rsp + 0x20]
call fcn.180019d60
nop
mov rax, qword [0x1800b8998]
sub rax, qword [0x1800b8990]
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.18000cdd0
mov rbx, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea rax, [fcn.180009b40]
mov qword [rsp + 0x48], rax
lea rax, [0x180020de0]
mov qword [rsp + 0x50], rax
cmp byte [rbx + 0x44], r14b
je 0x18003e8b7
mov rcx, rbx
call fcn.180017030
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.180009b90
inc dword [rbx + 0x3c]
mov r9d, dword [rbx + 0x3c]
cmp qword [rbx + 0x30], 0
je 0x18003e912
mov r10d, dword [rbx + 0x40]
cmp r9d, r10d
jge 0x18003e912
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 0x18003e912
inc r9d
mov dword [rbx + 0x3c], r9d
cmp r9d, r10d
jl 0x18003e8e0
mov rdx, rbx
lea rcx, [rbp + 0x88]
call fcn.180027560
nop
cmp byte [rbp + 0x60], 0
je 0x18003e94e
mov rcx, qword [rbp + 0x70]
test rcx, rcx
je 0x18003e94a
mov rax, qword [rcx]
call qword [rax + select]
mov rcx, rax
test rax, rax
je 0x18003e94a
mov rax, qword [rax]
mov edx, 1
call qword [rax]
nop
mov byte [rbp + 0x60], 0
lea rcx, [rbp - 0x20]
call fcn.18000f4f0
lea rcx, [rbp - 0x48]
call fcn.180002740
mov rdx, qword [rbp - 0x78]
test rdx, rdx
je 0x18003e98d
mov r8, qword [rbp - 0x68]
sub r8, rdx
sar r8, 2
lea rcx, [rbp - 0x78]
call fcn.180017a90
mov qword [rbp - 0x78], 0
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x70], xmm0
lea rcx, [rsp + 0x70]
call fcn.18000ffa0
lea rcx, [rbp + 0x88]
cmp qword [rbp + 0xa0], 0x10
cmovae rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rbx, qword [0x1800b8990]
mov qword [rsp + 0x38], rbx
cmp rbx, qword [0x1800b8998]
je 0x18003eaab
or rdi, 0xffffffffffffffff
mov rcx, rsi
call fcn.180036bb0
mov edx, 0x5c
mov rcx, rax
call fcn.18004ed38
mov r9, rax
test rax, rax
je 0x18003ea38
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 0x18003ea14
inc rax
test ecx, ecx
jne 0x18003ea01
test edx, edx
je 0x18003ea4c
lea rdx, [r10 + 0x504]
mov r8, rdi
inc r8
cmp byte [rdx + r8], 0
jne 0x18003ea22
mov rcx, r9
call fcn.18005cad0
test eax, eax
je 0x18003ea4c
add rbx, 8
mov qword [rsp + 0x38], rbx
cmp rbx, qword [0x1800b8998]
je 0x18003eaab
jmp 0x18003e9d1
mov rdx, qword [rbx]
cmp byte [rdx], 0
jne 0x18003ea60
xor edi, edi
jmp 0x18003ea69
inc rdi
cmp byte [rdx + rdi], 0
jne 0x18003ea60
mov r8, rdi
mov rcx, r15
call fcn.1800024c0
mov edx, 0x710
mov rcx, qword [rbx]
call fcn.18004736c
lea rdx, [rbx + 8]
mov r8, qword [0x1800b8998]
sub r8, rdx
mov rcx, rbx
call fcn.18004df20
sub qword [0x1800b8998], 8
mov r14b, 1
lea rcx, str.get_downloadurl_by_filename:_find_downloadurl_in_urlVec
jmp 0x18003eab2
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 0x18003eb15
inc rax
mov rcx, qword [rbp + 0x88]
cmp rax, 0x1000
jb 0x18003eb10
test cl, 0x1f
je 0x18003eae3
call fcn.180057aec
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18003eaf2
call fcn.180057aec
int3
sub rcx, rax
cmp rcx, 8
jae 0x18003eb01
call fcn.180057aec
int3
cmp rcx, 0x27
jbe 0x18003eb0d
call fcn.180057aec
int3
mov rcx, rax
call fcn.180046964
mov qword [rbp + 0xa0], setsockopt
mov qword [rbp + 0x98], 0
mov byte [rbp + 0x88], 0
cmp byte [rsp + 0x28], 0
je 0x18003eb9d
mov ecx, 0x80000000
mov rax, qword [rsp + 0x20]
lock xadd dword [rax], ecx
bt ecx, 0x1e
jb 0x18003eb9d
cmp ecx, 0x80000000
jle 0x18003eb9d
mov rax, qword [rsp + 0x20]
lock bts dword [rax], 0x1e
jb 0x18003eb9d
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rdi + 8]
test rbx, rbx
jne 0x18003eb93
xor edx, edx
xor ecx, ecx
call fcn.1800177f0
mov rcx, rax
xor eax, eax
lock cmpxchg qword [rdi + 8], rcx
mov rbx, rax
je 0x18003eb90
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18003eb93
mov rbx, rcx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
mov rax, qword [rsi + 0x18]
cmp rax, 0x10
jb 0x18003ebf2
inc rax
mov rcx, qword [rsi]
cmp rax, 0x1000
jb 0x18003ebed
test cl, 0x1f
je 0x18003ebc0
call fcn.180057aec
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18003ebcf
call fcn.180057aec
int3
sub rcx, rax
cmp rcx, 8
jae 0x18003ebde
call fcn.180057aec
int3
cmp rcx, 0x27
jbe 0x18003ebea
call fcn.180057aec
int3
mov rcx, rax
call fcn.180046964
mov qword [rsi + 0x18], setsockopt
mov qword [rsi + 0x10], 0
cmp qword [rsi + 0x18], 0x10
jb 0x18003ec0c
mov rsi, qword [rsi]
mov byte [rsi], 0
movzx eax, r14b
mov rcx, qword [rbp + 0xa8]
xor rcx, rsp
call fcn.180046a00
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1b0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret