Function at 0x140035510
Capabilities:
Get geographical location
Identify system language via api
Read .ini file

Disassembly:
push rbx
sub rsp, 0x400
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1400c2038]
xor rax, rsp
mov qword [rsp + 0x3f0], rax
lea rdx, [0x14008ac97]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc90u.dll_ATL::CStringT_char_class_StrTraitMFC_DLL_char_class_ATL::ChTraitsCRT_char_____::CStringT_char_class_StrTraitMFC]
nop
mov byte [rsp + 0xc0], 0
xor edx, edx
mov r8d, ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > >::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > >
lea rcx, [rsp + 0xc1]
call sub.MSVCR90.dll_memset
mov r8d, ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > >::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > >
lea rdx, [rsp + 0xc0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
movsxd rcx, eax
mov byte [rsp + rcx + 0xc0], 0
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc90u.dll_new]
mov dl, 0x5c
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc90u.dll_COleIPFrameWnd::PreTranslateMessage]
mov r8d, eax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc90u.dll_CHtmlEditDoc::GetView]
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc90u.dll_CWinThread::CWinThread]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc90u.dll_CWinApp::CWinApp]
lea r8, [0x14008ee14]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.1400359a0
nop
lea r8, str.skindlg.ini
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400359a0
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc90u.dll_CWinThread::CWinThread]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc90u.dll_CWinApp::CWinApp]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc90u.dll_CWinApp::CWinApp]
mov byte [rsp + 0x1f0], 0
xor edx, edx
mov r8d, 0x1f3
lea rcx, [rsp + 0x1f1]
call sub.MSVCR90.dll_memset
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc90u.dll_CRecordset::FlushResultSet]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1f4
lea r9, [rsp + 0x1f0]
lea r8, [0x14008ac97]
lea rdx, str.auto
lea rcx, str.main
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x14003579e
lea rdx, [rsp + 0x1f0]
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc90u.dll_ATL::CStringT_char_class_StrTraitMFC_DLL_char_class_ATL::ChTraitsCRT_char_____::CStringT_char_class_StrTraitMFC]
nop
mov rcx, rax
call qword [sym.imp.mfc90u.dll_COleControlSite::XOleIPSite::SetFocus]
mov rcx, qword [rax]
call qword [sym.imp.MSVCR90.dll_atoi]
mov ebx, eax
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc90u.dll_CWinApp::CWinApp]
test ebx, ebx
je 0x14003579e
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ebx, ax
mov ecx, ebx
mov r9d, 0x55
lea r8, [rsp + 0x60]
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1400356f6
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc90u.dll_CWinApp::CWinApp]
jmp 0x1400357a9
mov eax, 0x404
cmp ax, bx
jne 0x140035719
lea rcx, [rsp + 0x60]
movzx eax, word [0x140094b24]
mov word [rcx], ax
movzx eax, byte [0x140094b26]
mov byte [rcx + 2], al
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc90u.dll_ATL::CStringT_char_class_StrTraitMFC_DLL_char_class_ATL::ChTraitsCRT_char_____::CStringT_char_class_StrTraitMFC]
nop
mov rcx, rax
call qword [sym.imp.mfc90u.dll_COleControlSite::XOleIPSite::SetFocus]
mov rdx, rax
lea rcx, [rsp + 0x48]
call qword [0x140089fd8]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc90u.dll_CWinApp::CWinApp]
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc90u.dll_CRecordset::FlushResultSet]
mov rbx, rax
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc90u.dll_CRecordset::FlushResultSet]
mov r8, rax
mov r9, rbx
lea rdx, str.langCode
lea rcx, str.main
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc90u.dll_CWinApp::CWinApp]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc90u.dll_CWinApp::CWinApp]
jmp 0x1400357a9
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc90u.dll_CWinApp::CWinApp]
mov rcx, qword [rsp + 0x3f0]
xor rcx, rsp
call fcn.140077470
add rsp, 0x400
pop rbx
ret