Function at 0x41d570
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 0x41d58c
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 0x41d61f
push 0x44b1e0
push str.COM_error_occurred
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x442970
push str._s__Message:___s_
push eax
mov dword [esp + 0x30], edi
call fcn.0040b9e0
add esp, 0x10
test al, al
je 0x41d60c
push edi
lea ecx, [esp + 0x20]
call fcn.0040baf0
push eax
push esi
mov ecx, ebp
call fcn.00404f00
test al, al
je 0x41d60c
mov bl, 1
jmp 0x41d60e
xor bl, bl
lea ecx, [esp + 0x1c]
call fcn.0040b370
test bl, bl
je 0x41d9ad
push ebp
push dword [esp + 0x34]
lea ecx, [esp + 0x2c]
call fcn.0041d4f0
test al, al
je 0x41d9a9
mov bl, 1
mov dword [esp + 0x18], 1
nop
cmp dword [esp + 0x18], 0
je 0x41d930
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 0x41d6c3
push str.Get_Next_Rule
push str.COM_error_occurred
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0x442970
push str._s__Message:___s_
push eax
mov dword [esp + 0x48], esi
call fcn.0040b9e0
add esp, 0x10
test al, al
je 0x41d6b0
push esi
lea ecx, [esp + 0x38]
call fcn.0040baf0
push eax
push edi
mov ecx, ebp
call fcn.00404f00
test al, al
je 0x41d6b0
mov bl, 1
jmp 0x41d6b2
xor bl, bl
lea ecx, [esp + 0x34]
call fcn.0040b370
test bl, bl
je 0x41d91c
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x41d706
mov eax, dword [ecx]
lea edx, [esp + 0x1c]
push edx
push 0x44b584
push ecx
mov dword [esp + 0x28], esi
call dword [eax]
mov ecx, eax
test ecx, ecx
js 0x41d6f4
mov eax, dword [esp + 0x1c]
test eax, eax
cmovne esi, eax
test esi, esi
setne al
jmp 0x41d717
mov eax, dword [ebp]
push ecx
push str.Error_0x_X
push ebp
call dword [eax + 0x1c]
add esp, 0xc
jmp 0x41d717
mov eax, dword [ebp]
mov ecx, ebp
push 0
push str.Null_pointer_reference
mov eax, dword [eax + 4]
call eax
test al, al
je 0x41d91c
cmp dword [esp + 0x18], 0
mov bl, 1
je 0x41d91e
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x1c], 0
call dword [eax + 0x1c]
mov edi, eax
test edi, edi
jns 0x41d7b2
push str.Get_Rule_Application_Name
push str.COM_error_occurred
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0x442970
push str._s__Message:___s_
push eax
mov dword [esp + 0x50], 0
call fcn.0040b9e0
add esp, 0x10
test al, al
je 0x41d79f
push 0
lea ecx, [esp + 0x40]
call fcn.0040baf0
push eax
push edi
mov ecx, ebp
call fcn.00404f00
test al, al
je 0x41d79f
jmp 0x41d7a1
xor bl, bl
lea ecx, [esp + 0x3c]
call fcn.0040b370
test bl, bl
je 0x41d88a
mov eax, dword [esi]
lea ecx, [esp + 0x68]
push ecx
push esi
call dword [eax + 0x2c]
mov edi, eax
test edi, edi
jns 0x41d81e
push str.Get_Rule_Application_Name
push str.COM_error_occurred
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], 0x442970
push str._s__Message:___s_
push eax
mov dword [esp + 0x58], 0
call fcn.0040b9e0
add esp, 0x10
test al, al
je 0x41d80f
push 0
lea ecx, [esp + 0x48]
call fcn.0040baf0
push eax
push edi
mov ecx, ebp
call fcn.00404f00
test al, al
je 0x41d80f
mov bl, 1
jmp 0x41d811
xor bl, bl
lea ecx, [esp + 0x44]
call fcn.0040b370
test bl, bl
je 0x41d88a
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [eax + 0x44]
mov edi, eax
test edi, edi
jns 0x41d88e
push str.Get_Rule_Application_Name
push str.COM_error_occurred
lea eax, [esp + 0x54]
mov dword [esp + 0x54], 0x442970
push str._s__Message:___s_
push eax
mov dword [esp + 0x60], 0
call fcn.0040b9e0
add esp, 0x10
test al, al
je 0x41d87b
push 0
lea ecx, [esp + 0x50]
call fcn.0040baf0
push eax
push edi
mov ecx, ebp
call fcn.00404f00
test al, al
je 0x41d87b
mov bl, 1
jmp 0x41d87d
xor bl, bl
lea ecx, [esp + 0x4c]
call fcn.0040b370
test bl, bl
jne 0x41d88e
xor bl, bl
jmp 0x41d8ff
mov eax, dword [esp + 0x10]
mov bl, 1
test eax, eax
je 0x41d8ff
cmp word [eax], 0
je 0x41d8ff
mov eax, dword [esp + 0x68]
test eax, eax
je 0x41d8ff
cmp word [eax], 0
je 0x41d8ff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41d8ff
cmp word [eax], 0
je 0x41d8ff
push 0xa
push 0
push eax
call fcn.0042f197
push dword [esp + 0x78]
mov edi, eax
push dword [esp + 0x78]
call fcn.0040a6b0
add esp, 0x14
test al, al
je 0x41d8ff
mov eax, dword [esp + 0x70]
test eax, eax
je 0x41d8f3
push dword [esp + 0x10]
push eax
call fcn.0040a6b0
add esp, 8
test al, al
je 0x41d8ff
mov eax, dword [esp + 0x74]
test eax, eax
je 0x41d95e
cmp eax, edi
je 0x41d95e
lea ecx, [esp + 0x14]
call fcn.004081a0
lea ecx, [esp + 0x68]
call fcn.004081a0
lea ecx, [esp + 0x10]
call fcn.004081a0
jmp 0x41d91e
xor bl, bl
test esi, esi
je 0x41d928
mov eax, dword [esi]
push esi
call dword [eax + 8]
test bl, bl
jne 0x41d640
mov edi, dword [esp + 0x28]
test edi, edi
je 0x41d93e
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 0x41d957
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 0x41d978
test ecx, ecx
je 0x41d973
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 4], esi
mov ecx, esi
test ecx, ecx
je 0x41d982
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
lea ecx, [esp + 0x14]
call fcn.004081a0
lea ecx, [esp + 0x68]
call fcn.004081a0
lea ecx, [esp + 0x10]
call fcn.004081a0
test esi, esi
je 0x41d930
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x41d930
mov edi, dword [esp + 0x28]
xor bl, bl
mov dword [esp + 0x18], 1
jmp 0x41d934