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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51c4a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov eax, dword [ecx + 0xc4]
push ebx
push esi
cmp eax, 2
push edi
mov dword [ebp - 0x14], ecx
je 0x4797b7
mov ebx, dword [ebp + 0xc]
cmp byte [ebx], 0
je 0x4797b7
mov esi, dword [ebp + 8]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, ecx
add eax, 4
and al, 0xfc
call fcn.004fec00
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov edx, esp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x18]
push ecx
push 0x23
push edx
call fcn.00479490
lea edx, [ebp - 0x18]
mov dword [ebp + 0xc], eax
push edx
push 0x23
push 0
call fcn.00479490
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push 0x23
push 0
call fcn.00479490
add esp, 0x24
mov edi, eax
test esi, esi
je 0x47958a
mov al, byte [esi]
test al, al
je 0x47958a
cmp al, 0x7b
jne 0x479683
mov ecx, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ecx + 0xd8]
lea eax, [ecx + 0xd8]
mov ecx, dword [edx - 8]
test ecx, ecx
je 0x4795c4
push ebx
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.0050faff
mov eax, dword [eax]
push eax
call edi
lea ecx, [ebp + 0xc]
mov esi, eax
call fcn.0050f8b6
test esi, esi
jne 0x479614
mov ecx, dword [ebp - 0x14]
push 0x93dd08
add ecx, 0xd0
lea edx, [ebp - 0x10]
push ecx
push edx
call fcn.0050faff
push ebx
push eax
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
push eax
call fcn.0050faff
mov eax, dword [eax]
push eax
call edi
lea ecx, [ebp + 0xc]
mov esi, eax
call fcn.0050f8b6
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.0050f8b6
test esi, esi
je 0x4797b7
mov eax, dword [ebp + 0x10]
test eax, eax
mov eax, str.DllRegisterServer
jne 0x479625
mov eax, str.DllUnregisterServer
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x47963d
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4797b7
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x479679
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
push eax
mov edx, dword [esi + 0xe4]
lea ecx, [esi + 0xdc]
push edx
call fcn.0050eb26
mov eax, dword [esi + 0xf8]
lea ecx, [esi + 0xf0]
push ebx
push eax
call fcn.0050eb26
mov eax, 1
jmp 0x4797b9
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4797fc
mov ecx, dword [0x94f978]
mov dword [ebp + 0xc], ecx
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 0
call fcn.00464430
mov edi, dword [sym.imp.OLEAUT32.dll_LoadRegTypeLib]
mov byte [ebp - 4], 2
xor esi, esi
test esi, esi
jne 0x4796fd
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0xd8]
lea eax, [edx + 0xd8]
mov edx, dword [ecx - 8]
test edx, edx
je 0x47975a
push ebx
lea edx, [ebp - 0x1c]
push eax
push edx
call fcn.0050faff
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call fcn.0050f9a3
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0050f8b6
jmp 0x479738
cmp esi, 1
push ebx
jne 0x479730
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
add eax, 0xd0
push eax
push ecx
call fcn.0050faff
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 4
call fcn.0050f9a3
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0050f8b6
jmp 0x479738
lea ecx, [ebp + 0xc]
call fcn.0050f9f3
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x44]
push edx
push eax
push ecx
call fcn.00482f10
add esp, 8
push eax
call edi
test eax, eax
jge 0x479764
mov dword [ebp - 0x10], 0
inc esi
cmp esi, 3
jl 0x4796b9
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x479795
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x44]
push 0
push edx
push eax
call fcn.00482f10
mov ecx, dword [ebp - 0x10]
add esp, 8
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_QueryPathOfRegTypeLib]
test eax, eax
mov eax, dword [ebp - 0x10]
jge 0x4797cf
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
mov dword [ebp - 0x44], 0x921d20
call fcn.00464630
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.0050f8b6
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x64]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
mov dword [ebp - 0x44], 0x921d20
call fcn.00464630
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.0050f8b6
jmp 0x479646
push esi
call fcn.004fe298
push 0x2e
push esi
mov ebx, eax
call fcn.004ff5b0
add esp, 0xc
test eax, eax
je 0x479821
inc eax
push eax
call fcn.004fe298
add esp, 4
mov esi, eax
jmp 0x479823
xor esi, esi
lea ecx, [ebp - 0x58]
call fcn.00464430
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x58]
push edx
push eax
push ecx
mov dword [ebp - 4], 5
call fcn.00482f10
add esp, 8
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jl 0x479869
push 1
push edi
call fcn.004fe298
add esp, 4
lea edx, [ebp - 0x30]
push eax
push esi
push ebx
push edx
call dword [sym.imp.OLEAUT32.dll_VarDecFix]
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x58], 0x921d20
call fcn.00464630
mov eax, 1
jmp 0x4797b9