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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61df87
mov eax, dword fs:[0]
push eax
sub esp, 0x4cc
mov eax, dword [0x6d45e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x3e7
lea eax, [ebp - 0x3f7]
mov dword [ebp - 0x4a4], 0
push 0
push eax
mov byte [ebp - 0x3f8], 0
call fcn.004cf9d0
add esp, 0xc
lea ecx, [ebp - 0x498]
call fcn.0040d250
mov dword [ebp - 4], 0
mov dword [ebp - 0x414], 0xf
mov dword [ebp - 0x3fc], 0xf
mov dword [ebp - 0x400], 0
mov byte [ebp - 0x410], 0
mov dword [ebp - 0x430], 0xf
mov dword [ebp - 0x434], 0
mov byte [ebp - 0x444], 0
mov dword [ebp - 0x418], 0xf
mov dword [ebp - 0x41c], 0
mov byte [ebp - 0x42c], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x498]
mov dword [ebp - 0x3f8], 0x103
call fcn.0040d310
lea eax, [ebp - 0x3f2]
push eax
lea ecx, [ebp - 0x498]
call fcn.0040d560
push str.Mozilla_5.0__Windows_NT_10.0__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_75.5.30.1_Safari_537.36_PddWorkbench_Online_PddBrowser_pdd_windows_version_3.1.3.9_pdd_webview
lea ecx, [ebp - 0x4bc]
mov esi, eax
call fcn.004046e0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x4bc]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x410]
call fcn.00404890
mov byte [ebp - 4], 2
cmp dword [ebp - 0x4a8], 0x10
jb 0x40d856
push dword [ebp - 0x4bc]
call fcn.004c41b0
add esp, 4
mov ecx, dword [ebp - 0x414]
lea edx, [ebp - 0x410]
push esi
call fcn.0040ca10
add esp, 4
lea ecx, [ebp - 0x444]
mov ebx, eax
call fcn.0040d5f0
cmp dword [ebp - 0x434], 0
je 0x40d897
push ebx
lea edx, [ebp - 0x444]
mov ecx, 0x10
call fcn.0040ca10
add esp, 4
mov ebx, eax
cmp dword [ebp - 0x41c], 0
je 0x40d8b6
push ebx
lea edx, [ebp - 0x42c]
mov ecx, 0x11
call fcn.0040ca10
add esp, 4
mov ebx, eax
mov edx, ebx
mov dword [ebp - 0x4a0], 0
lea eax, [ebp - 0x3f8]
mov dword [ebp - 0x49c], 0
sub edx, eax
push ecx
lea ecx, [ebp - 0x3f8]
lea eax, [edx - 6]
sar eax, 8
mov byte [ebp - 0x3f4], al
lea eax, [ebp - 0x3f8]
sub bl, al
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x4a0]
sub bl, 6
push eax
mov byte [ebp - 0x3f3], bl
call fcn.0040aa50
mov esi, dword [ebp - 0x49c]
xor ecx, ecx
add esp, 0xc
mov eax, esi
add eax, 4
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.004c3fbc
add esp, 4
mov ebx, eax
push esi
push dword [ebp - 0x4a0]
push ebx
call fcn.004cf380
add esp, 0xc
mov dword [ebx + esi], 0x4c755e75
lea eax, [esi + 4]
mov dword [ebp - 0x49c], 0
mov edx, ebx
lea ecx, [ebp - 0x49c]
push eax
call fcn.0040caa0
add esp, 4
lea ecx, [ebp - 0x4d4]
push 0x69a8fc
call fcn.004046e0
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x49c]
push esi
push eax
push edi
call fcn.0040bc60
add esp, 0xc
cmp dword [ebp - 0x4c0], 0x10
jb 0x40d99e
push dword [ebp - 0x4d4]
call fcn.004c41b0
add esp, 4
push esi
call fcn.004c3f84
add esp, 4
push ebx
call fcn.004c3f84
add esp, 4
push dword [ebp - 0x4a0]
call fcn.004c3f84
add esp, 4
lea ecx, [ebp - 0x444]
call fcn.00406a00
cmp dword [ebp - 0x3fc], 0x10
jb 0x40d9e0
push dword [ebp - 0x410]
call fcn.004c41b0
add esp, 4
lea ecx, [ebp - 0x498]
mov dword [ebp - 0x3fc], 0xf
mov dword [ebp - 0x400], 0
mov byte [ebp - 0x410], 0
call fcn.0040d680
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c392d
mov esp, ebp
pop ebp
ret