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

Disassembly:
push 0xffffffffffffffff
push 0x413ca1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [0x4205ac]
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 0x406623
mov edi, dword [esp + 0x14]
add edi, 8
mov ecx, edi
call fcn.0040f1df
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.00405a40
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 0x406406
mov ecx, dword [eax + 0x14]
cmp ecx, ebp
je 0x406406
cmp eax, ebp
je 0x4063ee
mov ebp, ecx
mov ebx, dword [ebp]
mov ecx, edi
call fcn.0040f1df
push eax
mov ecx, ebp
call dword [ebx + 0x4c]
test al, al
je 0x4065ac
mov eax, dword [esi + 0xa8]
test eax, eax
je 0x406602
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4065e4
mov edx, dword [ecx]
push edi
call dword [edx]
mov ebx, eax
test ebx, ebx
je 0x4065e6
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.00405a40
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 0x41761c
lea ecx, [esp + 0x20]
mov byte [esp + 0x64], 3
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
push 0x41761c
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.00405be0
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.0040f6d2
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 0x406587
mov eax, dword [esi + 0x64]
test eax, eax
je 0x40656b
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 0x40657a
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 0x406602
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.00405a40
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 0x406623
mov esi, dword [esp + 0x28]
jmp 0x406367
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.00405a40
add esp, 4
jmp 0x4065a8
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.00405a40
add esp, 4
mov eax, 1
jmp 0x406625
xor eax, eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x54]
call fcn.00412cbe
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8