Function at 0x51bb20
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58e5c6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa8
mov eax, dword [0x608514]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x7c], eax
cmp dword [eax + 0x10], 0
je 0x51bf2a
push 9
xor eax, eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
lea ecx, [ebp - 0xa0]
push str.Ole32.dll
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
call fcn.004047a0
mov dword [ebp - 4], 0
lea eax, [ebp - 0xa0]
push eax
call fcn.00453870
mov ecx, eax
call fcn.00453940
mov dword [ebp - 0x70], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.004046e0
push 0xc
xor eax, eax
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
lea ecx, [ebp - 0xb8]
push str.OleAut32.dll
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], ax
call fcn.004047a0
mov dword [ebp - 4], 1
lea eax, [ebp - 0xb8]
push eax
call fcn.00453870
mov ecx, eax
call fcn.00453940
mov esi, eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb8]
call fcn.004046e0
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x51bf2a
test esi, esi
je 0x51bf2a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5bde24
push eax
call esi
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x70]
push 0x5bde38
push eax
call esi
push str.VariantInit
push dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
call esi
push str.VariantClear
push dword [ebp - 0x74]
mov dword [ebp - 0x84], eax
call esi
push str.SysAllocString
push dword [ebp - 0x74]
mov dword [ebp - 0x70], eax
call esi
push str.SysFreeString
push dword [ebp - 0x74]
mov dword [ebp - 0x88], eax
call esi
cmp dword [ebp - 0x80], 0
mov dword [ebp - 0x74], eax
je 0x51bf2a
mov esi, dword [ebp - 0x78]
test esi, esi
je 0x51bf2a
cmp dword [ebp - 0x84], 0
je 0x51bf2a
cmp dword [ebp - 0x70], 0
je 0x51bf2a
cmp dword [ebp - 0x88], 0
je 0x51bf2a
test eax, eax
je 0x51bf2a
lea ecx, [ebp - 0x78]
call fcn.0051d8b0
mov dword [ebp - 4], 2
push 0
push 0
push 0
push 3
push 6
push 0
push 0
push 0xffffffffffffffff
push 0
call esi
test eax, eax
jns 0x51bd3e
cmp eax, 0x80010119
je 0x51bd3e
mov byte [ebp - 0x69], 0
jmp 0x51bf16
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x18]
push eax
push 0x5c5f78
push 1
push 0
push 0x5c5f98
call dword [ebp - 0x80]
test eax, eax
js 0x51bf01
cmp dword [ebp - 0x18], 0
je 0x51bf01
mov esi, dword [ebp - 0x84]
lea eax, [ebp - 0x38]
push eax
call esi
lea eax, [ebp - 0x48]
push eax
call esi
lea eax, [ebp - 0x58]
push eax
call esi
lea eax, [ebp - 0x68]
push eax
call esi
movups xmm0, xmmword [ebp - 0x68]
mov eax, dword [ebp - 0x18]
sub esp, 0x10
mov ecx, esp
sub esp, 0x10
mov edx, dword [eax]
movups xmmword [ecx], xmm0
mov ecx, esp
sub esp, 0x10
movups xmm0, xmmword [ebp - 0x58]
movups xmmword [ecx], xmm0
mov ecx, esp
sub esp, 0x10
movups xmm0, xmmword [ebp - 0x48]
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [ebp - 0x38]
push eax
movups xmmword [ecx], xmm0
call dword [edx + 0x28]
mov esi, eax
lea eax, [ebp - 0x38]
push eax
call dword [ebp - 0x70]
lea eax, [ebp - 0x48]
push eax
call dword [ebp - 0x70]
lea eax, [ebp - 0x58]
push eax
call dword [ebp - 0x70]
lea eax, [ebp - 0x68]
push eax
call dword [ebp - 0x70]
test esi, esi
js 0x51bf01
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 8
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push edx
push 0x5b7500
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
js 0x51beea
cmp dword [ebp - 0x1c], 0
je 0x51beea
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x7c]
cmp dword [eax + 0x14], 8
jb 0x51be47
mov eax, dword [eax]
push eax
call dword [ebp - 0x88]
mov edx, eax
mov dword [ebp - 0x7c], edx
test edx, edx
jne 0x51be5c
mov byte [ebp - 0x69], al
jmp 0x51bed7
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x20]
push esi
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
push dword [ebp - 0x7c]
mov esi, eax
call dword [ebp - 0x74]
test esi, esi
js 0x51becd
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x51becd
mov dword [ebp - 0x24], 0
lea edx, [ebp - 0x24]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x24]
test eax, eax
jns 0x51be98
mov byte [ebp - 0x69], 0
jmp 0x51bed7
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x51becd
cmp ecx, 1
jne 0x51bea8
mov dword [edi], ecx
jmp 0x51bed3
cmp ecx, 2
jne 0x51beb1
mov dword [edi], ecx
jmp 0x51bed3
cmp ecx, 3
jne 0x51beba
mov dword [edi], ecx
jmp 0x51bed3
mov edx, 4
mov eax, 9
cmp ecx, edx
cmove eax, edx
mov dword [edi], eax
jmp 0x51bed3
mov dword [edi], 0
mov byte [ebp - 0x69], 1
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x51beee
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x51beee
mov byte [ebp - 0x69], 0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x51bf05
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x51bf05
mov byte [ebp - 0x69], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x51bf16
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.0051d9a0
mov al, byte [ebp - 0x69]
jmp 0x51bf2c
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0054bed3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8