Function at 0x46c550
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ec1f3
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x677000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x1c], ax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x1a], xmm0
call fcn.005bb1c0
xor eax, eax
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], eax
mov word [ebp - 0x250], ax
mov dword [ebp - 0x284], 7
mov dword [ebp - 0x288], eax
mov word [ebp - 0x298], ax
mov dword [ebp - 0x254], 7
mov dword [ebp - 0x258], eax
mov word [ebp - 0x268], ax
mov dword [ebp - 0x26c], 7
mov dword [ebp - 0x270], eax
mov word [ebp - 0x280], ax
add esp, 8
lea eax, [ebp - 0x220]
push eax
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.0046cdc0
cmp word [ebp - 0x220], 0
movzx edi, ax
jne 0x46c648
xor ecx, ecx
jmp 0x46c660
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c651
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x238]
call fcn.00406400
lea eax, [ebp - 0x238]
push eax
mov ecx, esi
call fcn.0046f7d0
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
mov ecx, str.Arabic
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46c6c6
test dx, dx
je 0x46c6c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46c6c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x46c6a0
xor eax, eax
jmp 0x46c6cb
sbb eax, eax
or eax, 1
push 0xa
mov dword [ebp - 0x29c], 7
mov dword [ebp - 0x2a0], 0
lea ecx, [ebp - 0x2b0]
push str.RTLREADING
test eax, eax
jne 0x46c704
mov word [ebp - 0x2b0], ax
call fcn.00406400
mov byte [ebp - 4], 5
push 1
jmp 0x46c718
xor eax, eax
mov word [ebp - 0x2b0], ax
call fcn.00406400
mov byte [ebp - 4], 6
push 0
lea eax, [ebp - 0x2b0]
add esi, 0xc
push eax
mov ecx, esi
call fcn.0040a350
mov byte [ebp - 4], 4
cmp dword [ebp - 0x29c], 8
jb 0x46c744
push dword [ebp - 0x2b0]
call fcn.0049500b
add esp, 4
push edi
push str._04x
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
push 5
push eax
call fcn.005b8769
xor eax, eax
add esp, 0x14
mov dword [ebp - 0x2b4], 7
mov dword [ebp - 0x2b8], 0
mov word [ebp - 0x2c8], ax
cmp word [ebp - 0x1c], ax
jne 0x46c781
xor ecx, ecx
jmp 0x46c796
lea ecx, [ebp - 0x1c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c787
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c8]
call fcn.00406400
mov byte [ebp - 4], 7
push 0xc
xor eax, eax
push str.MSETUPLANGID
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 0x29c], 7
mov dword [ebp - 0x2a0], 0
mov word [ebp - 0x2b0], ax
call fcn.00406400
lea eax, [ebp - 0x2c8]
push eax
lea eax, [ebp - 0x2b0]
push eax
mov ecx, esi
mov byte [ebp - 4], 8
call fcn.00409f70
cmp dword [ebp - 0x29c], 8
jb 0x46c809
push dword [ebp - 0x2b0]
call fcn.0049500b
add esp, 4
xor eax, eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x2b4], 8
mov dword [ebp - 0x29c], 7
mov dword [ebp - 0x2a0], 0
mov word [ebp - 0x2b0], ax
jb 0x46c841
push dword [ebp - 0x2c8]
call fcn.0049500b
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
push eax
push str._04x
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
push 5
push eax
call fcn.005b8769
add esp, 0x14
cmp word [ebp - 0x1c], 0
jne 0x46c86b
xor ecx, ecx
jmp 0x46c880
lea ecx, [ebp - 0x1c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c871
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x74e4c8
call fcn.00406400
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
push eax
push str._04x
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
push 5
push eax
call fcn.005b8769
add esp, 0x14
cmp word [ebp - 0x1c], 0
jne 0x46c8b9
xor ecx, ecx
jmp 0x46c8cf
lea ecx, [ebp - 0x1c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c8c0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x74e4e0
call fcn.00406400
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
push eax
push str._04x
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
push 5
push eax
call fcn.005b8769
add esp, 0x14
cmp word [ebp - 0x1c], 0
jne 0x46c908
xor ecx, ecx
jmp 0x46c91f
lea ecx, [ebp - 0x1c]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c910
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x74e4b0
call fcn.00406400
cmp dword [ebp - 0x224], 8
jb 0x46c945
push dword [ebp - 0x238]
call fcn.0049500b
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b7f8f
mov esp, ebp
pop ebp
ret