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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4afcee
push eax
mov dword fs:[0], esp
sub esp, 0xfc
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call sub.MFC42.DLL_AfxGetThread
xor edi, edi
cmp eax, edi
je 0x41f9b5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x41f9b7
xor eax, eax
push eax
push 0x4c4028
call sub.MFC42.DLL_AfxDynamicDownCast
mov esi, eax
mov eax, dword [ebp + 0x10]
add esp, 8
cmp eax, edi
mov dword [esp + 0x14], esi
jle 0x41fa7f
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x114], edi
cmp eax, edi
je 0x41fa2f
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
cmp dword [eax + 8], 1
jne 0x41fa2f
push 0x834
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
push 1
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
mov byte [esp + 0x11c], 0
call fcn.00461070
mov ecx, eax
call fcn.004a70d0
push 0x850
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
push 1
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
mov byte [esp + 0x11c], 0
call fcn.00461070
mov ecx, eax
call fcn.004a70d0
lea ecx, [esp + 0x10]
mov dword [ebp + 0x10], edi
mov dword [esp + 0x114], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x41fa87
mov ecx, dword [ebp + 0x24]
call fcn.0042c5e0
cmp dword [ebp + 0x30], edi
je 0x41fd2a
lea eax, [esp + 0x74]
lea ecx, [esp + 0x74]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ecx
mov ebx, 0xb
mov eax, dword [ebp + 0x2c]
lea ecx, [esp + 0x30]
mov edi, dword [eax]
mov edx, dword [edi + 8]
lea eax, [edi + 0xc]
push eax
mov dword [esp + 0x30], edx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [edi + 0x10]
mov dword [esp + 0x114], 3
push ecx
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [edi + 0x14]
lea eax, [edi + 0x18]
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x118], 4
mov dword [esp + 0x3c], edx
call fcn.004965a0
lea ecx, [edi + 0x34]
mov byte [esp + 0x114], 5
push ecx
lea ecx, [esp + 0x5c]
call fcn.004965a0
lea esi, [edi + 0x50]
lea ecx, [esp + 0x74]
push esi
mov byte [esp + 0x118], 6
call sub.MFC42.DLL_CString::CString_1
lea edx, [esi + 4]
lea ecx, [esp + 0x78]
push edx
mov byte [esp + 0x118], 7
call sub.MFC42.DLL_CString::CString_1
lea eax, [esi + 8]
lea ecx, [esp + 0x7c]
push eax
mov byte [esp + 0x118], 8
call fcn.004965a0
mov ecx, dword [esi + 0x24]
mov byte [esp + 0x114], 9
mov dword [esp + 0x98], ecx
mov edx, dword [esi + 0x28]
lea ecx, [esi + 0x30]
mov dword [esp + 0x9c], edx
mov eax, dword [esi + 0x2c]
push ecx
lea ecx, [esp + 0xa8]
mov dword [esp + 0xa4], eax
call fcn.0041e5d0
mov edx, dword [esi + 0x5c]
mov dword [esp + 0xd0], edx
mov eax, dword [esi + 0x60]
mov dword [esp + 0xd4], eax
mov ecx, dword [esi + 0x64]
mov dword [esp + 0xd8], ecx
add edi, 0xb8
lea ecx, [esp + 0xdc]
push edi
mov byte [esp + 0x118], 0xa
call fcn.0041e5d0
mov eax, dword [ebp + 0x2c]
lea edx, [esp + 0x28]
push 0
push edx
mov eax, dword [eax]
lea ecx, [esp + 0x20]
mov dword [esp + 0x11c], ebx
mov dword [esp + 0x20], eax
call fcn.00449cd0
mov esi, dword [eax]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push 0
mov dword [eax], ecx
mov edx, dword [esi]
mov eax, dword [esi + 4]
lea ecx, [esi + 8]
mov dword [edx + 4], eax
call fcn.00423aa0
push esi
call sub.MFC42.DLL_operatordelete
mov edx, dword [ebp + 0x30]
mov eax, dword [esp + 0x30]
add esp, 4
dec edx
cmp eax, 4
mov dword [ebp + 0x30], edx
jne 0x41fc29
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push 0x804
call fcn.00461090
mov ecx, eax
call fcn.00453050
mov ecx, eax
call fcn.0047ffe0
jmp 0x41fc7a
cmp eax, 2
jne 0x41fc7a
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_1
sub esp, 0x1c
lea eax, [esp + 0x5c]
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
mov byte [esp + 0x138], 0xc
call fcn.004965a0
mov ecx, dword [esp + 0x34]
push 0
mov byte [esp + 0x138], bl
call fcn.00461100
mov ecx, eax
call fcn.00453050
mov ecx, eax
call fcn.00446650
lea ecx, [esp + 0xdc]
mov dword [esp + 0x114], 0x12
call fcn.004534f0
lea ecx, [esp + 0xa4]
mov byte [esp + 0x114], 0x15
call fcn.004534f0
lea ecx, [esp + 0x7c]
mov byte [esp + 0x114], 0x14
call fcn.004966f0
lea ecx, [esp + 0x78]
mov byte [esp + 0x114], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x74]
mov byte [esp + 0x114], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x58]
mov byte [esp + 0x114], 0x10
call fcn.004966f0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x114], 0xf
call fcn.004966f0
lea ecx, [esp + 0x34]
mov byte [esp + 0x114], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov dword [esp + 0x114], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 0x30]
test eax, eax
jne 0x41faa5
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x108
ret