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

Disassembly:
push 0xffffffffffffffff
push 0x6871b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x8c]
push str.Advanced
lea eax, [esp + 0x90]
push edi
push eax
call sub.MFC42u.DLL_operator_1
mov ecx, dword [esp + 0x8c]
mov esi, dword [esp + 0x88]
xor ebp, ebp
push ecx
mov ecx, esi
mov dword [esp + 0x84], ebp
call fcn.00452b00
test eax, eax
mov ebx, 1
jne 0x51c5c9
push str.Custom
lea edx, [esp + 0x8c]
push edi
push edx
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0x84], bl
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x88]
mov byte [esp + 0x80], 0
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x8c]
push ebp
push str.Name
lea ecx, [esp + 0x90]
push eax
push ecx
mov ecx, esi
call fcn.004513e0
mov edi, dword [esp + 0x94]
push eax
mov byte [esp + 0x84], 2
lea ecx, [edi + 0x58]
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x88]
mov byte [esp + 0x80], 0
call sub.MFC42u.DLL_CString::CString
lea edx, [esp + 0x8c]
push edx
push esi
call fcn.0051d330
add esp, 8
mov dword [edi + 0x5c], eax
mov eax, dword [esp + 0x8c]
mov ecx, esi
push ebp
push str.IgnoreDone
push eax
call fcn.00451120
mov ecx, dword [esp + 0x8c]
push ebp
push str.IgnoreOverDue
push ecx
mov ecx, esi
mov dword [edi + 0x28], eax
call fcn.00451120
mov edx, dword [esp + 0x8c]
push ebp
push str.WantAllSubtasks
push edx
mov ecx, esi
mov dword [edi + 0x2c], eax
call fcn.00451120
mov dword [edi + 0x30], eax
mov eax, dword [esp + 0x8c]
push ebp
push str.NumRules
push eax
mov ecx, esi
call fcn.00451120
mov dword [esp + 0x94], ebp
or ebp, 0xffffffff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebp
call sub.MFC42u.DLL_CString::CString_5
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], 3
mov dword [esp + 0x20], ebp
call sub.MFC42u.DLL_CString::CString_5
xor eax, eax
push ebp
push ebp
lea ecx, [esp + 0x20]
mov byte [esp + 0x88], 4
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ebp
call fcn.004c7080
lea ecx, [esp + 0x4c]
mov byte [esp + 0x80], 5
mov dword [esp + 0x48], ebp
call sub.MFC42u.DLL_CString::CString_5
mov byte [esp + 0x80], 6
lea ecx, [esp + 0x54]
mov dword [esp + 0x50], ebp
call sub.MFC42u.DLL_CString::CString_5
xor eax, eax
push ebp
push ebp
lea ecx, [esp + 0x50]
mov byte [esp + 0x88], 7
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ebp
call fcn.004c7080
mov eax, dword [esp + 0x14]
xor ebp, ebp
test eax, eax
mov byte [esp + 0x80], 8
jle 0x51c967
push str.Rule_d
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_6
mov ecx, dword [esp + 0x8c]
lea edx, [esp + 0x10]
push ecx
push ebp
lea eax, [esp + 0x90]
push edx
push eax
mov byte [esp + 0x90], 9
call fcn.0041b6e0
add esp, 0x10
lea ecx, [esp + 0x10]
mov byte [esp + 0x80], 0xb
call sub.MFC42u.DLL_CString::CString
mov edx, dword [esp + 0x90]
lea ecx, [esp + 0x18]
push ecx
lea eax, [esp + 0x8c]
push edx
push eax
push esi
call fcn.005bd440
add esp, 0x10
test eax, eax
je 0x51c953
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004a1b30
mov edx, dword [esp + 0x4c]
mov ebx, eax
push edx
call fcn.004a1b30
add esp, 8
cmp ebx, eax
jne case.default.0x51c853
mov eax, dword [esp + 0x18]
push eax
call fcn.004a1b30
add esp, 4
test eax, eax
je 0x51c803
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne case.default.0x51c853
jmp 0x51c80f
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
cmp eax, ecx
jne case.default.0x51c853
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x50]
cmp ecx, eax
jne case.default.0x51c853
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x68]
cmp edx, eax
jne case.default.0x51c853
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x6c]
cmp ecx, eax
jne case.default.0x51c853
mov eax, dword [esp + 0x40]
cmp eax, 0xffffffff
jne 0x51c84e
mov eax, dword [esp + 0x18]
push ecx
push eax
call fcn.004f6090
add esp, 8
mov dword [esp + 0x40], eax
cmp eax, 9
ja case.default.0x51c853
jmp dword [eax*4 + 0x51c9d8]
fld qword [esp + 0x30]
fcomp qword [esp + 0x60]
fnstsw ax
test ah, 0x40
jne case.0x51c853.4
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
mov dword [esp + 0x48], ecx
push edx
lea ecx, [esp + 0x50]
mov dword [esp + 0x98], 0
call sub.MFC42u.DLL_CString::operator_2
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0x54], eax
call sub.MFC42u.DLL_CString::operator_2
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
mov eax, dword [edi + 8]
lea edx, [esp + 0x18]
push edx
push eax
mov ecx, edi
call fcn.004fdaf0
lea ecx, [esp + 0x88]
mov byte [esp + 0x80], 8
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x14]
inc ebp
cmp ebp, eax
jl 0x51c74d
jmp 0x51c967
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x58]
xor eax, eax
cmp ecx, edx
sete al
jmp 0x51c935
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x24]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
sete al
and eax, 0xff
test eax, eax
je case.default.0x51c853
mov eax, dword [esp + 0x94]
inc eax
cmp eax, 2
mov dword [esp + 0x94], eax
jg 0x51c953
jmp 0x51c8d4
lea ecx, [esp + 0x88]
mov byte [esp + 0x80], 8
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x54]
mov byte [esp + 0x80], 0xc
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0x80], 5
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], 0xd
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x80], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x8c]
mov dword [esp + 0x80], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret