Function at 0x4f4950
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x52a8fa
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov ebx, dword [esp + 0xc0]
mov edi, dword [esp + 0xc4]
cmp dword [ebx + 0x10], 0
je 0x4f4ea2
push str.Ole32.dll
lea ecx, [esp + 0x48]
call fcn.00404840
mov dword [esp + 0xb8], 0
mov eax, dword [0x569648]
test al, 1
jne 0x4f49f9
or eax, 1
mov dword [0x569648], eax
mov byte [esp + 0xb8], 1
mov dword [0x569644], 0
call fcn.00452140
push 0x52cc50
call fcn.00505c19
add esp, 4
mov byte [esp + 0xb8], 0
lea eax, [esp + 0x44]
mov ecx, 0x569644
push eax
call fcn.004523f0
mov esi, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0xb8], 0xffffffff
cmp dword [esp + 0x58], 8
jb 0x4f4a2d
push dword [esp + 0x44]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x58], 7
push str.OleAut32.dll
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], 0
mov word [esp + 0x48], ax
call fcn.00404840
mov dword [esp + 0xb8], 2
mov eax, dword [0x569648]
test al, 1
jne 0x4f4a9a
or eax, 1
mov dword [0x569648], eax
mov byte [esp + 0xb8], 3
mov dword [0x569644], 0
call fcn.00452140
push 0x52cc50
call fcn.00505c19
add esp, 4
mov byte [esp + 0xb8], 2
lea eax, [esp + 0x2c]
mov ecx, 0x569644
push eax
call fcn.004523f0
mov ebp, eax
mov dword [esp + 0xb8], 0xffffffff
cmp dword [esp + 0x40], 8
jb 0x4f4aca
push dword [esp + 0x2c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
test esi, esi
je 0x4f4ea2
test ebp, ebp
je 0x4f4ea2
push str.CoCreateInstance
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
push str.CoInitializeSecurity
push dword [esp + 0x1c]
mov dword [esp + 0x28], eax
call esi
push str.VariantInit
push ebp
mov dword [esp + 0x2c], eax
call esi
push str.VariantClear
push ebp
mov dword [esp + 0x20], eax
call esi
push str.SysAllocString
push ebp
mov dword [esp + 0x1c], eax
call esi
push str.SysFreeString
push ebp
mov dword [esp + 0x24], eax
call esi
cmp dword [esp + 0x20], 0
mov dword [esp + 0x28], eax
je 0x4f4ea2
mov esi, dword [esp + 0x24]
test esi, esi
je 0x4f4ea2
cmp dword [esp + 0x18], 0
je 0x4f4ea2
cmp dword [esp + 0x14], 0
je 0x4f4ea2
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x4f4ea2
test eax, eax
je 0x4f4ea2
lea ecx, [esp + 0x1c]
call fcn.00502020
mov dword [esp + 0xb8], 4
push 0
push 0
push 0
push 3
push 6
push 0
push 0
push 0xffffffffffffffff
push 0
call esi
test eax, eax
jns 0x4f4bbd
cmp eax, 0x80010119
je 0x4f4bbd
xor bl, bl
jmp 0x4f4e8a
mov dword [esp + 0x5c], 0
mov byte [esp + 0xb8], 6
lea eax, [esp + 0x5c]
push eax
push 0x53d588
push 1
push 0
push 0x53d5b8
call dword [esp + 0x34]
test eax, eax
js 0x4f4e77
cmp dword [esp + 0x5c], 0
je 0x4f4e77
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x6c]
push eax
call esi
lea eax, [esp + 0x7c]
push eax
call esi
lea eax, [esp + 0x9c]
push eax
call esi
lea eax, [esp + 0x8c]
push eax
call esi
movdqu xmm0, xmmword [esp + 0x8c]
mov eax, dword [esp + 0x5c]
sub esp, 0x10
mov ecx, esp
sub esp, 0x10
mov edx, dword [eax]
movdqu xmmword [ecx], xmm0
mov ecx, esp
sub esp, 0x10
movdqu xmm0, xmmword [esp + 0xcc]
movdqu xmmword [ecx], xmm0
mov ecx, esp
sub esp, 0x10
movdqu xmm0, xmmword [esp + 0xbc]
movdqu xmmword [ecx], xmm0
mov ecx, esp
movdqu xmm0, xmmword [esp + 0xac]
push eax
movdqu xmmword [ecx], xmm0
call dword [edx + 0x28]
mov esi, eax
lea eax, [esp + 0x6c]
push eax
call dword [esp + 0x18]
lea eax, [esp + 0x7c]
push eax
call dword [esp + 0x18]
lea eax, [esp + 0x9c]
push eax
call dword [esp + 0x18]
lea eax, [esp + 0x8c]
push eax
call dword [esp + 0x18]
test esi, esi
js 0x4f4e77
mov dword [esp + 0x60], 0
mov byte [esp + 0xb8], 8
lea edx, [esp + 0x60]
mov eax, dword [esp + 0x5c]
push edx
push 0x5342dc
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
js 0x4f4e62
cmp dword [esp + 0x60], 0
je 0x4f4e62
mov dword [esp + 0x64], 0
mov byte [esp + 0xb8], 0xa
cmp dword [ebx + 0x14], 8
jb 0x4f4cf2
mov ebx, dword [ebx]
push ebx
call ebp
mov ebx, eax
test ebx, ebx
je 0x4f4d3d
mov eax, dword [esp + 0x60]
lea edx, [esp + 0x64]
push edx
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
push ebx
mov esi, eax
call dword [esp + 0x2c]
test esi, esi
js 0x4f4e36
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4f4e36
mov dword [esp + 0x68], 0
lea edx, [esp + 0x68]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x24]
test eax, eax
jns 0x4f4d66
xor bl, bl
mov byte [esp + 0xb8], 8
lea ecx, [esp + 0x64]
call fcn.004f4f90
mov byte [esp + 0xb8], 6
lea ecx, [esp + 0x60]
call fcn.004f4f30
jmp 0x4f4e79
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x4f4e36
cmp ecx, 1
jne 0x4f4da2
mov dword [edi], ecx
mov bl, cl
mov byte [esp + 0xb8], 8
lea ecx, [esp + 0x64]
call fcn.004f4f90
mov byte [esp + 0xb8], 6
lea ecx, [esp + 0x60]
call fcn.004f4f30
jmp 0x4f4e79
cmp ecx, 2
jne 0x4f4dd2
mov dword [edi], ecx
mov bl, 1
mov byte [esp + 0xb8], 8
lea ecx, [esp + 0x64]
call fcn.004f4f90
mov byte [esp + 0xb8], 6
lea ecx, [esp + 0x60]
call fcn.004f4f30
jmp 0x4f4e79
cmp ecx, 3
jne 0x4f4dff
mov dword [edi], ecx
mov bl, 1
mov byte [esp + 0xb8], 8
lea ecx, [esp + 0x64]
call fcn.004f4f90
mov byte [esp + 0xb8], 6
lea ecx, [esp + 0x60]
call fcn.004f4f30
jmp 0x4f4e79
mov edx, 4
mov eax, 9
cmp ecx, edx
mov bl, 1
cmove eax, edx
mov dword [edi], eax
mov byte [esp + 0xb8], 8
lea ecx, [esp + 0x64]
call fcn.004f4f90
mov byte [esp + 0xb8], 6
lea ecx, [esp + 0x60]
call fcn.004f4f30
jmp 0x4f4e79
mov dword [edi], 0
mov bl, 1
mov byte [esp + 0xb8], 8
lea ecx, [esp + 0x64]
call fcn.004f4f90
mov byte [esp + 0xb8], 6
lea ecx, [esp + 0x60]
call fcn.004f4f30
jmp 0x4f4e79
xor bl, bl
mov byte [esp + 0xb8], 6
lea ecx, [esp + 0x60]
call fcn.004f4f30
jmp 0x4f4e79
xor bl, bl
mov byte [esp + 0xb8], 4
lea ecx, [esp + 0x5c]
call fcn.004f4ed0
mov dword [esp + 0xb8], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00502170
mov al, bl
jmp 0x4f4ea4
xor al, al
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00505b1e
add esp, 0xa8
ret 8