Function at 0x10004b60
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x3c
mov dword [ebp - 0x18], eax
mov esi, dword [eax]
mov eax, dword [ecx]
mov dword [ebp - 0x1c], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcslen]
cmp dword [ebp + 8], 1
lea edx, [eax + eax + 2]
mov dword [ebp - 0x14], edx
ja 0x10004be0
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0
xor ecx, ecx
add eax, dword [edi]
cmp eax, dword [ebp + 0xc]
jbe 0x10004ca9
cmp dword [ebp + 8], 1
je 0x10004dd8
cmp dword [ebp + 8], 2
je 0x10004de8
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x7c
xor eax, eax
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
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 - 0x14]
add eax, 1
sub esp, 0x20
and eax, 0xfffffffe
mov dword [esp + 0xc], 0
mov dword [ebp - 0x20], eax
add eax, edx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x24], edx
mov dword [esp + 4], eax
mov eax, dword [0x1001b0c8]
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
mov edx, dword [ebp - 0x24]
sub esp, 0x10
test eax, eax
mov ecx, eax
je 0x10004c92
lea eax, [eax + 0x7fffffff]
lea edi, [eax + eax]
mov dword [ebp - 0x24], edi
mov edi, dword [ebp - 0x10]
cmp word [edi + eax*2], 0
je 0x10004dc0
mov edi, dword [ebp - 0x24]
add ecx, 1
add edi, 0x1e
add edi, dword [ebp - 0x14]
mov dword [ebp - 0x14], edi
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
add eax, dword [edi]
cmp eax, dword [ebp + 0xc]
ja 0x10004ba5
mov edi, dword [ebp - 0x1c]
mov dword [esi], 1
mov dword [ebp - 0x28], 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 - 0x24], edx
call sym._memcpy
mov edx, dword [ebp - 0x24]
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 0x10004ba5
mov eax, dword [edi]
mov ecx, dword [ebp - 0x20]
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 - 0x20]
mov edx, dword [0x10016890]
add dword [edi], ecx
mov ecx, dword [ebp - 0x28]
sub esp, 0x20
mov dword [esi + 0x24], 2
mov eax, dword [edi]
mov dword [eax], edx
mov edx, dword [0x10016894]
mov dword [eax + 4], edx
mov edx, dword [0x10016898]
mov dword [eax + 8], edx
mov edx, dword [0x1001689c]
mov dword [eax + 0xc], edx
mov edx, dword [0x100168a0]
mov dword [eax + 0x10], edx
mov edx, dword [0x100168a4]
mov dword [eax + 0x14], edx
movzx edx, word [0x100168a8]
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 0x10004df8
xor eax, eax
mov dword [esi + 0x30], 0
mov word [esi + 0x34], ax
jmp 0x10004baf
mov edi, dword [ebp - 0x24]
add edi, 0x1c
add edi, dword [ebp - 0x14]
mov dword [ebp - 0x14], edi
jmp 0x10004c98
mov eax, 0x20
jmp 0x10004bc8
mov eax, 0x38
jmp 0x10004bc8
mov ebx, dword [ebp - 0x1c]
lea eax, [ecx + ecx - 2]
or dword [esi + 0x24], 4
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebx]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], edx
mov dword [esp + 4], eax
call sym._memcpy
mov ecx, dword [ebp - 0x1c]
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 0x10004baf