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

Disassembly:
push 0xffffffffffffffff
push 0x414171
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [0x4205bc]
push ebx
push ebp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x64]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x64]
mov dword [esi + 8], eax
mov eax, dword [ecx + 4]
mov ecx, dword [eax]
cmp ecx, eax
push edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x14], ecx
je 0x406c83
mov edi, dword [esp + 0x14]
add edi, 8
mov ecx, edi
call fcn.0040f68f
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
xor ebp, ebp
push str.Trying
lea ecx, [esp + 0x34]
mov dword [esp + 0x64], ebp
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
push ecx
mov edx, esp
mov dword [esp + 0x14], esp
lea ecx, [esp + 0x24]
push ecx
push eax
push edx
mov byte [esp + 0x70], 1
call fcn.00401680
add esp, 0xc
call fcn.004060b0
add esp, 4
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x20]
mov dword [esp + 0x60], 0xffffffff
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov esi, dword [esi + 4]
mov eax, dword [esi + 0xa8]
cmp eax, ebp
je 0x406a66
mov ecx, dword [eax + 0x14]
cmp ecx, ebp
je 0x406a66
cmp eax, ebp
je 0x406a4e
mov ebp, ecx
mov ebx, dword [ebp]
mov ecx, edi
call fcn.0040f68f
push eax
mov ecx, ebp
call dword [ebx + 0x4c]
test al, al
je 0x406c0c
mov eax, dword [esi + 0xa8]
test eax, eax
je 0x406c62
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x406c44
mov edx, dword [ecx]
push edi
call dword [edx]
mov ebx, eax
test ebx, ebx
je 0x406c46
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.bOKtrue
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
call fcn.004060b0
mov ecx, dword [edi]
mov eax, dword [esi + 0xa8]
mov dword [eax], ecx
mov edx, dword [esi + 0x50]
add esp, 4
push edx
lea ecx, [esp + 0x70]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
push 0x20
lea ecx, [esp + 0x70]
mov dword [esp + 0x64], 2
call dword [sym.imp.MFC71U.DLL_COleClientItem::Reload]
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_void_]
push 0x417610
lea ecx, [esp + 0x20]
mov byte [esp + 0x64], 3
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
push 0x417610
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 4
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x6c], 5
call fcn.00401680
mov edi, eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0x78], 6
call fcn.00401680
mov ebp, eax
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x7c], 7
call fcn.00406250
mov ecx, dword [esi + 0xa8]
mov edx, dword [esp + 0x88]
mov ecx, dword [ecx]
mov edi, dword [edi]
mov ebp, dword [ebp]
mov eax, dword [eax]
push edx
push ecx
push edi
push ebp
push eax
lea eax, [esp + 0x68]
push eax
mov byte [esp + 0x94], 8
call fcn.0040fb82
add esp, 0x34
lea ecx, [esp + 0x24]
mov edi, eax
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x34]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
test edi, edi
je 0x406be7
mov eax, dword [esi + 0x64]
test eax, eax
je 0x406bcb
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov dword [esi + 0x64], 0
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x406bda
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.MSVCR71.dll__wcsdup]
add esp, 4
mov dword [esi + 0x64], eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x60], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x60], 0xffffffff
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
test ebx, ebx
jne 0x406c62
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.Setting_this_language_failed
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
call fcn.004060b0
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [esp + 0x6c]
mov ecx, dword [edx + 4]
add esp, 4
cmp eax, ecx
mov dword [esp + 0x14], eax
je 0x406c83
mov esi, dword [esp + 0x28]
jmp 0x4069c7
xor ebx, ebx
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.bOKfalse
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
call fcn.004060b0
add esp, 4
jmp 0x406c08
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.Setting_this_language_succeeded
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
call fcn.004060b0
add esp, 4
mov eax, 1
jmp 0x406c85
xor eax, eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x54]
call fcn.00413187
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8