Function at 0x140038acc
Capabilities:
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0xf40]
mov eax, 0x1040
call fcn.14003cf80
sub rsp, rax
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0xf30], rax
mov rdi, rcx
mov r15d, 0xfd0
lea rcx, [rsp + 0x28]
mov dword [rsp + 0x20], r15d
call fcn.14003a3c4
lea rcx, [rsp + 0x48]
call fcn.14003a3c4
mov edx, 0x64
lea rcx, [rsp + 0x48]
call fcn.14003a488
xor r13d, r13d
mov ebx, eax
test eax, eax
js 0x140038b4a
mov rcx, qword [rsp + 0x48]
call fcn.1400389d0
mov ebx, eax
lea r8, [rsp + 0x20]
xor ecx, ecx
lea rdx, [rsp + 0x60]
call qword [sym.imp.urlmon.dll_ObtainUserAgentString]
test eax, eax
js 0x140038d0e
mov eax, dword [rsp + 0x20]
dec rax
cmp rax, r15
jae 0x140038d9c
lea rdx, [rsp + 0x60]
mov byte [rsp + rax + 0x60], r13b
lea rcx, [rsp + 0x28]
call fcn.14003a604
mov esi, eax
test eax, eax
js 0x140038c76
test ebx, ebx
js 0x140038c76
mov r14, qword [rsp + 0x28]
test r14, r14
je 0x140038c5e
mov edx, 0x29
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcschr]
mov r15, rax
test rax, rax
je 0x140038bc6
sub r15, r14
sar r15, 1
jmp 0x140038bca
or r15d, 0xffffffff
test r15d, r15d
js 0x140038c58
lea rcx, [rsp + 0x38]
mov esi, 0x8007000e
call fcn.14003a3c4
movsxd rax, r15d
lea rcx, [rsp + 0x38]
or r8d, 0xffffffff
lea r15, [r14 + rax*2]
mov rdx, r15
call fcn.14003a4fc
mov r13, qword [rsp + 0x38]
test r13, r13
je 0x140038c4b
xor r14d, r14d
lea rdx, [0x140049a2c]
lea rcx, [rsp + 0x28]
mov word [r15], r14w
call fcn.14003a7c8
mov esi, eax
test eax, eax
js 0x140038c46
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.14003a7c8
mov esi, eax
test eax, eax
js 0x140038c46
mov rdx, r13
lea rcx, [rsp + 0x28]
call fcn.14003a7c8
mov esi, eax
mov r14, qword [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.14003a954
xor r13d, r13d
mov r15d, 0xfd0
not esi
not ebx
and esi, ebx
jns 0x140038c9c
test r14, r14
je 0x140038c7d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x140038c80
mov r14, qword [rsp + 0x28]
jmp 0x140038c5e
mov eax, r13d
cmp eax, r15d
jae 0x140038d56
test rdi, rdi
je 0x140038d47
lea rcx, [rsp + 0x28]
jmp 0x140038d38
lea rcx, [rsp + 0x38]
call fcn.14003a3c4
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.14003a604
mov ebx, eax
test eax, eax
js 0x140038d02
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140038ccd
call qword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x140038cd0
mov eax, r13d
cmp eax, r15d
jae 0x140038cfd
test rdi, rdi
je 0x140038cee
mov r8d, r15d
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.14003ac1c
mov ebx, eax
jmp 0x140038cf3
mov ebx, 0x80070057
mov word [rdi + 0x1f9e], r13w
jmp 0x140038d02
mov ebx, 0xc00d107f
lea rcx, [rsp + 0x38]
call fcn.14003a954
jmp 0x140038d5b
test ebx, ebx
js 0x140038d5b
cmp qword [rsp + 0x48], r13
je 0x140038d26
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x140038d29
mov eax, r13d
cmp eax, r15d
jae 0x140038d56
test rdi, rdi
je 0x140038d47
lea rcx, [rsp + 0x48]
mov rdx, rdi
mov r8d, r15d
call fcn.14003ac1c
mov ebx, eax
jmp 0x140038d4c
mov ebx, 0x80070057
mov word [rdi + 0x1f9e], r13w
jmp 0x140038d5b
mov ebx, 0xc00d107f
lea rcx, [rsp + 0x48]
call fcn.14003a954
lea rcx, [rsp + 0x28]
call fcn.14003a954
mov eax, ebx
mov rcx, qword [rbp + 0xf30]
xor rcx, rsp
call fcn.14003c6c0
lea r11, [rsp + 0x1040]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
call fcn.14003c898
int3