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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x51f698
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.005112cb
xor ebx, ebx
cmp eax, ebx
je 0x4d01cd
cmp eax, esi
je 0x4d01cd
mov eax, dword [eax + 0x1c]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_IsChild]
cmp eax, ebx
jne 0x4d0812
mov eax, dword [esi + 0x124]
cmp eax, ebx
jl 0x4d0812
mov ecx, esi
mov edi, eax
call fcn.004cf540
cmp edi, eax
jge 0x4d0812
mov edx, dword [esi + 0xf8]
mov ecx, esi
mov ebp, dword [edx + edi*4]
mov dword [esp + 0x20], ebp
call fcn.004cbd90
push eax
mov eax, dword [esi + 0x124]
push eax
mov ecx, esi
call fcn.004cfce0
mov edi, dword [esp + 0xa4]
mov eax, dword [esi + 0x114]
cmp eax, edi
jne 0x4d0235
mov cl, byte [0x96c950]
mov al, byte [esp + 0xa8]
cmp cl, al
je 0x4d0812
mov dl, byte [esp + 0xa8]
push esi
lea ecx, [esp + 0x28]
mov byte [0x96c950], dl
call fcn.00516428
lea eax, [esp + 0x84]
mov ecx, esi
push eax
mov dword [esp + 0xa0], ebx
call fcn.004cd290
lea ecx, [esp + 0x24]
call fcn.00515c62
mov dword [esp + 0x70], eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], 0x927abc
lea ecx, [esp + 0x84]
mov byte [esp + 0x9c], 1
push ecx
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
lea ecx, [esp + 0x4c]
call fcn.005166d0
lea edx, [esp + 0x48]
lea ecx, [esp + 0x24]
push edx
call fcn.00516151
lea ecx, [esp + 0x48]
call fcn.00516727
push 1
lea ecx, [esp + 0x28]
call fcn.00515e00
mov dword [esp + 0x6c], eax
lea eax, [esi + 0x160]
push eax
lea ecx, [esp + 0x28]
call fcn.00515d24
mov dword [esp + 0x68], eax
mov eax, dword [esi + 0x114]
cmp eax, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
jl 0x4d0555
push eax
mov ecx, esi
call fcn.004d1190
test al, al
je 0x4d0555
mov edx, dword [esi + 0x114]
mov eax, dword [esi + 0x124]
lea ecx, [esp + 0x50]
push ecx
push edx
push eax
mov ecx, esi
call fcn.004d0830
mov eax, dword [esi + 0x114]
mov ecx, dword [ebp + 0x18]
mov edi, dword [ecx + eax*4]
mov ecx, dword [esi + 0xe4]
cmp eax, ecx
jne 0x4d0337
cmp ecx, 0xffffffff
je 0x4d0337
mov edx, dword [esi + 0x88]
push edx
jmp 0x4d033e
mov eax, dword [esi + 0x80]
push eax
lea ecx, [esp + 0x28]
call fcn.00515eb8
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4d035e
mov ecx, dword [esi + 0x8c]
push ecx
lea ecx, [esp + 0x28]
call fcn.00515eb8
mov eax, dword [esi + 0x114]
mov ecx, dword [esi + 0x124]
lea edx, [esp + 0x60]
push edx
push eax
push ecx
mov ecx, esi
call fcn.004d3030
mov eax, dword [esi + 0x114]
mov ecx, dword [esi + 0x124]
lea edx, [esp + 0x38]
push edx
push eax
push ecx
mov ecx, esi
call fcn.004cc940
mov ecx, esi
call fcn.004cbd90
test al, al
je 0x4d042a
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0x98]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x60]
add ecx, eax
add ecx, edx
mov edx, dword [esi + 0x3c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ecx
push edx
push eax
lea ecx, [esp + 0x2c]
call fcn.00518d35
mov ecx, edi
call fcn.004cf7c0
push eax
lea ecx, [esp + 0x24]
call fcn.0050f924
mov eax, dword [eax]
lea edx, [esp + 0x10]
push 0x24
push edx
mov ecx, dword [eax - 8]
mov byte [esp + 0xa4], 2
push ecx
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x34]
call dword [eax + 0x68]
lea ecx, [esp + 0x20]
mov byte [esp + 0x9c], 1
call fcn.0050f8b6
jmp 0x4d0499
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x18], edx
mov edx, dword [esi + 0x9c]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x14], eax
add edx, eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x10]
push eax
add edx, ebp
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], edx
call fcn.00518d35
mov ecx, edi
call fcn.004cf7c0
push eax
call ebx
mov ecx, edi
mov ebp, eax
call fcn.004cf7c0
lea edx, [esp + 0x10]
push 0x11
push edx
push ebp
push eax
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_DrawTextA]
mov ebp, dword [esp + 0x20]
mov al, byte [esi + 0xb0]
test al, al
jne 0x4d04b1
mov cl, byte [esi + 0xb1]
test cl, cl
je 0x4d0510
test al, al
je 0x4d04d4
lea edi, [esi + 0xb4]
lea ecx, [esp + 0x10]
push edi
lea edx, [esp + 0x78]
push ecx
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4d04d4
mov eax, dword [esi + 0x16c]
jmp 0x4d0501
mov al, byte [esi + 0xb1]
test al, al
je 0x4d0510
lea edi, [esi + 0xc4]
lea ecx, [esp + 0x10]
push edi
lea edx, [esp + 0x78]
push ecx
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4d0510
mov eax, dword [esi + 0x16c]
or al, 1
push eax
mov eax, dword [esp + 0x2c]
push 3
push edi
push eax
call dword [sym.imp.USER32.dll_DrawFrameControl]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x50]
sub ecx, edx
test ecx, ecx
jle 0x4d054e
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
sub edx, ecx
test edx, edx
jle 0x4d054e
push 1
lea eax, [esp + 0x54]
push 1
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esi + 0x3c]
lea ecx, [esp + 0x50]
push eax
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.00518dab
mov edi, dword [esp + 0xa4]
test edi, edi
mov dword [esi + 0x114], edi
jl 0x4d07bb
push edi
mov ecx, esi
call fcn.004d1190
test al, al
je 0x4d07bb
mov eax, dword [esi + 0x114]
mov ecx, dword [esi + 0x124]
lea edx, [esp + 0x50]
push edx
push eax
push ecx
mov ecx, esi
call fcn.004d0830
mov edx, dword [esi + 0x114]
mov eax, dword [ebp + 0x18]
mov edi, dword [eax + edx*4]
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4d05a9
mov ecx, dword [esi + 0x8c]
push ecx
jmp 0x4d05b0
mov edx, dword [esi + 0x84]
push edx
lea ecx, [esp + 0x28]
call fcn.00515eb8
mov ecx, dword [esi + 0x114]
mov edx, dword [esi + 0x124]
lea eax, [esp + 0x60]
push eax
push ecx
push edx
mov ecx, esi
call fcn.004d3030
mov ecx, dword [esi + 0x114]
mov edx, dword [esi + 0x124]
lea eax, [esp + 0x38]
push eax
push ecx
push edx
mov ecx, esi
call fcn.004cc940
mov ecx, esi
call fcn.004cbd90
test al, al
je 0x4d0685
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x18], edx
mov edx, dword [esi + 0x98]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x10], eax
add edx, eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x10]
push eax
add edx, ebx
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], edx
call fcn.00518d35
mov ecx, edi
call fcn.004cf7c0
push eax
lea ecx, [esp + 0x24]
call fcn.0050f924
mov eax, dword [eax]
lea edx, [esp + 0x10]
push 0x24
push edx
mov ecx, dword [eax - 8]
mov byte [esp + 0xa4], 3
push ecx
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x34]
call dword [eax + 0x68]
lea ecx, [esp + 0x20]
mov byte [esp + 0x9c], 1
call fcn.0050f8b6
jmp 0x4d06f0
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x18], edx
mov edx, dword [esi + 0x9c]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x14], eax
add edx, eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x10]
push eax
add edx, ebp
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], edx
call fcn.00518d35
mov ecx, edi
call fcn.004cf7c0
push eax
call ebx
mov ecx, edi
mov ebp, eax
call fcn.004cf7c0
lea edx, [esp + 0x10]
push 0x11
push edx
push ebp
push eax
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_DrawTextA]
mov al, byte [esi + 0xb0]
test al, al
jne 0x4d0708
mov cl, byte [esi + 0xb1]
test cl, cl
je 0x4d0767
test al, al
je 0x4d072b
lea edi, [esi + 0xb4]
lea ecx, [esp + 0x10]
push edi
lea edx, [esp + 0x78]
push ecx
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4d072b
mov eax, dword [esi + 0x16c]
jmp 0x4d0758
mov al, byte [esi + 0xb1]
test al, al
je 0x4d0767
lea edi, [esi + 0xc4]
lea ecx, [esp + 0x10]
push edi
lea edx, [esp + 0x78]
push ecx
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4d0767
mov eax, dword [esi + 0x16c]
or al, 1
push eax
mov eax, dword [esp + 0x2c]
push 3
push edi
push eax
call dword [sym.imp.USER32.dll_DrawFrameControl]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x50]
sub ecx, edx
test ecx, ecx
jle 0x4d07bb
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
sub edx, ecx
test edx, edx
jle 0x4d07bb
push 1
lea eax, [esp + 0x54]
push 1
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov al, byte [esp + 0xa8]
test al, al
je 0x4d07a5
mov eax, dword [esi + 0x54]
mov esi, dword [esi + 0x4c]
jmp 0x4d07ab
mov eax, dword [esi + 0x4c]
mov esi, dword [esi + 0x54]
push esi
lea ecx, [esp + 0x54]
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.00518dab
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x24]
push edx
call fcn.00515e00
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x24]
push eax
call fcn.00515d24
mov ecx, dword [esp + 0x70]
push ecx
lea ecx, [esp + 0x28]
call fcn.00515c93
mov dword [esp + 0x48], 0x927a9c
lea ecx, [esp + 0x48]
mov byte [esp + 0x9c], 4
call fcn.00516727
lea ecx, [esp + 0x24]
mov dword [esp + 0x9c], 0xffffffff
call fcn.0051649a
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x90
ret 8