Function at 0x651433d0
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 - 0x2c], eax
mov esi, dword [eax]
mov eax, dword [ecx]
mov dword [ebp - 0x30], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcslen]
cmp dword [ebp + 8], 1
lea ecx, [eax + eax + 2]
mov edx, ecx
ja 0x65143440
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, edx
cmp eax, dword [ebp + 0xc]
jbe 0x65143501
cmp dword [ebp + 8], 1
je 0x65143620
cmp dword [ebp + 8], 2
je 0x65143630
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x7c
xor eax, eax
mov ebx, dword [ebp - 0x2c]
add dword [ebx], eax
mov eax, dword [ebp + 0x10]
add dword [eax], edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x1c], 0
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 [ebp - 0x34], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0x34]
inc eax
sub esp, 0x20
and eax, 0xfffffffe
mov dword [esp + 0xc], 0
mov dword [ebp - 0x40], eax
add eax, ecx
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x38], ecx
mov dword [esp + 4], eax
mov eax, dword [0x65157120]
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
mov ecx, dword [ebp - 0x38]
mov edx, 0x1a
sub esp, 0x10
test eax, eax
mov dword [ebp - 0x3c], eax
je 0x651434ee
mov edi, dword [ebp - 0x1c]
lea edx, [eax + 0x7fffffff]
lea eax, [edx + edx]
cmp word [edi + edx*2], 0
je 0x65143610
inc dword [ebp - 0x3c]
lea edx, [eax + 0x1e]
add edx, dword [ebp - 0x34]
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, edx
cmp eax, dword [ebp + 0xc]
ja 0x6514340a
mov edi, dword [ebp - 0x30]
mov dword [esi], 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebx]
mov edx, dword [edi]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], edx
mov dword [ebp - 0x34], ecx
call sym._memcpy
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov dword [esi + 4], eax
add dword [edi], ecx
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
cmp dword [ebp + 8], 1
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov dword [esi + 8], ecx
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], eax
jbe 0x6514340a
mov eax, dword [edi]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x34], edx
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 - 0x40]
add dword [edi], ecx
xor ecx, ecx
mov dword [esi + 0x24], 2
mov eax, dword [edi]
sub esp, 0x20
mov edx, dword [ebp - 0x34]
mov dword [eax], 0x6f006c
mov dword [eax + 4], 0x610063
mov dword [eax + 8], 0x73006c
mov dword [eax + 0xc], 0x6c0070
mov dword [eax + 0x10], 0x64002e
mov dword [eax + 0x14], 0x6c006c
mov word [eax + 0x18], cx
mov dword [esi + 0x28], eax
add dword [edi], 0x1a
mov eax, dword [ebx + 0xc]
mov ebx, dword [ebp - 0x3c]
mov dword [esi + 0x2c], eax
test ebx, ebx
jne 0x65143640
xor eax, eax
mov dword [esi + 0x30], 0
mov word [esi + 0x34], ax
jmp 0x65143414
lea edx, [eax + 0x1c]
add edx, dword [ebp - 0x34]
jmp 0x651434f1
mov eax, 0x20
jmp 0x6514342d
mov eax, 0x38
jmp 0x6514342d
mov edi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x30]
or dword [esi + 0x24], 4
lea eax, [edi + edi - 2]
mov ecx, dword [ebx]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], ecx
mov dword [esp + 4], eax
call sym._memcpy
lea ecx, [edi + 0x7fffffff]
xor edx, edx
mov dword [esi + 0x30], eax
mov word [eax + ecx*2], dx
lea eax, [ecx + ecx + 2]
add dword [ebx], eax
call dword [sym.imp.kernel32.dll_GetUserDefaultLangID]
mov edx, dword [ebp - 0x34]
mov word [esi + 0x34], ax
jmp 0x65143414