Function at 0x54e7ae
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x67e2d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x48], edi
lea ebx, [edi - 0x280]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x17c]
test al, al
je 0x54e818
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x188]
test al, al
je 0x54e818
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x194]
mov esi, dword [ebp + 8]
test al, al
jne 0x54e80a
lea eax, [esi - 0x200]
cmp eax, 0xe
jbe 0x54e818
cmp esi, 0x20a
jne 0x54e82d
test byte [ebp + 0xc], 8
jne 0x54e88d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00506d7f
mov esp, ebp
pop ebp
ret 0x10
cmp esi, 0x10f
jne 0x54e88d
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
mov ecx, eax
call fcn.00530f1d
push eax
call sub.IMM32.dll_ImmGetContext
mov esi, eax
test esi, esi
je 0x54e818
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetCaretPos]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push esi
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x2c], edx
call sub.IMM32.dll_ImmSetCompositionWindow
mov eax, dword [ebx]
mov ecx, ebx
push esi
call dword [eax + 0x18]
mov ecx, eax
call fcn.00530f1d
push eax
call sub.IMM32.dll_ImmReleaseContext
jmp 0x54e818
mov byte [ebp - 0x31], 1
cmp esi, 0x200
jb 0x54e8a1
cmp esi, 0x20e
jbe 0x54e8aa
cmp esi, 0x20
jne 0x54ea16
mov eax, dword [edi + 8]
test dword [eax + 0x14], 0x100
jne 0x54e8ef
lea eax, [esi - 0x201]
cmp eax, 4
ja 0x54e8ef
mov eax, dword [ebp + 0x10]
movsx ecx, ax
shr eax, 0x10
cwde
push eax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x18]
mov ecx, eax
call fcn.0053079d
lea ecx, [edi - 0x288]
neg ecx
sbb ecx, ecx
and ecx, ebx
cmp eax, ecx
jne 0x54e818
mov edx, dword [edi + 8]
mov eax, dword [edx + 0x14]
and eax, 0x100
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, 3
mov dword [ebp - 0x38], ecx
test eax, eax
jne 0x54e986
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 0x38]
mov dword [ebp - 8], eax
mov eax, dword [edx + 0x2c]
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 0x34]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
movsx ecx, ax
shr eax, 0x10
cwde
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], eax
cmp esi, 0x20a
jne 0x54e959
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
mov eax, dword [ebx]
call dword [eax + 0x18]
mov ecx, eax
call fcn.00530f1d
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
push eax
push ecx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x54e983
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
mov ecx, eax
call fcn.005311b5
test al, al
jne 0x54e983
push 3
mov byte [ebp - 0x31], al
pop ecx
jmp 0x54e986
mov ecx, dword [ebp - 0x38]
cmp ecx, 3
jne 0x54e818
cmp esi, 0x201
je 0x54e9a7
cmp esi, 0x203
je 0x54e9a7
cmp esi, 0x204
jne 0x54e9b1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1a8]
mov bl, byte [ebp - 0x31]
and dword [ebp - 0x4c], 0
lea edx, [ebp - 0x4c]
push edx
push dword [ebp + 0x10]
lea ecx, [edi - 0x288]
push dword [ebp + 0xc]
mov eax, dword [ecx]
push esi
call dword [eax + 0x138]
test eax, eax
je 0x54ea09
mov ecx, 0x100
cmp esi, ecx
jb 0x54e9e6
cmp esi, 0x109
jbe 0x54ea09
cmp esi, 0x102
je 0x54ea09
cmp esi, 0x286
je 0x54ea09
lea eax, [esi - 0x200]
cmp eax, 0xe
ja 0x54ea0e
mov eax, dword [edi + 8]
test dword [eax + 0x14], ecx
je 0x54ea0e
mov eax, dword [ebp - 0x3c]
mov byte [eax], bl
mov eax, dword [ebp - 0x4c]
jmp 0x54e81a
lea eax, [esi - 0x100]
cmp eax, 9
ja 0x54ea34
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1a4]
test al, al
jne 0x54e9b1
jmp 0x54e818
cmp esi, 0x7b
jne 0x54ec46
mov eax, dword [ebp + 0x10]
movsx ecx, ax
shr eax, 0x10
cwde
mov dword [ebp - 0x54], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebx]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0xc], ecx
mov ecx, ebx
call dword [eax + 0x18]
mov ecx, eax
call fcn.00530f1d
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
push dword [ebp - 8]
mov eax, dword [ebx]
mov ecx, ebx
push dword [ebp - 0xc]
call dword [eax + 0x18]
mov ecx, eax
call fcn.0053079d
lea ecx, [edi - 0x288]
neg ecx
sbb ecx, ecx
and ecx, ebx
cmp eax, ecx
jne 0x54e818
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ebx, eax
mov dword [ebp - 0x38], ebx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov esi, dword [sym.imp.USER32.dll_AppendMenuW]
mov ecx, 0x804
cmp cx, ax
je 0x54eb22
push str.Undo
push 0x65
push 0
push ebx
call esi
push str.Redo
push 0x6b
push 0
push ebx
call esi
push 0x5f1b30
push 0
push 0x800
push ebx
call esi
push str.Cut
push 0x66
push 0
push ebx
call esi
push str.Copy
push 0x67
push 0
push ebx
call esi
push str.Paste
push 0x68
push 0
push ebx
call esi
push str.Clear
push 0x69
push 0
push ebx
call esi
push 0x5f1b30
push 0
push 0x800
push ebx
call esi
push str.Select_All
jmp 0x54eb8d
push 0x638b80
push 0x65
push 0
push ebx
call esi
push str.ZP_
push 0x6b
push 0
push ebx
call esi
push 0x5f1b30
push 0
push 0x800
push ebx
call esi
push str.jR_aR_
push 0x66
push 0
push ebx
call esi
push str._rY6R_
push 0x67
push 0
push ebx
call esi
push 0x638bc0
push 0x68
push 0
push ebx
call esi
push 0x638bd0
push 0x69
push 0
push ebx
call esi
push 0x5f1b30
push 0
push 0x800
push ebx
call esi
push 0x638be0
push 0x6a
push 0
push ebx
call esi
lea esi, [edi - 0x288]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x12c]
mov edi, dword [sym.imp.USER32.dll_EnableMenuItem]
xor ecx, ecx
test al, al
sete cl
push ecx
push 0x65
push ebx
call edi
mov eax, dword [esi]
mov ecx, esi
call dword [eax + pe_nt_image_headers32]
xor edx, edx
test al, al
sete dl
push edx
push 0x6b
push ebx
call edi
mov ecx, esi
call fcn.0054dbdb
mov ecx, dword [ebp - 0x48]
xor ebx, ebx
test ax, ax
sete bl
xor eax, eax
cmp byte [ecx + 0x19], al
setne al
mov esi, eax
mov dword [ebp - 0x50], eax
or esi, ebx
push esi
push 0x66
push dword [ebp - 0x38]
call edi
push ebx
mov ebx, dword [ebp - 0x38]
push 0x67
push ebx
call edi
push esi
push 0x69
push ebx
call edi
push dword [ebp - 0x50]
push 0x68
push ebx
call edi
mov edi, dword [ebp - 0x48]
push 0
lea ecx, [edi - 0x280]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, eax
call fcn.00530f1d
push eax
push 0
push dword [ebp - 0x54]
push dword [ebp - 0x40]
push 2
push ebx
call dword [sym.imp.USER32.dll_TrackPopupMenu]
push ebx
call dword [sym.imp.USER32.dll_DestroyMenu]
mov esi, dword [ebp + 8]
jmp 0x54e9b1
cmp esi, 0x111
jne 0x54ed0c
mov eax, dword [ebp - 0x3c]
mov ecx, ebx
mov byte [eax], 0
mov eax, dword [ebx]
call dword [eax + 0x1a4]
test al, al
je 0x54e818
mov eax, dword [ebp + 0xc]
sub eax, 0x65
je 0x54ecfc
sub eax, 1
je 0x54ecec
sub eax, 1
je 0x54ecdc
sub eax, 1
je 0x54eccc
sub eax, 1
je 0x54ecbc
sub eax, 1
je 0x54eca8
sub eax, 1
jne 0x54e9b1
lea ecx, [edi - 0x288]
call fcn.0054f3cd
jmp 0x54e9b1
push 0xffffffffffffffff
push 0
lea ecx, [edi - 0x288]
call fcn.005504e3
jmp 0x54e9b1
lea ecx, [edi - 0x288]
call fcn.0054cea1
jmp 0x54e9b1
lea ecx, [edi - 0x288]
call fcn.0054f1fb
jmp 0x54e9b1
lea ecx, [edi - 0x288]
call fcn.0054cf1c
jmp 0x54e9b1
lea ecx, [edi - 0x288]
call fcn.0054cf83
jmp 0x54e9b1
lea ecx, [edi - 0x288]
call fcn.00550e7f
jmp 0x54e9b1
cmp esi, 0x53
jne 0x54e818
xor bl, bl
jmp 0x54e9b4