Function at 0x406ff0
Capabilities:
Identify system language via api

Disassembly:
push 0xffffffffffffffff
push 0x414765
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24c
push esi
mov al, byte [0x4207c0]
mov dword [esp + 0x258], 1
test al, al
jne 0x407025
call fcn.004068c0
mov eax, dword [esp + 0x260]
cmp word [eax], 0
je 0x407350
lea ecx, [esp + 0x34]
call fcn.00413e54
lea ecx, [esp + 0x1c]
mov byte [esp + 0x258], 2
call sub.MFC42u.DLL_CException::CException
lea ecx, [esp + 0x2c]
mov byte [esp + 0x258], 3
call sub.MFC42u.DLL_CString::CString_1
push 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x25c], 4
mov dword [esp + 0x20], 0x4162ec
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42u.DLL_CString::operator_2
mov al, byte [esp + 0x268]
mov byte [esp + 0x258], 5
test al, al
je 0x40711a
mov al, byte [0x4207c1]
test al, al
jne 0x40711a
push ecx
lea edx, [esp + 0x268]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call sub.MFC42u.DLL_CString::CString_2
push ecx
lea eax, [esp + 0x268]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
mov byte [esp + 0x264], 6
call sub.MFC42u.DLL_CString::CString_2
push ecx
mov byte [esp + 0x264], 7
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x41e0dc
call fcn.00413dc4
push ecx
mov byte [esp + 0x268], 8
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x41e0d4
call fcn.00413dc4
mov byte [esp + 0x268], 5
call fcn.00406b40
add esp, 0x10
lea ecx, [esp + 4]
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x258], 9
push ecx
call fcn.00407450
mov edx, dword [esp + 0x10]
push 0x4207b8
push edx
mov byte [esp + 0x264], 0xa
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 0xc
test eax, eax
je 0x40716d
mov eax, dword [esp + 0xc]
lea ecx, [esp + 4]
push eax
push str._s_rru.log
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
jmp 0x40717b
push str.z:_rru.log
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::operator_2
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and eax, 0xff
cmp ax, 4
je 0x40719a
cmp ax, 0x11
je 0x40719a
cmp ax, 0x12
jne 0x40719f
mov esi, 0x8000
mov edx, dword [esp + 4]
lea eax, [esp + 0x48]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
mov edx, esi
lea ecx, [esp + 0x1c]
or edx, 0x3001
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
lea ecx, [esp + 0x40]
call sub.MFC42u.DLL_CStdioFile::Open
test eax, eax
jne 0x407209
lea ecx, [esp + 0xc]
mov byte [esp + 0x258], 9
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 4]
mov byte [esp + 0x258], 5
call sub.MFC42u.DLL_CString::CString
mov dword [esp + 0x1c], 0x4162ec
mov byte [esp + 0x258], 0xb
jmp 0x40732e
mov edx, dword [esp + 0x34]
push 2
push 0
lea ecx, [esp + 0x3c]
call dword [edx + 0x30]
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString_1
lea eax, [esp + 0x14]
push 0x41e0b0
lea ecx, [esp + 0x34]
push eax
push ecx
mov byte [esp + 0x264], 0xc
call sub.MFC42u.DLL_CTime::GetTickCount
mov ecx, eax
call sub.MFC42u.DLL_CTime::Format
push 0x41e0ac
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x264], 0xd
call sub.MFC42u.DLL_operator_1
lea ecx, [esp + 0x260]
lea edx, [esp + 0x18]
push ecx
push eax
push edx
mov byte [esp + 0x264], 0xe
call sub.MFC42u.DLL_operator_3
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x25c], 0xf
call fcn.00413dfa
lea ecx, [esp + 0x18]
mov byte [esp + 0x258], 0xe
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x258], 0xd
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x258], 0xc
call sub.MFC42u.DLL_CString::CString
test esi, esi
mov eax, 0x41e0a4
jne 0x4072ca
mov eax, 0x41e0a0
push eax
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::operator
mov eax, dword [esp + 8]
lea ecx, [esp + 0x34]
push eax
call sub.MFC42u.DLL_CStdioFile::WriteString
lea ecx, [esp + 0x34]
call sub.MFC42u.DLL_CStdioFile::Close
lea ecx, [esp + 8]
mov byte [esp + 0x258], 0xa
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x258], 9
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 4]
mov byte [esp + 0x258], 5
call sub.MFC42u.DLL_CString::CString
mov dword [esp + 0x1c], 0x4162ec
mov byte [esp + 0x258], 0x10
lea ecx, [esp + 0x2c]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], 0x4162d8
mov byte [esp + 0x258], 1
call sub.MFC42u.DLL_CStdioFile::CStdioFile
lea ecx, [esp + 0x260]
mov byte [esp + 0x258], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x264]
mov dword [esp + 0x258], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x250]
pop esi
mov dword fs:[0], ecx
add esp, 0x258
ret