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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51d068
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
xor ebx, ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ebx
call fcn.0050fe84
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x24]
push 6
push ecx
mov eax, dword [esi]
mov dword [ebp - 4], ebx
mov ecx, esi
mov byte [ebp - 4], 1
call dword [eax + 0x34]
cmp eax, 6
jne 0x489690
cmp word [ebp - 0x24], bx
jne 0x489690
mov cx, word [ebp - 0x22]
cmp cx, 1
je 0x48951c
cmp cx, 2
jne 0x489690
mov eax, dword [ebp - 0x20]
cmp ax, bx
jbe 0x489690
xor edx, edx
cmp cx, 1
sete dl
and eax, 0xffff
mov dword [ebp - 0x18], edx
mov dword [ebp + 8], eax
jle 0x489690
xor edi, edi
cmp edi, dword [ebp + 8]
jge 0x489598
mov eax, dword [esi]
mov ecx, edi
shl ecx, 4
add ecx, 6
push ebx
push ecx
mov ecx, esi
call dword [eax + 0x28]
mov edx, dword [esi]
lea eax, [ebp - 0x3c]
push 0x10
push eax
mov ecx, esi
call dword [edx + 0x34]
cmp eax, 0x10
jne 0x489690
cmp byte [ebp - 0x3a], 0x10
jb 0x489595
cmp dword [ebp + 0xc], 1
jne 0x489586
mov cl, byte [ebp - 0x3c]
xor eax, eax
cmp cl, 0x20
jmp 0x48958e
mov cl, byte [ebp - 0x3c]
xor eax, eax
cmp cl, 0x10
sete al
cmp eax, ebx
jne 0x489598
inc edi
jmp 0x489544
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0050f5f7
mov edi, eax
add esp, 4
cmp edi, ebx
mov dword [ebp - 0x14], edi
je 0x489690
mov eax, dword [ebp - 0x30]
mov edx, dword [esi]
push ebx
push eax
mov ecx, esi
call dword [edx + 0x28]
mov eax, dword [ebp - 0x34]
mov edx, dword [esi]
push eax
push edi
mov ecx, esi
call dword [edx + 0x34]
cmp eax, dword [ebp - 0x34]
je 0x4895d4
push edi
jmp 0x489688
push 0x18
call fcn.0050f5f7
add esp, 4
cmp eax, ebx
je 0x4895f7
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov esi, eax
jmp 0x4895f9
xor esi, esi
mov ecx, dword [edi + 4]
push ebx
mov dword [esi + 4], ecx
mov eax, dword [edi + 8]
cdq
sub eax, edx
mov edx, ecx
sar eax, 1
push eax
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x34]
push edx
push 0x30000
push 1
push eax
push edi
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x489644
cmp word [edi + 0xe], 0x10
je 0x489644
mov ecx, dword [ebp - 0x34]
push 0x30000
push 1
push ecx
push edi
call dword [sym.imp.USER32.dll_CreateIconFromResource]
mov dword [esi + 0xc], eax
push edi
call fcn.0050f620
mov eax, dword [esi + 0xc]
add esp, 4
cmp eax, ebx
jne 0x48969e
cmp esi, ebx
je 0x489690
mov eax, dword [esi + 0xc]
mov dword [esi], ebx
cmp eax, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x14], ebx
je 0x489674
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov dword [esi + 0xc], ebx
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x489687
push eax
call fcn.0050f620
add esp, 4
mov dword [esi + 0x10], ebx
push esi
call fcn.0050f620
add esp, 4
mov dword [ebp - 4], 0xffffffff
call fcn.0050fec2
jmp 0x4896f7
mov ecx, dword [ebp - 0x18]
xor edx, edx
cmp ecx, 1
mov dword [ebp - 4], 0xffffffff
setne dl
add edx, 3
mov dword [esi], edx
call fcn.0050fec2
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8