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

Disassembly:
sub esp, 0x54
push ebx
mov ebx, dword [esp + 0x6c]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x41f58c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebx + 4], 0
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x24]
push ebp
push esi
push edi
mov ecx, dword [eax + 4]
xor edi, edi
mov dword [esp + 0x2c], vtable.SmartCOMPointer_struct_IUnknown_.0
mov dword [esp + 0x30], edi
push edx
mov eax, dword [ecx]
push ecx
mov dword [esp + 0x2c], vtable.SmartCOMPointer_struct_IEnumVARIANT_.0
mov dword [esp + 0x30], edi
call dword [eax + 0x2c]
mov ebp, dword [esp + 0x7c]
mov esi, eax
test esi, esi
jns 0x41f619
push 0x44d220
push str.COM_error_occurred
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x441510
push str._s__Message:___s_
push eax
mov dword [esp + 0x30], edi
call fcn.004145f0
add esp, 0x10
test al, al
je 0x41f606
push edi
push dword [esp + 0x20]
mov ecx, ebp
push esi
call fcn.00414ca0
test al, al
je 0x41f606
mov bl, 1
jmp 0x41f608
xor bl, bl
lea ecx, [esp + 0x1c]
call fcn.00405f20
test bl, bl
je 0x41f9ae
push ebp
push dword [esp + 0x34]
lea ecx, [esp + 0x2c]
call fcn.0041f4f0
test al, al
je 0x41f9aa
mov bl, 1
mov dword [esp + 0x18], 1
nop dword [eax]
cmp dword [esp + 0x18], 0
je 0x41f931
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x58]
xor esi, esi
push edx
mov eax, dword [ecx]
push 1
push ecx
call dword [eax + 0xc]
mov edi, eax
test edi, edi
jns 0x41f6bd
push str.Get_Next_Rule
push str.COM_error_occurred
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0x441510
push str._s__Message:___s_
push eax
mov dword [esp + 0x48], esi
call fcn.004145f0
add esp, 0x10
test al, al
je 0x41f6aa
push esi
push dword [esp + 0x38]
mov ecx, ebp
push edi
call fcn.00414ca0
test al, al
je 0x41f6aa
mov bl, 1
jmp 0x41f6ac
xor bl, bl
lea ecx, [esp + 0x34]
call fcn.00405f20
test bl, bl
je 0x41f91d
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x41f700
mov eax, dword [ecx]
lea edx, [esp + 0x1c]
push edx
push 0x44d5c4
push ecx
mov dword [esp + 0x28], esi
call dword [eax]
mov ecx, eax
test ecx, ecx
js 0x41f6ee
mov eax, dword [esp + 0x1c]
test eax, eax
cmovne esi, eax
test esi, esi
setne al
jmp 0x41f70f
mov eax, dword [ebp]
push ecx
push str.Error_0x_X
push ebp
call dword [eax + 0x20]
add esp, 0xc
jmp 0x41f70f
mov eax, dword [ebp]
mov ecx, ebp
push str.Null_pointer_reference
mov eax, dword [eax + 4]
call eax
test al, al
je 0x41f91d
cmp dword [esp + 0x18], 0
mov bl, 1
je 0x41f91f
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x14], 0
call fcn.00408270
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [eax + 0x1c]
mov edi, eax
test edi, edi
jns 0x41f7ad
push str.Get_Rule_Application_Name
push str.COM_error_occurred
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0x441510
push str._s__Message:___s_
push eax
mov dword [esp + 0x50], 0
call fcn.004145f0
add esp, 0x10
test al, al
je 0x41f79a
push 0
push dword [esp + 0x40]
mov ecx, ebp
push edi
call fcn.00414ca0
test al, al
je 0x41f79a
jmp 0x41f79c
xor bl, bl
lea ecx, [esp + 0x3c]
call fcn.00405f20
test bl, bl
je 0x41f88b
lea ecx, [esp + 0x68]
call fcn.00408270
mov eax, dword [esi]
lea ecx, [esp + 0x68]
push ecx
push esi
call dword [eax + 0x2c]
mov edi, eax
test edi, edi
jns 0x41f81c
push str.Get_Rule_Application_Name
push str.COM_error_occurred
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], 0x441510
push str._s__Message:___s_
push eax
mov dword [esp + 0x58], 0
call fcn.004145f0
add esp, 0x10
test al, al
je 0x41f80d
push 0
push dword [esp + 0x48]
mov ecx, ebp
push edi
call fcn.00414ca0
test al, al
je 0x41f80d
mov bl, 1
jmp 0x41f80f
xor bl, bl
lea ecx, [esp + 0x44]
call fcn.00405f20
test bl, bl
je 0x41f88b
lea ecx, [esp + 0x14]
call fcn.00408270
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [eax + 0x44]
mov edi, eax
test edi, edi
jns 0x41f88f
push str.Get_Rule_Application_Name
push str.COM_error_occurred
lea eax, [esp + 0x54]
mov dword [esp + 0x54], 0x441510
push str._s__Message:___s_
push eax
mov dword [esp + 0x60], 0
call fcn.004145f0
add esp, 0x10
test al, al
je 0x41f87c
push 0
push dword [esp + 0x50]
mov ecx, ebp
push edi
call fcn.00414ca0
test al, al
je 0x41f87c
mov bl, 1
jmp 0x41f87e
xor bl, bl
lea ecx, [esp + 0x4c]
call fcn.00405f20
test bl, bl
jne 0x41f88f
xor bl, bl
jmp 0x41f900
mov eax, dword [esp + 0x10]
mov bl, 1
test eax, eax
je 0x41f900
cmp word [eax], 0
je 0x41f900
mov eax, dword [esp + 0x68]
test eax, eax
je 0x41f900
cmp word [eax], 0
je 0x41f900
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41f900
cmp word [eax], 0
je 0x41f900
push 0xa
push 0
push eax
call fcn.0042febc
push dword [esp + 0x78]
mov edi, eax
push dword [esp + 0x78]
call fcn.0040f990
add esp, 0x14
test al, al
je 0x41f900
mov eax, dword [esp + 0x70]
test eax, eax
je 0x41f8f4
push dword [esp + 0x10]
push eax
call fcn.0040f990
add esp, 8
test al, al
je 0x41f900
mov eax, dword [esp + 0x74]
test eax, eax
je 0x41f95f
cmp eax, edi
je 0x41f95f
lea ecx, [esp + 0x14]
call fcn.00408270
lea ecx, [esp + 0x68]
call fcn.00408270
lea ecx, [esp + 0x10]
call fcn.00408270
jmp 0x41f91f
xor bl, bl
test esi, esi
je 0x41f929
mov eax, dword [esi]
push esi
call dword [eax + 8]
test bl, bl
jne 0x41f640
mov edi, dword [esp + 0x28]
test edi, edi
je 0x41f93f
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], vtable.SmartCOMPointer_struct_IUnknown_.0
pop edi
pop esi
pop ebp
test eax, eax
je 0x41f958
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
add esp, 0x54
ret
mov edi, dword [esp + 0x78]
mov ecx, dword [edi + 4]
cmp ecx, esi
je 0x41f979
test ecx, ecx
je 0x41f974
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 4], esi
mov ecx, esi
test ecx, ecx
je 0x41f983
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
lea ecx, [esp + 0x14]
call fcn.00408270
lea ecx, [esp + 0x68]
call fcn.00408270
lea ecx, [esp + 0x10]
call fcn.00408270
test esi, esi
je 0x41f931
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x41f931
mov edi, dword [esp + 0x28]
xor bl, bl
mov dword [esp + 0x18], 1
jmp 0x41f935