Function at 0x5f0335
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x7286bc]
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 0x5f039f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x188]
test al, al
je 0x5f039f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x194]
mov esi, dword [ebp + 8]
test al, al
jne 0x5f0391
lea eax, [esi - 0x200]
cmp eax, 0xe
jbe 0x5f039f
cmp esi, 0x20a
jne 0x5f03b4
test byte [ebp + 0xc], 8
jne 0x5f0414
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00609802
mov esp, ebp
pop ebp
ret 0x10
cmp esi, 0x10f
jne 0x5f0414
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
mov ecx, eax
call fcn.005d0433
push eax
call sub.IMM32.dll_ImmGetContext
mov esi, eax
test esi, esi
je 0x5f039f
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.005d0433
push eax
call sub.IMM32.dll_ImmReleaseContext
jmp 0x5f039f
mov byte [ebp - 0x31], 1
cmp esi, 0x200
jb 0x5f0428
cmp esi, 0x20e
jbe 0x5f0431
cmp esi, 0x20
jne 0x5f059d
mov eax, dword [edi + 8]
test dword [eax + 0x14], 0x100
jne 0x5f0476
lea eax, [esi - 0x201]
cmp eax, 4
ja 0x5f0476
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.005cfcb3
lea ecx, [edi - 0x288]
neg ecx
sbb ecx, ecx
and ecx, ebx
cmp eax, ecx
jne 0x5f039f
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 0x5f050d
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 0x5f04e0
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
mov eax, dword [ebx]
call dword [eax + 0x18]
mov ecx, eax
call fcn.005d0433
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 0x5f050a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
mov ecx, eax
call fcn.005d06cb
test al, al
jne 0x5f050a
push 3
mov byte [ebp - 0x31], al
pop ecx
jmp 0x5f050d
mov ecx, dword [ebp - 0x38]
cmp ecx, 3
jne 0x5f039f
cmp esi, 0x201
je 0x5f052e
cmp esi, 0x203
je 0x5f052e
cmp esi, 0x204
jne 0x5f0538
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 + pe_nt_image_headers32]
test eax, eax
je 0x5f0590
mov ecx, 0x100
cmp esi, ecx
jb 0x5f056d
cmp esi, 0x109
jbe 0x5f0590
cmp esi, 0x102
je 0x5f0590
cmp esi, 0x286
je 0x5f0590
lea eax, [esi - 0x200]
cmp eax, 0xe
ja 0x5f0595
mov eax, dword [edi + 8]
test dword [eax + 0x14], ecx
je 0x5f0595
mov eax, dword [ebp - 0x3c]
mov byte [eax], bl
mov eax, dword [ebp - 0x4c]
jmp 0x5f03a1
lea eax, [esi - 0x100]
cmp eax, 9
ja 0x5f05bb
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1a4]
test al, al
jne 0x5f0538
jmp 0x5f039f
cmp esi, 0x7b
jne 0x5f07cd
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.005d0433
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.005cfcb3
lea ecx, [edi - 0x288]
neg ecx
sbb ecx, ecx
and ecx, ebx
cmp eax, ecx
jne 0x5f039f
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 0x5f06a9
push str.Undo
push 0x65
push 0
push ebx
call esi
push str.Redo
push 0x6b
push 0
push ebx
call esi
push 0x6809b0
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 0x6809b0
push 0
push 0x800
push ebx
call esi
push str.Select_All
jmp 0x5f0714
push 0x6d6568
push 0x65
push 0
push ebx
call esi
push str.ZP_
push 0x6b
push 0
push ebx
call esi
push 0x6809b0
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 0x6d65a8
push 0x68
push 0
push ebx
call esi
push 0x6d65b8
push 0x69
push 0
push ebx
call esi
push 0x6809b0
push 0
push 0x800
push ebx
call esi
push 0x6d65c8
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 + 0x130]
xor edx, edx
test al, al
sete dl
push edx
push 0x6b
push ebx
call edi
mov ecx, esi
call fcn.005ef762
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.005d0433
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 0x5f0538
cmp esi, 0x111
jne 0x5f0893
mov eax, dword [ebp - 0x3c]
mov ecx, ebx
mov byte [eax], 0
mov eax, dword [ebx]
call dword [eax + 0x1a4]
test al, al
je 0x5f039f
mov eax, dword [ebp + 0xc]
sub eax, 0x65
je 0x5f0883
sub eax, 1
je 0x5f0873
sub eax, 1
je 0x5f0863
sub eax, 1
je 0x5f0853
sub eax, 1
je 0x5f0843
sub eax, 1
je 0x5f082f
sub eax, 1
jne 0x5f0538
lea ecx, [edi - 0x288]
call fcn.005f0f54
jmp 0x5f0538
push 0xffffffffffffffff
push 0
lea ecx, [edi - 0x288]
call fcn.005f206a
jmp 0x5f0538
lea ecx, [edi - 0x288]
call fcn.005eea28
jmp 0x5f0538
lea ecx, [edi - 0x288]
call fcn.005f0d82
jmp 0x5f0538
lea ecx, [edi - 0x288]
call fcn.005eeaa3
jmp 0x5f0538
lea ecx, [edi - 0x288]
call fcn.005eeb0a
jmp 0x5f0538
lea ecx, [edi - 0x288]
call fcn.005f2a06
jmp 0x5f0538
cmp esi, 0x53
jne 0x5f039f
xor bl, bl
jmp 0x5f053b