Function at 0x52b2a0
Capabilities:
Check for peb ntglobalflag flag
Get keyboard layout
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x731398
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov al, byte [ebp - 0xd]
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x18], ebx
lea ecx, [ebx + 8]
mov byte [ebx + 4], al
call fcn.0052f0a0
xor edi, edi
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x24], edi
mov dword [ebx + 0x28], edi
mov dword [ebx + 0x2c], edi
mov dword [ebx + 0x30], edi
mov cl, byte [ebp - 0xd]
mov dword [ebx + 0x34], edi
mov dword [ebx + 0x38], edi
mov dword [ebx + 0x3c], edi
mov dword [ebx + 0x40], edi
mov dword [ebp - 4], edi
mov byte [ebx + 0x44], cl
mov dword [ebx + 0x48], edi
mov dword [ebx + 0x4c], edi
mov dword [ebx + 0x50], edi
mov dl, byte [ebp - 0xd]
lea ecx, [ebx + 0x54]
push edi
mov byte [ebp - 4], 1
mov byte [ecx], dl
call fcn.00420200
mov al, byte [ebp - 0xd]
lea ecx, [ebx + 0x70]
mov dword [ebx + 0x68], edi
mov dword [ebx + 0x6c], edi
push edi
mov byte [ebp - 4], 2
mov byte [ecx], al
call fcn.00420200
mov dl, byte [ebp - 0xd]
lea ecx, [ebx + 0x80]
push edi
mov byte [ebp - 4], 3
mov byte [ecx], dl
call fcn.00420200
push edi
mov byte [ebp - 4], 4
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov word [ebx + 0x96], ax
mov al, byte [ebp - 0xd]
lea esi, [ebx + 0xa4]
mov dword [ebx + 0x9c], edi
mov dword [ebx + 0xa0], edi
push edi
mov ecx, esi
mov byte [esi], al
call fcn.00420200
mov edi, 0x7c1a4c
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov ecx, esi
push edi
mov dword [ebp - 0x14], edi
call fcn.004219e0
test al, al
je 0x52b3c0
mov eax, dword [esi + 4]
mov ecx, edi
mov edx, ecx
mov esi, 0x7c1a4c
mov edi, eax
mov eax, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx + 0xa4]
call fcn.004219c0
mov dword [ebx], 0x742e20
mov al, byte [0x814245]
test al, al
mov byte [ebp - 4], 5
je 0x52b3eb
mov ax, word [ebx + 0x96]
push eax
call fcn.0052ae50
push eax
call fcn.0052af50
add esp, 8
jmp 0x52b3f0
mov eax, dword [0x814238]
mov dword [ebx + 0x98], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and eax, 0x3ff
add eax, 0xfffffff9
cmp eax, 0x18
ja case.0x52b415.11
xor ecx, ecx
mov cl, byte [eax + 0x52b610]
jmp dword [ecx*4 + 0x52b5fc]
mov edi, 0x770a78
or ecx, 0xffffffff
xor eax, eax
mov word [ebx + 0xb4], 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
lea ecx, [ebx + 0xa4]
push esi
mov dword [ebp - 0x14], esi
call fcn.004219e0
test al, al
je 0x52b5d3
mov edi, dword [ebx + 0xa8]
mov ecx, esi
lea eax, [ebx + 0xa4]
mov edx, ecx
mov esi, 0x770a78
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
push ecx
mov ecx, eax
call fcn.004219c0
jmp 0x52b5d3
mov edi, 0x770a6c
or ecx, 0xffffffff
xor eax, eax
mov word [ebx + 0xb4], 0x16
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
lea ecx, [ebx + 0xa4]
push esi
mov dword [ebp - 0x14], esi
call fcn.004219e0
test al, al
je 0x52b5d3
mov edi, dword [ebx + 0xa8]
mov ecx, esi
mov edx, ecx
mov esi, 0x770a6c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x52b5c3
mov edi, 0x770a60
or ecx, 0xffffffff
xor eax, eax
mov word [ebx + 0xb4], 0x1f
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
lea ecx, [ebx + 0xa4]
push esi
mov dword [ebp - 0x14], esi
call fcn.004219e0
test al, al
je 0x52b5d3
mov edi, dword [ebx + 0xa8]
mov ecx, esi
mov edx, ecx
mov esi, 0x770a60
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x52b5c3
mov edi, 0x770a58
or ecx, 0xffffffff
xor eax, eax
mov word [ebx + 0xb4], 7
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
lea ecx, [ebx + 0xa4]
push esi
mov dword [ebp - 0x14], esi
call fcn.004219e0
test al, al
je 0x52b5d3
mov edi, dword [ebx + 0xa8]
mov ecx, esi
mov edx, ecx
mov esi, 0x770a58
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x52b5c3
mov edi, 0x770a4c
or ecx, 0xffffffff
xor eax, eax
mov word [ebx + 0xb4], 9
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
lea ecx, [ebx + 0xa4]
push esi
mov dword [ebp - 0x14], esi
call fcn.004219e0
test al, al
je 0x52b5d3
mov edi, dword [ebx + 0xa8]
mov ecx, esi
mov edx, ecx
mov esi, 0x770a4c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 0xac], eax
mov ecx, dword [ebx + 0xa8]
mov byte [ecx + eax], 0
cmp dword [0x81424c], 0xf
jne 0x52b5e6
mov dword [ebx + 0x98], 0x4ea
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret