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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5153bf
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x170
mov eax, dword [0x55a144]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov esi, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
cmp esi, 0xf
ja 0x40be61
je 0x40bdbc
lea eax, [esi - 1]
cmp eax, 7
ja case.0x40be88.33
jmp dword [eax*4 + 0x40c2a4]
call dword [0x55def0]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x40bba3
or eax, 0xffffffff
jmp 0x40c282
push dword [edi + 4]
push eax
call dword [0x55df70]
push 0x1c
call fcn.004f111d
mov ecx, eax
add esp, 0xc
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
mov dword [ecx], vtable.CRenderGDI.0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ebp - 4], 0xffffffff
push dword [edi + 4]
mov dword [edi + 0x18], ecx
mov eax, dword [ecx]
call dword [eax]
push 0xd8
lea eax, [ebp - 0x180]
push 0
push eax
call fcn.004f44c0
add esp, 0xc
lea eax, [ebp - 0x180]
push eax
call dword [0x55dfc4]
add esp, 4
push 0
push dword [edi + 0x14]
call dword [0x55df7c]
push 0
push 0x40b8c0
push dword [edi + 0x14]
call dword [0x55df3c]
add esp, 0x14
push 0
push 0x40b8c0
push dword [edi + 0x14]
call dword [0x55df10]
add esp, 0xc
push 0
push 0x40b8e0
push dword [edi + 0x14]
call dword [0x55dfc8]
add esp, 0xc
push 0
push 0x40b990
push dword [edi + 0x14]
call dword [0x55df20]
add esp, 0xc
push edi
push 0x40baf0
push dword [edi + 0x14]
call dword [0x55dfac]
add esp, 0xc
push 0
push fcn.00401f00
push dword [edi + 0x14]
call dword [0x55dee8]
add esp, 0xc
push str.Mozilla_5.0__Macintosh__Intel_Mac_OS_X_10_11_1__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_70.0.3538.25_Safari_537.36
push dword [edi + 0x14]
call dword [0x55df9c]
add esp, 8
push 0
push 0x32
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
xor eax, eax
jmp 0x40c282
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x40bce0
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [edi + 0x18], 0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x40bcf8
push eax
call dword [0x55df84]
add esp, 4
mov dword [edi + 0x14], 0
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
xor eax, eax
jmp 0x40c282
lea ecx, [ebp - 0x24]
call fcn.00471060
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.00471e70
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x24]
call fcn.00471e30
push eax
lea ecx, [ebp - 0x24]
call fcn.00471eb0
push eax
push dword [edi + 0x14]
call dword [0x55def4]
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.00471eb0
test eax, eax
jle 0x40bd82
lea ecx, [ebp - 0x24]
call fcn.00471e30
test eax, eax
jle 0x40bd82
mov eax, dword [edi + 0x18]
lea ecx, [ebp - 0x24]
mov esi, dword [eax]
call fcn.00471e30
push eax
lea ecx, [ebp - 0x24]
call fcn.00471eb0
mov ecx, dword [edi + 0x18]
push eax
call dword [esi + 8]
mov ecx, dword [edi + 0x18]
push dword [edi + 0x14]
mov eax, dword [ecx]
call dword [eax + 0xc]
push 0
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
xor eax, eax
jmp 0x40c282
push dword [edi + 0x14]
call dword [0x55df78]
add esp, 4
xor eax, eax
jmp 0x40c282
push dword [edi + 0x14]
call dword [0x55df64]
add esp, 4
xor eax, eax
jmp 0x40c282
push 0x40
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.004f44c0
add esp, 0xc
lea eax, [ebp - 0xa8]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_BeginPaint]
mov edi, eax
lea eax, [ebp - 0x68]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetClipBox]
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x34]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
push dword [esi + 0x14]
call dword [0x55df28]
mov esi, dword [ebp - 0x50]
add esp, 4
mov edx, dword [ebp - 0x54]
mov ecx, esi
sub ecx, dword [ebp - 0x30]
push 0xcc0020
push ecx
mov ecx, edx
sub ecx, dword [ebp - 0x34]
push ecx
push eax
mov eax, dword [ebp - 0x48]
sub eax, esi
push eax
mov eax, dword [ebp - 0x4c]
sub eax, edx
push eax
push esi
push edx
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
lea eax, [ebp - 0xa8]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_EndPaint]
xor eax, eax
jmp 0x40c282
cmp esi, 0x10d
ja 0x40c0cf
je 0x40c03d
lea eax, [esi - 0x20]
cmp eax, 0xe2
ja case.0x40be88.33
movzx eax, byte [eax + 0x40c2dc]
jmp dword [eax*4 + 0x40c2c4]
mov eax, dword [ebx + 0x10]
push 0
shr eax, 0x10
push eax
push edx
push dword [edi + 0x14]
call dword [0x55dfa8]
add esp, 0x10
jmp 0x40c26b
mov edx, dword [ebx + 0x10]
shr edx, 0x10
mov ecx, edx
and ecx, 0x4000
mov eax, ecx
or eax, 0x100
and edx, 0x100
push 0
cmove eax, ecx
push eax
mov eax, dword [ebx + 0xc]
push eax
push dword [edi + 0x14]
call dword [0x55dfb4]
add esp, 0x10
jmp 0x40c26b
mov edx, dword [ebx + 0x10]
shr edx, 0x10
mov ecx, edx
and ecx, 0x4000
mov eax, ecx
or eax, 0x100
and edx, 0x100
push 0
cmove eax, ecx
push eax
mov eax, dword [ebx + 0xc]
push eax
push dword [edi + 0x14]
call dword [0x55ded4]
add esp, 0x10
jmp 0x40c26b
mov eax, dword [ebx + 0x10]
movsx ecx, ax
shr eax, 0x10
cwde
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
cmp ecx, 0xffffffff
je 0x40bf40
cmp eax, 0xffffffff
je 0x40bf40
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [ebx + 0xc]
mov ecx, edx
mov eax, edx
and ecx, 8
mov edx, ecx
or edx, 4
and al, 4
mov eax, dword [ebx + 0xc]
cmove edx, ecx
mov ecx, edx
or ecx, 1
and al, 1
mov eax, dword [ebx + 0xc]
cmove ecx, edx
mov edx, ecx
or edx, 0x10
and al, 0x10
mov eax, dword [ebx + 0xc]
cmove edx, ecx
mov ecx, edx
or ecx, 2
and al, 2
cmove ecx, edx
push ecx
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [edi + 0x14]
call dword [0x55df14]
add esp, 0x10
jmp 0x40c26b
lea eax, [ebp - 0x68]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
push dword [ebp - 0x18]
lea eax, [ebp - 0x68]
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x40bcc6
mov eax, dword [edi + 0x38]
cmp eax, 0x11
ja case.0x40bfd4.0
jmp dword [eax*4 + 0x40c3c0]
push 0x7f01
jmp 0x40c01f
push 0x7f89
jmp 0x40c01f
push 0x7f02
jmp 0x40c01f
push 0x7f8b
jmp 0x40c01f
push 0x7f84
jmp 0x40c01f
push 0x7f85
jmp 0x40c01f
push 0x7f83
jmp 0x40c01f
push 0x7f82
jmp 0x40c01f
push 0x7f86
jmp 0x40c01f
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
test eax, eax
je 0x40bcc6
push eax
call dword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
jmp 0x40c282
push dword [edi + 0x14]
lea eax, [ebp - 0x68]
push eax
call dword [0x55df4c]
add esp, 8
movups xmm1, xmmword [eax]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0x80
movaps xmm0, xmm1
movd edx, xmm1
psrldq xmm0, 0xc
movd ecx, xmm0
movaps xmm0, xmm1
psrldq xmm0, 4
movd eax, xmm0
psrldq xmm1, 8
mov dword [ebp - 0x3c], edx
add ecx, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x28], ecx
mov ecx, dword [edi + 0x10]
movd eax, xmm1
mov dword [ebp - 0x34], edx
add eax, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov ecx, eax
call fcn.004635d0
mov edi, eax
push edi
call dword [sym.imp.IMM32.dll_ImmGetContext]
mov esi, eax
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.IMM32.dll_ImmSetCandidateWindow]
push esi
push edi
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
xor eax, eax
jmp 0x40c282
cmp esi, 0x20a
ja 0x40c198
je 0x40c11d
cmp esi, 0x113
je 0x40c102
cmp esi, 0x1ff
jbe case.0x40be88.33
cmp esi, 0x209
jbe 0x40c1a4
jmp case.0x40be88.33
cmp edx, 1
jne 0x40bcc6
mov ecx, dword [edi + 0x18]
push dword [edi + 0x14]
mov eax, dword [ecx]
call dword [eax + 0xc]
xor eax, eax
jmp 0x40c282
mov ecx, dword [ebx + 0x10]
movsx eax, cx
mov dword [ebp - 0x1c], eax
mov eax, ecx
shr eax, 0x10
cwde
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [ebx + 0xc]
mov eax, edx
shr eax, 0x10
mov ecx, edx
and ecx, 8
movsx esi, ax
mov eax, edx
mov edx, ecx
or edx, 4
and al, 4
mov eax, dword [ebx + 0xc]
cmove edx, ecx
mov ecx, edx
or ecx, 1
and al, 1
mov eax, dword [ebx + 0xc]
cmove ecx, edx
mov edx, ecx
or edx, 0x10
and al, 0x10
mov eax, dword [ebx + 0xc]
cmove edx, ecx
mov ecx, edx
or ecx, 2
and al, 2
cmove ecx, edx
push ecx
push esi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [edi + 0x14]
call dword [0x55dedc]
mov esi, dword [ebx + 8]
jmp 0x40c268
cmp esi, 0x2a3
jne case.0x40be88.33
push dword [edi + 0x14]
call dword [0x55df1c]
add esp, 4
mov dword [edi + 0x38], eax
cmp esi, 0x201
je 0x40c1eb
cmp esi, 0x207
je 0x40c1eb
cmp esi, 0x204
je 0x40c1eb
cmp esi, 0x202
je 0x40c1e3
cmp esi, 0x208
je 0x40c1e3
cmp esi, 0x205
jne 0x40c1fd
call dword [sym.imp.USER32.dll_ReleaseCapture]
jmp 0x40c1fd
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetCapture]
lea eax, [ebp - 0x34]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebx + 0x10]
movsx edi, ax
sub edi, dword [ebp - 0x34]
shr eax, 0x10
movsx esi, ax
mov eax, dword [ebx + 0xc]
mov ecx, eax
sub esi, dword [ebp - 0x30]
and ecx, 8
mov edx, ecx
or edx, 4
and al, 4
mov eax, dword [ebx + 0xc]
cmove edx, ecx
mov ecx, edx
or ecx, 1
and al, 1
mov eax, dword [ebx + 0xc]
cmove ecx, edx
mov edx, ecx
or edx, 0x10
and al, 0x10
mov eax, dword [ebx + 0xc]
cmove edx, ecx
mov ecx, edx
or ecx, 2
and al, 2
cmove ecx, edx
push ecx
push esi
mov esi, dword [ebx + 8]
push edi
mov edi, dword [ebp - 0x18]
push esi
push dword [edi + 0x14]
call dword [0x55df50]
add esp, 0x14
mov ecx, eax
xor eax, eax
test ecx, ecx
jne 0x40c282
mov edx, dword [ebx + 0xc]
push dword [ebx + 0x10]
mov ecx, edi
push edx
push esi
call fcn.00473140
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f110c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc