Function at 0x4ae7f2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x4ea4ec]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
mov dword [esp + 0x3c], ecx
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [esp + 0x70], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
test eax, eax
jns 0x4ae8c6
cmp eax, 0x80010106
je 0x4ae8c6
mov ebx, eax
mov edx, dword [esp + 0x34]
push 0x24
pop esi
mov eax, dword [edx + 4]
mov ecx, dword [edx]
sub eax, ecx
mov dword [edx + 4], ecx
cdq
idiv esi
mov edx, ecx
push eax
call fcn.004af0e7
mov eax, ebx
and eax, 0xffff0000
cmp eax, 0x80070000
jne 0x4ae870
movzx ebx, bx
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4ae888
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4f6d6c]
call esi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4ae8a0
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4f6d6c]
call esi
cmp dword [esp + 0x70], 0
jl 0x4ae8ad
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x94]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c4ec0
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x24]
push eax
push 0x415174
push 0x17
push ebx
push 0x415184
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
js 0x4ae843
mov eax, dword [esp + 0x24]
push 0
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xfc]
mov ecx, esi
call dword [0x4f6d6c]
call esi
mov ebx, eax
test ebx, ebx
js 0x4ae843
mov ecx, dword [esp + 0x24]
mov edx, 0x4150ec
push 0x415110
call fcn.004aeeeb
mov ebx, eax
test ebx, ebx
js 0x4ae843
mov ecx, dword [esp + 0x24]
mov edx, 0x415128
push 0x414f08
call fcn.004aeeeb
mov ebx, eax
test ebx, ebx
js 0x4ae843
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4ae95e
mov ebx, 0x8007000e
jmp 0x4ae843
push 8
pop ecx
lea edx, [esp + 0x1c]
mov word [esp + 0x40], cx
push edx
sub esp, 0x10
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x38]
lea esi, [esp + 0x54]
mov edi, esp
push eax
mov ecx, dword [eax]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ecx + 0xe8]
mov ecx, esi
call dword [0x4f6d6c]
call esi
push dword [esp + 0x20]
mov ebx, eax
test ebx, ebx
jns 0x4ae9a8
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x4ae843
cmp word [esp + 0x20], 0
jne 0x4ae9b7
mov ebx, 0x5b9
jmp 0x4ae99d
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x30]
mov edx, 0x415078
push eax
call fcn.004aef70
mov ebx, eax
test ebx, ebx
js 0x4ae843
cmp dword [esp + 0x28], 0
jne 0x4aea08
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x30]
mov edx, 0x414fe0
push eax
call fcn.004aef70
mov ebx, eax
test ebx, ebx
js 0x4ae843
mov edx, dword [esp + 0x34]
push 0x24
pop ebx
mov eax, dword [edx + 4]
mov ecx, dword [edx]
sub eax, ecx
mov dword [edx + 4], ecx
cdq
idiv ebx
mov edx, ecx
push eax
call fcn.004af0e7
xor ebx, ebx
mov dword [esp + 0x3c], ebx
cmp dword [esp + 0x28], ebx
jle 0x4aedfd
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
and dword [esp + 0x14], 0
mov edi, dword [esi]
call fcn.004af04f
mov ecx, dword [edi + 0x1c]
push eax
push ebx
push esi
call dword [0x4f6d6c]
call dword [edi + 0x1c]
mov ebx, eax
mov eax, dword [esp + 0x14]
test ebx, ebx
js 0x4aeece
and dword [esp + 0x10], 0
lea edx, [esp + 0x10]
mov ecx, dword [eax]
push edx
push eax
mov esi, dword [ecx + 0x44]
mov ecx, esi
call dword [0x4f6d6c]
call esi
mov ebx, eax
mov eax, dword [esp + 0x10]
test ebx, ebx
js 0x4aeeb6
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
push eax
mov esi, dword [ecx + 0x2c]
mov ecx, esi
call dword [0x4f6d6c]
call esi
mov ebx, eax
test ebx, ebx
js 0x4aeeb2
xor eax, eax
mov byte [esp + 0x1c], 0
lea edi, [esp + 0x74]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
and dword [esp + 0x30], edi
mov dword [esp + 0x20], edi
cmp dword [esp + 0x38], edi
jle 0x4aeea2
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x18]
and dword [esp + 0x18], 0
mov ebx, dword [esi]
call fcn.004af04f
mov ecx, dword [ebx + 0x28]
push eax
push dword [esp + 0x34]
push esi
call dword [0x4f6d6c]
call dword [ebx + 0x28]
mov ebx, eax
mov eax, dword [esp + 0x18]
test ebx, ebx
js 0x4aec96
and dword [esp + 0xc], 0
lea edx, [esp + 0xc]
mov ecx, dword [eax]
push edx
push eax
mov esi, dword [ecx + 0x1c]
mov ecx, esi
call dword [0x4f6d6c]
call esi
mov ebx, eax
test ebx, ebx
js 0x4aec81
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4aed50
push 4
mov edx, 0x41511c
mov ecx, eax
pop ebx
mov si, word [ecx]
cmp si, word [edx]
jne 0x4aeb61
test si, si
je 0x4aeb5d
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x4aeb61
add ecx, ebx
add edx, ebx
test si, si
jne 0x4aeb3d
xor ecx, ecx
jmp 0x4aeb66
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x4aebe2
cmp byte [esp + 0x1c], cl
jne 0x4aee19
xor eax, eax
lea edx, [esp + 0x50]
mov word [esp + 0x50], ax
mov eax, dword [esp + 0x18]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x20]
mov ecx, esi
call dword [0x4f6d6c]
call esi
mov ebx, eax
test ebx, ebx
js 0x4aee09
push 8
pop eax
cmp word [esp + 0x50], ax
jne 0x4aee04
cmp dword [esp + 0x58], 0
je 0x4aee04
lea eax, [esp + 0x84]
push eax
push dword [esp + 0x5c]
call dword [sym.imp.ole32.dll_IIDFromString]
mov ebx, eax
lea eax, [esp + 0x50]
push eax
test ebx, ebx
js 0x4aee0e
mov byte [esp + 0x20], 1
jmp 0x4aed3b
mov edx, 0x41515c
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x4aec0d
test si, si
je 0x4aec09
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x4aec0d
add ecx, ebx
add edx, ebx
test si, si
jne 0x4aebe9
xor ecx, ecx
jmp 0x4aec12
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x4aecb3
xor eax, eax
lea edx, [esp + 0x60]
mov word [esp + 0x60], ax
mov eax, dword [esp + 0x18]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x20]
mov ecx, esi
call dword [0x4f6d6c]
call esi
mov ebx, eax
test ebx, ebx
js 0x4aee29
push 8
pop eax
cmp word [esp + 0x60], ax
jne 0x4aee24
cmp dword [esp + 0x68], 0
je 0x4aee24
lea eax, [esp + 0x74]
push eax
push dword [esp + 0x6c]
call dword [sym.imp.ole32.dll_IIDFromString]
mov ebx, eax
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test ebx, ebx
jns 0x4aed41
cmp dword [esp + 0xc], 0
je 0x4aec92
push dword [esp + 0xc]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4aeea7
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4f6d6c]
call esi
jmp 0x4aeea7
mov edx, 0x415150
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x4aecde
test si, si
je 0x4aecda
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x4aecde
add ecx, ebx
add edx, ebx
test si, si
jne 0x4aecba
xor ecx, ecx
jmp 0x4aece3
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x4aed45
test edi, edi
jne 0x4aee6a
xor eax, eax
lea edx, [esp + 0x40]
mov word [esp + 0x40], ax
mov eax, dword [esp + 0x18]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x20]
mov ecx, esi
call dword [0x4f6d6c]
call esi
mov ebx, eax
test ebx, ebx
js 0x4aee34
push 8
pop eax
cmp word [esp + 0x40], ax
jne 0x4aee2f
mov edi, dword [esp + 0x48]
xor eax, eax
mov word [esp + 0x40], ax
lea eax, [esp + 0x40]
mov dword [esp + 0x20], edi
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4aed50
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4aed68
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4f6d6c]
call esi
mov eax, dword [esp + 0x30]
inc eax
mov dword [esp + 0x30], eax
cmp eax, dword [esp + 0x38]
jl 0x4aeacf
cmp byte [esp + 0x1c], 0
je 0x4aeea2
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.004af073
test al, al
je 0x4aee90
cmp dword [esp + 0x20], 0
je 0x4aedba
push dword [esp + 0x20]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4aedd2
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4f6d6c]
call esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4aedea
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4f6d6c]
call esi
mov ebx, dword [esp + 0x3c]
inc ebx
mov dword [esp + 0x3c], ebx
cmp ebx, dword [esp + 0x28]
jl 0x4aea34
xor ebx, ebx
jmp 0x4ae85f
mov ebx, 0x5b9
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x4aec81
mov ebx, 0x5b9
push eax
jmp 0x4aec8c
mov ebx, 0x5b9
lea eax, [esp + 0x60]
jmp 0x4aee0d
mov ebx, 0x5b9
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [esp + 0xc], 0
je 0x4aee50
push dword [esp + 0xc]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4aeeb2
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4f6d6c]
call esi
jmp 0x4aeeb2
push eax
mov ebx, 0x5b9
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4aeeab
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4f6d6c]
call esi
jmp 0x4aeeab
cmp dword [esp + 0x20], 0
mov ebx, 0x8007000e
je 0x4aeeb2
push dword [esp + 0x20]
jmp 0x4aeeac
mov ebx, 0x5b9
test edi, edi
je 0x4aeeb2
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4aeeca
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4f6d6c]
call esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4ae843
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4f6d6c]
call esi
jmp 0x4ae843