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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x51f638
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, dword [esp + 0x54]
xor ebp, ebp
push edi
cmp esi, ebp
mov ebx, ecx
jl 0x4cfcb1
call fcn.004cf540
cmp esi, eax
jge 0x4cfcb1
mov eax, dword [ebx + 0xf8]
mov edi, dword [esp + 0x5c]
cmp edi, ebp
mov esi, dword [eax + esi*4]
jl 0x4cfcb1
mov ecx, ebx
call fcn.004cf3a0
cmp edi, eax
jge 0x4cfcb1
mov ecx, dword [esi + 0x18]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov esi, dword [ecx + edi*4]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
xor edi, edi
cmp dword [esi + 4], eax
jl 0x4cfac9
cmp dword [esp + 0x60], 2
je 0x4cfac9
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
lea edx, [esp + 0x18]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.004d3030
mov ecx, esi
call fcn.004cf7c0
test eax, eax
je 0x4cfbc6
cmp dword [esp + 0x60], 1
je 0x4cfbc6
push ebx
lea ecx, [esp + 0x34]
call fcn.00516428
lea edx, [ebx + 0x160]
lea ecx, [esp + 0x30]
push edx
mov dword [esp + 0x50], 0
call fcn.00515d24
mov ecx, ebx
mov dword [esp + 0x5c], eax
call fcn.004cbd90
test al, al
je 0x4cfb47
mov ecx, esi
call fcn.004cf7c0
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, esi
mov edi, eax
call fcn.004cf7c0
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x20]
push ecx
push edi
push eax
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
jmp 0x4cfba7
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
call fcn.004cd290
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x2c], ecx
mov ecx, esi
call fcn.004cf7c0
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, esi
mov edi, eax
call fcn.004cf7c0
lea edx, [esp + 0x20]
push 0x411
push edx
push edi
push eax
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.USER32.dll_DrawTextA]
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
sub eax, esi
sub ecx, edx
test eax, eax
mov edi, ecx
mov ebp, eax
jne 0x4cfba7
xor edi, edi
mov ecx, dword [esp + 0x5c]
push ecx
lea ecx, [esp + 0x34]
call fcn.00515d24
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c], 0xffffffff
call fcn.0051649a
mov ecx, ebx
call fcn.004cbd90
test al, al
mov eax, dword [esp + 0x60]
je 0x4cfc3e
cmp eax, 1
jne 0x4cfbeb
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], edx
jmp 0x4cfc9d
cmp eax, 2
jne 0x4cfc07
mov eax, dword [esp + 0x54]
mov ecx, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebp
mov dword [eax], ecx
mov edx, ebp
jmp 0x4cfcbb
cmp eax, 3
jne 0x4cfca1
mov eax, dword [esp + 0x1c]
cmp eax, ebp
jle 0x4cfc1a
mov ebp, eax
mov eax, dword [ebx + 0x98]
mov ecx, dword [esp + 0x18]
add eax, edi
mov dword [esp + 0x14], ebp
add eax, ecx
mov edx, ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
jmp 0x4cfcbb
cmp eax, 1
jne 0x4cfc5b
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [eax], ecx
jmp 0x4cfcbb
cmp eax, 2
jne 0x4cfc74
mov eax, dword [esp + 0x54]
mov ecx, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebp
mov dword [eax], ecx
mov edx, ebp
jmp 0x4cfcbb
cmp eax, 3
jne 0x4cfca1
mov eax, dword [esp + 0x18]
cmp eax, edi
jle 0x4cfc83
mov edi, eax
mov eax, dword [ebx + 0xa4]
mov esi, dword [ebx + 0x9c]
mov edx, dword [esp + 0x1c]
add eax, esi
add eax, edx
mov dword [esp + 0x10], edi
add eax, ebp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [eax], ecx
jmp 0x4cfcbb
mov eax, dword [esp + 0x54]
xor ecx, ecx
xor edx, edx
mov dword [eax], ecx
mov ecx, dword [esp + 0x44]
pop edi
pop esi
mov dword [eax + 4], edx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 0x10