Function at 0x478580
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511ebc
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x569080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x260], edi
mov eax, dword fs:[0x2c]
mov esi, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [0x56c864]
cmp eax, dword [edx + 4]
jle 0x47865b
push 0x56c864
call fcn.004d3d9f
add esp, 4
cmp dword [0x56c864], 0xffffffff
jne 0x47865b
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea ecx, [edi + 0x18]
mov dword [0x56c868], 0x535e28
xorps xmm0, xmm0
mov dword [0x56c86c], 0
push 0x56c880
mov dword [0x56c870], ecx
mov dword [0x56c874], esi
mov dword [0x56c878], eax
mov dword [0x56c87c], 0
movlpd qword [0x56c880], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0x56c888
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov dword [ebp - 4], 0xffffffff
push 0x56c864
call fcn.004d3d4e
add esp, 4
mov eax, dword [esi + 0x18]
cmp dword [eax - 0xc], 0
je 0x478c92
cmp dword [esi + 8], 0
je 0x478c92
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x478c92
mov eax, dword [esi + 0x14]
cmp dword [eax - 0xc], 0
je 0x478c92
mov eax, dword [esi + 0x48]
cmp dword [eax - 0xc], 0
je 0x478c92
test eax, eax
jne 0x4786c7
xor esi, esi
mov dword [ebp - 0x288], esi
mov dword [ebp - 4], 1
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
je 0x4786e0
mov edi, 0xe0000007
jmp 0x478c80
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x288], esi
test esi, esi
je 0x478cb4
jmp 0x4786a4
mov dword [ebp - 0x284], 0
mov byte [ebp - 4], 2
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x278], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x56b0cc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x274], 0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.OLEAUT32.dll_LoadRegTypeLib]
mov edi, eax
mov dword [ebp - 0x25c], edi
test edi, edi
js 0x478b26
mov eax, dword [ebp - 0x274]
mov dword [0x56c86c], eax
lea eax, [ebp - 0x264]
push eax
push 4
push 4
push 0x56c868
lea eax, [ebp - 0x258]
mov dword [ebp - 0x268], 0
push eax
mov dword [ebp - 0x264], 0
call dword [sym.imp.ole32.dll_CoRegisterClassObject]
mov dword [ebp - 0x25c], eax
test eax, eax
js 0x478b26
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x280]
call fcn.0040b840
mov eax, dword [ebp - 0x260]
cmp byte [eax + 0x174], 0
je 0x478a47
lea ecx, [ebp - 0x248]
call fcn.00423a30
mov byte [ebp - 4], 9
xorps xmm0, xmm0
push 0x18
push str.Updater_comproxystub.dll
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
movups xmmword [ebp - 0x230], xmm0
mov dword [ebp - 0x21c], 0
call fcn.00403f80
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x248]
call fcn.004241c0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x230]
call fcn.00404130
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x248]
call fcn.00423c20
mov dword [ebp - 0x25c], eax
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 7
jbe 0x478857
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
call fcn.004047f0
mov dword [ebp - 0x260], eax
test eax, eax
je 0x478cbe
mov eax, dword [eax]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x525578]
mov ecx, dword [ebp - 0x260]
call edi
add eax, 0x10
mov dword [ebp - 0x260], eax
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x25c]
test edx, edx
je 0x4788c5
test edx, 0xffff0000
jne 0x4788af
movzx eax, dx
lea ecx, [ebp - 0x260]
push eax
call fcn.004043d0
jmp 0x4788d4
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4788b4
sub ecx, edi
sar ecx, 1
jmp 0x4788c7
xor ecx, ecx
push ecx
push edx
lea ecx, [ebp - 0x260]
call fcn.00403870
mov byte [ebp - 4], 0xd
push 0x18
call fcn.004d4062
add esp, 4
mov dword [ebp - 0x25c], eax
mov byte [ebp - 4], 0xe
mov dword [eax], 0x5321b4
mov dword [eax + 4], 0
mov byte [ebp - 4], 0xf
lea edi, [eax + 8]
mov dword [ebp - 0x26c], edi
mov eax, dword [ebp - 0x260]
add eax, 0xfffffff0
mov ecx, eax
mov dword [ebp - 0x264], eax
call fcn.00402800
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x25c]
push dword [edi]
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov byte [ecx + 0x14], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [ebp - 0x25c]
mov dword [ebp - 0x26c], eax
mov ecx, dword [edi + 4]
cmp eax, ecx
je 0x47897c
mov ecx, dword [edi]
mov edi, dword [ecx + 4]
mov ecx, edi
call dword [0x525578]
mov ecx, dword [ebp - 0x25c]
call edi
mov edi, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0x26c]
mov dword [edi + 4], ecx
test ecx, ecx
je 0x4789bc
push str.LocalRegisterProxyStub
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x26c], eax
test eax, eax
je 0x4789bc
lea ecx, [edi + 0xc]
push ecx
mov ecx, eax
call dword [0x525578]
call dword [ebp - 0x26c]
mov dword [edi + 0x10], eax
test eax, eax
js 0x4789c3
mov byte [edi + 0x14], 1
mov dword [edi + 4], 0
jmp 0x4789c3
mov dword [edi + 0x10], 0x80004005
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x284], edi
mov edi, dword [edi + 0x10]
mov dword [ebp - 0x25c], edi
mov byte [ebp - 4], 0xb
or eax, 0xffffffff
mov ecx, dword [ebp - 0x264]
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x478a11
mov eax, dword [ecx]
mov dword [ebp - 0x264], eax
push ecx
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x525578]
mov ecx, dword [ebp - 0x264]
call edi
mov edi, dword [ebp - 0x25c]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x230]
call fcn.00404130
test edi, edi
jns 0x478a38
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x248]
call fcn.00404130
jmp 0x478b26
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x248]
call fcn.00404130
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov edi, eax
mov dword [ebp - 0x25c], edi
test edi, edi
js 0x478b26
nop dword [eax]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x2a4]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x478a9d
cmp dword [ebp - 0x2a0], 0x12
je 0x478b14
lea eax, [ebp - 0x2a4]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x478a60
cmp dword [0x56c87c], 0
jne 0x478b07
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x268]
sub ecx, dword [0x56c888]
mov edx, dword [ebp - 0x264]
sbb edx, dword [0x56c88c]
call fcn.004fca20
mulsd xmm0, qword [0x53ccc0]
mov edx, dword [0x56c884]
mov ecx, dword [0x56c880]
movsd qword [ebp - 0x270], xmm0
call fcn.004fca20
movsd xmm1, qword [ebp - 0x270]
divsd xmm1, xmm0
comisd xmm1, xmmword [0x53ccc8]
ja 0x478b1c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x478a60
mov dword [ebp - 0x25c], edi
jmp 0x478b26
mov dword [ebp - 0x25c], 0x80004004
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x274]
test eax, eax
je 0x478b44
mov ecx, dword [eax]
push eax
mov edi, dword [ecx + 8]
mov ecx, edi
call dword [0x525578]
call edi
mov byte [ebp - 4], 0x1d
xor edi, edi
cmp dword [ebp - 0x27c], edi
jle 0x478b8f
test edi, edi
js 0x478cc8
mov eax, dword [ebp - 0x280]
mov ecx, dword [eax + edi*8]
test ecx, ecx
jne 0x478b74
mov eax, dword [eax + edi*8 + 4]
push eax
call dword [sym.imp.ole32.dll_CoRevokeClassObject]
jmp 0x478b86
cmp ecx, 1
jne 0x478b86
mov eax, dword [eax + edi*8 + 4]
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_GetActiveObject]
inc edi
cmp edi, dword [ebp - 0x27c]
jl 0x478b52
mov byte [ebp - 4], 0x1c
mov eax, dword [ebp - 0x280]
test eax, eax
je 0x478bb0
push eax
call fcn.004ddca1
add esp, 4
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x278], 0
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x284]
mov dword [ebp - 0x26c], edi
mov dword [ebp - 0x260], edi
test edi, edi
je 0x478c70
mov byte [ebp - 4], 0x1f
cmp dword [edi + 0x10], 0
jl 0x478bff
cmp byte [edi + 0x14], 0
je 0x478bff
push dword [edi + 0xc]
mov byte [edi + 0x14], 0
call dword [sym.imp.ole32.dll_CoRevokeClassObject]
mov byte [ebp - 4], 0x1e
lea eax, [edi + 8]
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 0x1e
mov ecx, dword [eax]
or eax, 0xffffffff
sub ecx, 0x10
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x478c46
mov eax, dword [ecx]
mov dword [ebp - 0x264], eax
push ecx
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x525578]
mov ecx, dword [ebp - 0x264]
call edi
mov edi, dword [ebp - 0x26c]
mov byte [ebp - 4], 1
mov dword [edi], 0x5321b4
mov eax, dword [edi + 4]
test eax, eax
je 0x478c65
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi + 4], 0
push 0x18
push edi
call fcn.004d4054
add esp, 8
mov edi, dword [ebp - 0x25c]
mov dword [ebp - 0x284], 0
mov dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, edi
jmp 0x478c97
mov eax, 0xe0000007
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d3ce9
mov esp, ebp
pop ebp
ret 4
push 0x8007000e
call fcn.004027d0
push 0x80004005
call fcn.004027d0
push 0x8000000b
call fcn.004027d0
int3