Function at 0x140038bec
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.14003d0d0
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.14003a4e4
lea rcx, [rsp + 0x48]
call fcn.14003a4e4
mov edx, 0x64
lea rcx, [rsp + 0x48]
call fcn.14003a5a8
xor r13d, r13d
mov ebx, eax
test eax, eax
js 0x140038c6a
mov rcx, qword [rsp + 0x48]
call fcn.140038af0
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 0x140038e2e
mov eax, dword [rsp + 0x20]
dec rax
cmp rax, r15
jae 0x140038ebc
lea rdx, [rsp + 0x60]
mov byte [rsp + rax + 0x60], r13b
lea rcx, [rsp + 0x28]
call fcn.14003a724
mov esi, eax
test eax, eax
js 0x140038d96
test ebx, ebx
js 0x140038d96
mov r14, qword [rsp + 0x28]
test r14, r14
je 0x140038d7e
mov edx, 0x29
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcschr]
mov r15, rax
test rax, rax
je 0x140038ce6
sub r15, r14
sar r15, 1
jmp 0x140038cea
or r15d, 0xffffffff
test r15d, r15d
js 0x140038d78
lea rcx, [rsp + 0x38]
mov esi, 0x8007000e
call fcn.14003a4e4
movsxd rax, r15d
lea rcx, [rsp + 0x38]
or r8d, 0xffffffff
lea r15, [r14 + rax*2]
mov rdx, r15
call fcn.14003a61c
mov r13, qword [rsp + 0x38]
test r13, r13
je 0x140038d6b
xor r14d, r14d
lea rdx, [0x140049a2c]
lea rcx, [rsp + 0x28]
mov word [r15], r14w
call fcn.14003a8e8
mov esi, eax
test eax, eax
js 0x140038d66
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.14003a8e8
mov esi, eax
test eax, eax
js 0x140038d66
mov rdx, r13
lea rcx, [rsp + 0x28]
call fcn.14003a8e8
mov esi, eax
mov r14, qword [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.14003aa74
xor r13d, r13d
mov r15d, 0xfd0
not esi
not ebx
and esi, ebx
jns 0x140038dbc
test r14, r14
je 0x140038d9d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x140038da0
mov r14, qword [rsp + 0x28]
jmp 0x140038d7e
mov eax, r13d
cmp eax, r15d
jae 0x140038e76
test rdi, rdi
je 0x140038e67
lea rcx, [rsp + 0x28]
jmp 0x140038e58
lea rcx, [rsp + 0x38]
call fcn.14003a4e4
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.14003a724
mov ebx, eax
test eax, eax
js 0x140038e22
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140038ded
call qword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x140038df0
mov eax, r13d
cmp eax, r15d
jae 0x140038e1d
test rdi, rdi
je 0x140038e0e
mov r8d, r15d
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.14003ad3c
mov ebx, eax
jmp 0x140038e13
mov ebx, 0x80070057
mov word [rdi + 0x1f9e], r13w
jmp 0x140038e22
mov ebx, 0xc00d107f
lea rcx, [rsp + 0x38]
call fcn.14003aa74
jmp 0x140038e7b
test ebx, ebx
js 0x140038e7b
cmp qword [rsp + 0x48], r13
je 0x140038e46
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x140038e49
mov eax, r13d
cmp eax, r15d
jae 0x140038e76
test rdi, rdi
je 0x140038e67
lea rcx, [rsp + 0x48]
mov rdx, rdi
mov r8d, r15d
call fcn.14003ad3c
mov ebx, eax
jmp 0x140038e6c
mov ebx, 0x80070057
mov word [rdi + 0x1f9e], r13w
jmp 0x140038e7b
mov ebx, 0xc00d107f
lea rcx, [rsp + 0x48]
call fcn.14003aa74
lea rcx, [rsp + 0x28]
call fcn.14003aa74
mov eax, ebx
mov rcx, qword [rbp + 0xf30]
xor rcx, rsp
call fcn.14003c810
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.14003c9e8
int3