Function at 0x404f80
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409598
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x5c], esi
lea eax, [ebp + 8]
xor edi, edi
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call fcn.004088f2
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp dword [ecx - 8], edi
je 0x405411
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and eax, 0xffff
cmp eax, 0x412
jg 0x405136
je 0x4050d3
sub eax, 0x409
je 0x405070
mov ebx, 8
sub eax, ebx
jne 0x40513d
lea edx, [esi + 0x344]
lea ecx, [ebp - 0x1c]
push edx
call sub.MFC42.DLL_CString::operator
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x60], esp
push eax
call fcn.004088f2
lea ecx, [ebp - 0x24]
push ecx
mov ecx, esi
call fcn.004056b0
push eax
lea edx, [esi + 0x354]
lea eax, [ebp - 0x28]
push edx
push eax
mov byte [ebp - 4], bl
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
jmp 0x4051fb
lea ecx, [esi + 0x34c]
push ecx
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::operator
push ecx
lea edx, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x60], esp
push edx
call fcn.004088f2
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.004056b0
lea ecx, [esi + 0x35c]
push eax
lea edx, [ebp - 0x30]
mov bl, 6
push ecx
push edx
mov byte [ebp - 4], bl
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
jmp 0x4051fb
lea eax, [esi + 0x350]
lea ecx, [ebp - 0x1c]
push eax
call sub.MFC42.DLL_CString::operator
push ecx
lea edx, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x60], esp
push edx
call fcn.004088f2
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
call fcn.004056b0
lea ecx, [esi + 0x360]
push eax
lea edx, [ebp - 0x38]
mov bl, 0xa
push ecx
push edx
mov byte [ebp - 4], bl
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3c]
jmp 0x4051fb
cmp eax, 0x804
je 0x40519d
lea eax, [esi + 0x34c]
lea ecx, [ebp - 0x1c]
push eax
call sub.MFC42.DLL_CString::operator
push ecx
lea edx, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x60], esp
push edx
call fcn.004088f2
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
call fcn.004056b0
lea ecx, [esi + 0x35c]
push eax
lea edx, [ebp - 0x40]
mov bl, 0xc
push ecx
push edx
mov byte [ebp - 4], bl
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
jmp 0x4051fb
lea eax, [esi + 0x348]
lea ecx, [ebp - 0x1c]
push eax
call sub.MFC42.DLL_CString::operator
push ecx
lea edx, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x60], esp
push edx
call fcn.004088f2
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
call fcn.004056b0
lea ecx, [esi + 0x358]
push eax
lea edx, [ebp - 0x48]
mov bl, 4
push ecx
push edx
mov byte [ebp - 4], bl
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2c]
call fcn.00402270
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x24], edi
cmp dword [ebp - 0x24], 0xf
jge 0x405441
push ecx
mov bl, 0x10
mov ecx, esp
mov dword [ebp - 0x60], esp
push 0x40fa48
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString_1
push ecx
mov byte [ebp - 4], 0x11
mov ecx, esp
mov dword [ebp - 0x4c], esp
push 0x40fa48
call sub.MFC42.DLL_CString::CString_1
push ecx
mov byte [ebp - 4], 0x12
mov ecx, esp
mov dword [ebp - 0x48], esp
push 0x40fa48
call sub.MFC42.DLL_CString::CString_1
push ecx
mov byte [ebp - 4], 0x13
mov ecx, esp
mov dword [ebp - 0x44], esp
push 0x40fa48
call sub.MFC42.DLL_CString::CString_1
push ecx
mov byte [ebp - 4], 0x14
mov ecx, esp
mov dword [ebp - 0x40], esp
push 0x40f574
call sub.MFC42.DLL_CString::CString_1
push 0x50
push ecx
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
mov byte [ebp - 4], 0x15
call fcn.004088f2
push ecx
lea edx, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x38], esp
push edx
mov byte [ebp - 4], 0x16
call fcn.004088f2
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x2c]
push eax
mov byte [ebp - 4], bl
call fcn.00402290
test eax, eax
jne 0x4052d6
lea ecx, [ebp - 0x50]
push 0x40cf10
push ecx
mov dword [ebp - 0x50], 1
call sub.MSVCRT.dll__CxxThrowException
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x20]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x60], esp
push eax
call fcn.004088f2
mov ecx, esi
call fcn.00405e70
test eax, eax
jne 0x405309
lea ecx, [ebp - 0x54]
push 0x40cf10
push ecx
mov dword [ebp - 0x54], 2
call sub.MSVCRT.dll__CxxThrowException
push ecx
lea edx, [esi + 0x340]
mov eax, esp
mov dword [ebp - 0x60], esp
push edx
push 0x40f570
push eax
call sub.MFC42.DLL_operator_1
push ecx
lea edx, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x4c], esp
push edx
mov byte [ebp - 4], 0x17
call fcn.004088f2
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.004054b0
test eax, eax
jne 0x405441
lea eax, [ebp - 0x58]
push 0x40cf10
push eax
mov dword [ebp - 0x58], 3
call sub.MSVCRT.dll__CxxThrowException
mov esi, dword [ebp - 0x34]
cmp esi, 1
jne 0x40537e
cmp dword [ebp - 0x24], 0xe
jge 0x40537e
mov eax, 0x40536f
ret
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString_2
mov bl, 0x19
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString_2
push 5
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x1a
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [ebp - 0x28]
push esi
push ecx
lea edx, [ebp - 0x24]
push 0x40f568
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp - 0x24]
add esp, 0x10
push 0
push 0
push eax
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x18
call sub.MFC42.DLL_CString::CString
mov eax, 0x4053e1
ret
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00402280
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4