Function at 0x65144b20
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x5c
mov dword [ebp - 0x30], eax
mov esi, dword [eax]
mov eax, dword [ecx]
mov dword [ebp - 0x34], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcslen]
xor ecx, ecx
cmp dword [ebp + 8], 1
lea edx, [eax + eax + 2]
mov dword [ebp - 0x2c], edx
ja 0x65144ba0
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp - 0x2c]
add eax, dword [edi]
cmp eax, dword [ebp + 0xc]
jbe 0x65144c69
cmp dword [ebp + 8], 1
je 0x65144d98
cmp dword [ebp + 8], 2
je 0x65144da8
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x7c
xor eax, eax
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x2c]
add dword [edi], eax
mov eax, dword [ebp + 0x10]
add dword [eax], ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x1c], 0
mov edi, 0x1a
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [ebx]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 0x2c]
add eax, 1
sub esp, 0x20
and eax, 0xfffffffe
mov dword [esp + 0xc], 0
mov dword [ebp - 0x3c], eax
add eax, edx
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x38], edx
mov dword [esp + 4], eax
mov eax, dword [0x6515b0c8]
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
mov edx, dword [ebp - 0x38]
sub esp, 0x10
test eax, eax
mov ecx, eax
je 0x65144c52
lea eax, [eax + 0x7fffffff]
lea edi, [eax + eax]
mov dword [ebp - 0x38], edi
mov edi, dword [ebp - 0x1c]
cmp word [edi + eax*2], 0
je 0x65144d80
mov edi, dword [ebp - 0x38]
add ecx, 1
add edi, 0x1e
add edi, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp - 0x2c]
add eax, dword [edi]
cmp eax, dword [ebp + 0xc]
ja 0x65144b5e
mov edi, dword [ebp - 0x34]
mov dword [esi], 1
mov dword [ebp - 0x40], ecx
mov eax, dword [ebx]
mov ecx, dword [edi]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [ebp - 0x38], edx
call sym._memcpy
mov edx, dword [ebp - 0x38]
mov dword [esi + 4], eax
add dword [edi], edx
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 4]
cmp dword [ebp + 8], 1
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov dword [esi + 8], edx
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
jbe 0x65144b5e
mov eax, dword [edi]
mov ecx, dword [ebp - 0x3c]
mov dword [esi + 0x20], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [ebx]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [0x65156890]
add dword [edi], ecx
mov ecx, dword [ebp - 0x40]
sub esp, 0x20
mov dword [esi + 0x24], 2
mov eax, dword [edi]
mov dword [eax], edx
mov edx, dword [0x65156894]
mov dword [eax + 4], edx
mov edx, dword [0x65156898]
mov dword [eax + 8], edx
mov edx, dword [0x6515689c]
mov dword [eax + 0xc], edx
mov edx, dword [0x651568a0]
mov dword [eax + 0x10], edx
mov edx, dword [0x651568a4]
mov dword [eax + 0x14], edx
movzx edx, word [0x651568a8]
mov word [eax + 0x18], dx
mov dword [esi + 0x28], eax
add dword [edi], 0x1a
mov eax, dword [ebx + 0xc]
mov dword [esi + 0x2c], eax
test ecx, ecx
jne 0x65144db8
xor eax, eax
mov dword [esi + 0x30], 0
mov word [esi + 0x34], ax
jmp 0x65144b68
mov edi, dword [ebp - 0x38]
add edi, 0x1c
add edi, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], edi
jmp 0x65144c58
mov eax, 0x20
jmp 0x65144b81
mov eax, 0x38
jmp 0x65144b81
mov ebx, dword [ebp - 0x34]
lea eax, [ecx + ecx - 2]
or dword [esi + 0x24], 4
mov dword [ebp - 0x34], ecx
mov edx, dword [ebx]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], edx
mov dword [esp + 4], eax
call sym._memcpy
mov ecx, dword [ebp - 0x34]
mov dword [esi + 0x30], eax
lea edx, [ecx + 0x7fffffff]
xor ecx, ecx
mov word [eax + edx*2], cx
lea eax, [edx + edx + 2]
add dword [ebx], eax
call dword [sym.imp.kernel32.dll_GetUserDefaultLangID]
mov word [esi + 0x34], ax
jmp 0x65144b68