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

Disassembly:
push 0xffffffffffffffff
push 0x51fdc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x30]
mov eax, dword [esi + 0x1f0]
push eax
call fcn.0051678d
mov ebp, dword [esp + 0x34]
mov edx, dword [esp + 0x60]
lea eax, [esp + 0x30]
xor edi, edi
neg eax
sbb eax, eax
lea ecx, [esi + 0x50]
and eax, ebp
mov dword [esp + 0x58], edi
push eax
mov eax, dword [edx + 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_FrameRect]
cmp dword [esi + 0x78], edi
je 0x4d8983
mov eax, dword [esi + 0x90]
cmp eax, edi
je 0x4d8983
mov ecx, dword [esi + 0x94]
sub ecx, eax
test ecx, 0xfffffff0
je 0x4d8983
mov ebp, dword [esi + 0x74]
cmp ebp, 0xffffffff
je 0x4d8983
cmp dword [esi + 0x7c], edi
jne 0x4d8762
mov eax, dword [esi + 0x90]
xor edx, edx
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4d8749
mov ebx, dword [eax + 8]
sub ebx, ecx
sar ebx, 2
cmp edx, ebx
jae 0x4d8749
cmp dword [ecx + edx*4], ebp
jne 0x4d8746
mov edi, 1
inc edx
jmp 0x4d8729
test edi, edi
jne 0x4d8762
mov dword [esp + 0x30], method.CGdiObject.virtual_0
mov dword [esp + 0x58], 2
jmp 0x4d8993
lea edx, [esi + 0x1f8]
push ebp
mov eax, dword [edx]
mov dword [esp + 0x44], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x48], ecx
mov ecx, esi
mov edi, dword [edx + 8]
mov ebx, dword [edx + 0xc]
call fcn.004d96a0
test eax, eax
jne 0x4d87a7
mov dword [esp + 0x30], method.CGdiObject.virtual_0
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], 3
call fcn.00516727
xor eax, eax
jmp 0x4d89a1
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x1c]
push edx
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, eax
call fcn.004dd630
mov eax, dword [esi + 0x1e8]
test eax, eax
je 0x4d87d0
mov ecx, esi
call fcn.004d9810
jmp 0x4d87df
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x4d87e3
mov eax, dword [esi + 0xd4]
mov dword [esp + 0x10], eax
push eax
push 1
push 0
lea ecx, [esp + 0x44]
call fcn.0051673d
mov ecx, dword [esp + 0x60]
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x5c], 4
call fcn.00515d24
mov ecx, esi
mov dword [esp + 0x2c], eax
call fcn.004d77f0
mov ecx, dword [esi + 0x74]
cdq
and edx, 3
push ecx
add eax, edx
mov ecx, esi
mov ebp, eax
sar ebp, 2
call fcn.004d9bf0
mov edx, dword [esi + 0x74]
mov ecx, esi
push edx
mov dword [esp + 0x18], eax
call fcn.004d9c60
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x78]
mov dword [esp + 0x24], eax
lea ecx, [eax - 1]
cmp ecx, 3
ja case.default.0x4d884b
jmp dword [ecx*4 + 0x4d89b8]
mov ecx, dword [esp + 0x40]
dec edi
lea edx, [ecx + 2]
mov ecx, ebx
jmp 0x4d888a
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
add edx, 2
dec ecx
dec edi
mov ebx, ecx
jmp 0x4d888a
mov ecx, dword [esp + 0x44]
mov edx, edi
inc ecx
add ebx, 0xfffffffe
jmp 0x4d888a
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
dec edx
add ecx, 2
mov edi, edx
dec ebx
mov esi, dword [esi + 0x208]
test esi, esi
mov dword [esp + 0x20], esi
je 0x4d88c8
cmp eax, 1
je 0x4d88a2
cmp eax, 2
jne 0x4d88c8
mov esi, dword [esp + 0x14]
mov eax, 1
test esi, esi
jne 0x4d88b2
lea eax, [ebp + 1]
sub edx, eax
mov eax, dword [esp + 0x18]
test eax, eax
mov eax, 1
jne 0x4d88c4
lea eax, [ebp + 1]
add edi, eax
jmp 0x4d88cc
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4d8907
mov eax, dword [esp + 0x24]
cmp eax, 3
je 0x4d88e2
cmp eax, 4
jne 0x4d8907
neg esi
sbb esi, esi
not esi
and esi, ebp
sub ecx, esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4d88fb
mov ebp, 2
jmp 0x4d88fe
add ebp, 2
add ebx, ebp
cmp eax, 4
jne 0x4d8907
dec ecx
dec ebx
mov esi, dword [esp + 0x60]
push ecx
push edx
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call fcn.00516215
push ebx
push edi
mov ecx, esi
call fcn.00516261
mov eax, dword [esp + 0x2c]
mov ecx, esi
push eax
call fcn.00515d24
mov esi, 0x92816c
mov dword [esp + 0x38], esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x58], 7
call fcn.00516727
mov dword [esp + 0x30], esi
mov dword [esp + 0x58], 8
jmp 0x4d8993
mov esi, 0x92816c
mov dword [esp + 0x38], esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x58], 5
call fcn.00516727
mov dword [esp + 0x30], esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], 6
call fcn.00516727
xor eax, eax
jmp 0x4d89a1
mov dword [esp + 0x30], method.CGdiObject.virtual_0
mov dword [esp + 0x58], 1
lea ecx, [esp + 0x30]
call fcn.00516727
mov eax, 1
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret 4