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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x458e72
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
push ebx
push esi
push edi
mov eax, dword [0x477af4]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
add eax, 0x24
call fcn.004188f2
mov dword [esp + 0x10], eax
test eax, eax
jne 0x41d252
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
and dword [esp + 0x108], 0
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x84]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov esi, dword [ebp + 0x1c]
test edi, edi
jne 0x41cb6f
mov dword [esp + 0x10], 0x80040007
jmp 0x41ccd9
mov eax, dword [ebp + 0xc]
add eax, 0xfffffc18
cmp eax, 0xa
ja case.default.0x41cb80
jmp dword [eax*4 + 0x41d26d]
test esi, esi
jne 0x41cb9e
mov esi, 0x8002000f
lea eax, [esp + 0x1c]
push eax
call ebx
mov eax, esi
jmp 0x41d252
cmp dword [esi + 8], 3
je 0x41cbab
mov esi, 0x8002000e
jmp 0x41cb90
mov eax, dword [esi]
add eax, 0x20
push eax
lea ecx, [esp + 0x80]
call fcn.00415bf3
push 8
pop eax
mov byte [esp + 0x108], 1
cmp ax, word [esp + 0x7c]
je 0x41cbdd
lea eax, [esp + 0x7c]
push eax
call ebx
mov esi, 0x80020005
jmp 0x41cb90
mov eax, dword [esi]
add eax, 0x10
push eax
lea ecx, [esp + 0xc0]
call fcn.00415bf3
push 8
pop eax
mov byte [esp + 0x108], 2
cmp ax, word [esp + 0xbc]
je 0x41cc10
lea eax, [esp + 0xbc]
push eax
call ebx
jmp 0x41cbcf
mov eax, dword [ebp + 0x1c]
push dword [eax]
lea ecx, [esp + 0xf0]
call fcn.00415bf3
mov eax, dword [ebp + 8]
mov byte [esp + 0x108], 3
mov eax, dword [eax + 0x84]
mov ecx, dword [eax]
sub esp, 0x10
mov edi, esp
push dword [esp + 0xd4]
lea esi, [esp + 0x100]
push dword [esp + 0x98]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x24]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xec]
push eax
call ebx
lea eax, [esp + 0xbc]
push eax
call ebx
lea eax, [esp + 0x7c]
jmp 0x41d232
and dword [esp + 0x24], 0
push 3
pop eax
lea ecx, [esp + 0x24]
push ecx
mov word [esp + 0x20], ax
mov eax, dword [edi]
push edi
call dword [eax + 0x38]
mov dword [esp + 0x10], eax
test eax, eax
je 0x41ccae
movzx eax, ax
add eax, 0xffffd0bc
cmp eax, 3
ja 0x41ccae
or dword [esp + 0x24], 0xffffffff
and dword [esp + 0x10], 0
cmp dword [ebp + 0x20], 0
je 0x41ccd2
cmp dword [esp + 0x10], 0
jne 0x41ccd9
xor eax, eax
cmp ax, word [esp + 0x1c]
je 0x41ccfd
lea eax, [esp + 0x1c]
push eax
push dword [ebp + 0x20]
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
cmp dword [esp + 0x10], 0
je 0x41ccfd
mov edi, dword [ebp + 8]
push dword [esp + 0x10]
lea esi, [edi + 0x10]
call fcn.0040a79c
push dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
push dword [esp + 0x14]
push edi
call fcn.00418f95
and dword [esp + 0x10], 0
lea eax, [esp + 0x1c]
push eax
call ebx
mov eax, dword [esp + 0x10]
jmp 0x41d252
and dword [esp + 0x14], 0
mov byte [esp + 0x108], 4
mov eax, dword [edi]
add eax, 0x3c
lea esi, [esp + 0x14]
mov dword [esp + 0x18], eax
call fcn.0040f56c
push eax
mov eax, dword [esp + 0x1c]
push edi
call dword [eax]
mov dword [esp + 0x10], eax
test eax, eax
je 0x41cdad
push 0x47aa78
lea ecx, [esp + 0x1c]
call fcn.00402325
movzx eax, word [esp + 0x10]
add eax, 0xffffd0bc
mov byte [esp + 0x108], 5
lea ecx, [esp + 0x18]
cmp eax, 3
ja 0x41cd76
push str.Undefined_status
call fcn.0040257f
and dword [esp + 0x10], 0
jmp 0x41cd80
push str.Error_status
call fcn.0040257f
mov esi, dword [esp + 0x18]
push 8
pop eax
mov word [esp + 0x1c], ax
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x41cd9f
call fcn.0040357d
lea ecx, [esi - 0x10]
mov dword [esp + 0x24], eax
call fcn.004034fb
jmp 0x41cdc2
push 8
pop eax
lea ecx, [esp + 0x14]
mov word [esp + 0x1c], ax
call fcn.0040f546
mov dword [esp + 0x24], eax
mov byte [esp + 0x108], 0
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x41ccae
call fcn.0040a857
jmp 0x41ccae
test esi, esi
je 0x41cb8b
cmp dword [esi + 8], 2
jne 0x41cba4
mov eax, dword [esi]
add eax, 0x10
push eax
lea ecx, [esp + 0x70]
call fcn.00415bf3
push 8
pop eax
mov byte [esp + 0x108], 6
cmp ax, word [esp + 0x6c]
je 0x41ce1c
lea eax, [esp + 0x6c]
jmp 0x41cbd3
push dword [esi]
lea ecx, [esp + 0xd0]
call fcn.00415bf3
push 8
pop eax
mov byte [esp + 0x108], 7
cmp ax, word [esp + 0xcc]
je 0x41ce4b
lea eax, [esp + 0xcc]
push eax
call ebx
jmp 0x41ce13
push dword [esp + 0xd4]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x84]
push dword [esp + 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xcc]
push eax
call ebx
lea eax, [esp + 0x6c]
jmp 0x41d232
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [esp + 0x108], 8
test esi, esi
je 0x41cea5
cmp dword [esi + 8], 0
jbe 0x41cea5
push dword [esi]
lea eax, [esp + 0x30]
push eax
call fcn.0041ad45
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x84]
mov ecx, dword [eax]
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x34]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x2c]
jmp 0x41d232
and dword [esp + 0x18], 0
mov byte [esp + 0x108], 9
mov eax, dword [edi]
add eax, 0x40
lea esi, [esp + 0x18]
mov dword [esp + 0x14], eax
call fcn.0040f56c
push eax
mov eax, dword [esp + 0x18]
push edi
call dword [eax]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x41cf2f
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41cf14
mov eax, dword [eax]
test eax, eax
je 0x41cf14
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
jmp 0x41cf16
xor eax, eax
test eax, eax
jbe 0x41cf2f
push 8
pop eax
lea ecx, [esp + 0x18]
mov word [esp + 0x1c], ax
call fcn.0040f546
mov dword [esp + 0x24], eax
mov byte [esp + 0x108], 0
mov ecx, dword [esp + 0x18]
jmp 0x41cdce
mov eax, esi
test eax, eax
je 0x41cb8b
cmp dword [eax + 8], 1
jne 0x41cba4
push dword [eax]
lea ecx, [esp + 0xe0]
call fcn.00415bf3
push 9
pop eax
cmp ax, word [esp + 0xdc]
je 0x41cf7b
lea eax, [esp + 0xdc]
jmp 0x41cbd3
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x90]
test esi, esi
je 0x41cfb4
call fcn.0041c5cf
push eax
lea ecx, [esp + 0x18]
call fcn.0041ad1f
lea eax, [esi + 0xc]
lea ecx, [esp + 0xdc]
call fcn.004191a6
mov eax, dword [esp + 0x14]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esp + 0xdc]
push eax
call ebx
jmp 0x41ccfd
mov eax, esi
test eax, eax
je 0x41cb8b
cmp dword [eax + 8], 1
jne 0x41cba4
push dword [eax]
lea ecx, [esp + 0x90]
call fcn.00415bf3
push 9
pop eax
cmp ax, word [esp + 0x8c]
je 0x41cffe
lea eax, [esp + 0x8c]
jmp 0x41cbd3
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x90]
test esi, esi
je 0x41d037
call fcn.0041c5cf
push eax
lea ecx, [esp + 0x18]
call fcn.0041ad1f
lea eax, [esi + 0x14]
lea ecx, [esp + 0x8c]
call fcn.004191a6
mov eax, dword [esp + 0x14]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esp + 0x8c]
jmp 0x41cfbb
mov eax, esi
test eax, eax
je 0x41cb8b
cmp dword [eax + 8], 1
jne 0x41cba4
push dword [eax]
lea ecx, [esp + 0xa0]
call fcn.00415bf3
push 9
pop eax
cmp ax, word [esp + 0x9c]
je 0x41d07e
lea eax, [esp + 0x9c]
jmp 0x41cbd3
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x90]
test esi, esi
je 0x41d0b7
call fcn.0041c5cf
push eax
lea ecx, [esp + 0x18]
call fcn.0041ad1f
lea eax, [esi + 8]
lea ecx, [esp + 0x9c]
call fcn.004191a6
mov eax, dword [esp + 0x14]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esp + 0x9c]
jmp 0x41cfbb
mov eax, esi
test eax, eax
je 0x41cb8b
cmp dword [eax + 8], 1
jne 0x41cba4
push dword [eax]
lea ecx, [esp + 0xb0]
call fcn.00415bf3
push 9
pop eax
cmp ax, word [esp + 0xac]
je 0x41d0fe
lea eax, [esp + 0xac]
jmp 0x41cbd3
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x90]
test esi, esi
je 0x41d137
call fcn.0041c5cf
push eax
lea ecx, [esp + 0x18]
call fcn.0041ad1f
lea eax, [esi + 0x10]
lea ecx, [esp + 0xac]
call fcn.004191a6
mov eax, dword [esp + 0x14]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esp + 0xac]
jmp 0x41cfbb
test esi, esi
je 0x41cb8b
cmp dword [esi + 8], 4
jne 0x41cba4
mov eax, dword [esi]
add eax, 0x30
push eax
lea ecx, [esp + 0x40]
call fcn.00415bf3
push 3
pop edi
mov eax, edi
mov byte [esp + 0x108], 0xa
cmp ax, word [esp + 0x3c]
je 0x41d181
lea eax, [esp + 0x3c]
jmp 0x41cbd3
mov eax, dword [esi]
add eax, 0x20
push eax
lea ecx, [esp + 0x50]
call fcn.00415bf3
mov eax, edi
mov byte [esp + 0x108], 0xb
cmp ax, word [esp + 0x4c]
je 0x41d1aa
lea eax, [esp + 0x4c]
push eax
call ebx
jmp 0x41d178
mov eax, dword [esi]
add eax, 0x10
push eax
lea ecx, [esp + 0x60]
call fcn.00415bf3
mov eax, edi
mov byte [esp + 0x108], 0xc
cmp ax, word [esp + 0x5c]
je 0x41d1d3
lea eax, [esp + 0x5c]
push eax
call ebx
jmp 0x41d1a1
push dword [esi]
lea ecx, [esp + 0x30]
call fcn.00415bf3
mov byte [esp + 0x108], 0xd
cmp di, word [esp + 0x2c]
je 0x41d1f6
lea eax, [esp + 0x2c]
push eax
call ebx
jmp 0x41d1ca
push dword [esp + 0x34]
mov eax, dword [ebp + 8]
push dword [esp + 0x68]
mov eax, dword [eax + 0x84]
push dword [esp + 0x5c]
mov ecx, dword [eax]
push dword [esp + 0x50]
push eax
call dword [ecx + 0x5c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x2c]
push eax
call ebx
lea eax, [esp + 0x5c]
push eax
call ebx
lea eax, [esp + 0x4c]
push eax
call ebx
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x10c], 0
call ebx
jmp 0x41ccd2
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, 0x80020003
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24