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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x51f658
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x38]
push ebp
mov ebp, dword [esp + 0x50]
push esi
push edi
push ebp
mov edi, ecx
push ebx
call fcn.004d2cd0
test eax, eax
jne 0x4cffb6
mov ecx, edi
call fcn.004cbd90
push eax
push ebx
mov ecx, edi
call fcn.004cfce0
test ebx, ebx
mov dword [esp + 0x44], eax
jl 0x4cffb6
mov ecx, edi
call fcn.004cf540
cmp ebx, eax
jge 0x4cffb6
mov eax, dword [edi + 0xf8]
test ebp, ebp
mov esi, dword [eax + ebx*4]
jl 0x4cffb6
mov ecx, edi
call fcn.004cf3a0
cmp ebp, eax
jge 0x4cffb6
mov ecx, dword [esi + 0x18]
mov esi, dword [esp + 0x40]
mov edx, dword [ecx + ebp*4]
mov eax, dword [esi]
lea ecx, [edi + 0x160]
mov dword [esp + 0x58], edx
push ecx
mov ecx, esi
call dword [eax + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0xe4]
cmp ebp, eax
jne 0x4cfdf7
cmp eax, 0xffffffff
je 0x4cfdf7
mov eax, dword [edi + 0x88]
jmp 0x4cfdfd
mov eax, dword [edi + 0x80]
mov edx, dword [esp + 0x58]
mov ecx, dword [edx + 0x10]
test ecx, ecx
je 0x4cfe0e
mov eax, dword [edi + 0x8c]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x30]
push 1
mov ecx, esi
mov dword [esp + 0x44], eax
call fcn.00515e00
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
mov ecx, edi
push eax
push ebp
push ebx
call fcn.004d3030
mov ecx, edi
call fcn.004cbd90
test al, al
je 0x4cff00
push 0
mov edx, dword [esp + 0x4c]
push 0
push ebp
push ebx
mov eax, dword [esp + 0x5c]
sub esp, 0x10
mov ecx, esp
push esi
mov dword [ecx], edx
mov edx, dword [esp + 0x74]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x78]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, edi
call fcn.004d2d60
mov al, byte [esp + 0x5c]
test al, al
jne 0x4cff92
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x28], edx
mov edx, dword [edi + 0x98]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x54]
add edx, eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x58]
add edx, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x20], edx
call fcn.004cf7c0
push eax
lea ecx, [esp + 0x60]
call fcn.0050f924
mov eax, dword [eax]
mov edx, dword [esi]
lea edi, [esp + 0x20]
push 0x24
mov ecx, dword [eax - 8]
push edi
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x48], 0
call dword [edx + 0x68]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0050f8b6
jmp 0x4cff92
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4cff4b
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x18]
sub eax, ecx
sub eax, edx
mov ebx, dword [esp + 0x58]
cdq
sub eax, edx
mov edx, dword [ebx + 4]
sar eax, 1
add eax, ecx
test esi, esi
jne 0x4cff2e
xor ecx, ecx
jmp 0x4cff31
mov ecx, dword [esi + 4]
mov ebp, dword [esp + 0x4c]
push 1
push ebp
push eax
mov eax, dword [esp + 0x50]
push ecx
push edx
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
jmp 0x4cff4f
mov ebx, dword [esp + 0x58]
mov al, byte [esp + 0x5c]
test al, al
jne 0x4cff92
mov edx, dword [edi + 0x9c]
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x4c]
add edx, ebp
add edi, edx
lea eax, [esp + 0x48]
push 0x11
mov dword [esp + 0x50], edi
mov edi, dword [esi]
push eax
mov ecx, ebx
call fcn.004cf7c0
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, ebx
call fcn.004cf7c0
push eax
mov ecx, esi
call dword [edi + 0x68]
mov eax, dword [esp + 0x40]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x30]
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x28]
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00515e00
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret 0x20