Function at 0x14004a5f0
Capabilities:
Identify system language via api

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x108
mov qword [rsp + 0xf0], 0xfffffffffffffffe
mov rsi, rcx
mov rdi, qword [rcx + 0x1ad0]
test rdi, rdi
je 0x14004a646
nop
nop
mov rcx, rdi
test rdi, rdi
je 0x14004a640
mov rdi, qword [rdi]
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14004a639
call fcn.14001e480
test rdi, rdi
jne 0x14004a620
jmp 0x14004a646
call fcn.1401fd6b8
int3
mov eax, dword [rsi + 0x54]
shr eax, 0x19
and eax, 1
je 0x14004a656
call fcn.140164620
lea rcx, [rsp + 0xa0]
call fcn.140166ed0
nop
lea r13, method.CArray_int__int_const____ptr64_.virtual_0
mov qword [rsp + 0xa0], r13
call fcn.1401ffea8
xor r12d, r12d
test rax, rax
je 0x14004a6ab
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xe8]
test rax, rax
je 0x14004a6ab
mov rax, qword [rax + 0xc0]
test rax, rax
jne 0x14004a6a2
mov rax, r12
jmp 0x14004a6ae
add dword [rax + 0x1b70], 1
jmp 0x14004a6ae
mov rax, r12
mov qword [rsp + 0xe8], rax
xor eax, eax
or rbx, 0xffffffffffffffff
mov rcx, rbx
lea rdi, str.AdvDeviceSetting
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, str.AdvDeviceSetting
lea rcx, [rsp + 0xa8]
call fcn.14000b770
nop
lea rcx, [rsp + 0xa0]
call fcn.14000b140
mov dword [rsp + 0x140], 1
mov rcx, qword [rsi + 0x4c8]
test rcx, rcx
je 0x14004a832
mov dword [rsp + 0x148], r12d
lea rdx, [rsp + 0x90]
mov rax, qword [0x1402771b8]
mov qword [rdx], rax
mov rax, qword [0x1402771c0]
mov qword [rdx + 8], rax
mov dword [rsp + 0x40], r12d
xor eax, eax
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], eax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [rbx + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, rbx
je 0x14004a832
lea rdx, [rsp + 0x40]
lea rax, [rsp + 0x90]
mov rcx, qword [rax]
mov qword [rdx], rcx
mov rcx, qword [rax + 8]
mov qword [rdx + 8], rcx
mov dword [rsp + 0x54], 2
mov dword [rsp + 0x50], 0x2e
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x148]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x140]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 0x19]
lea r8, [rsp + 0x40]
mov edx, 0x2f0003
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x14004a832
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x158]
call fcn.14003e9f0
mov rdx, qword [rsp + 0x158]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14004a832
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsi + 0x4d8]
test rcx, rcx
je 0x14004a965
mov dword [rsp + 0x150], r12d
lea rdx, [rsp + 0x80]
mov rax, qword [0x1402771b8]
mov qword [rdx], rax
mov rax, qword [0x1402771c0]
mov qword [rdx + 8], rax
mov dword [rsp + 0x58], r12d
xor eax, eax
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x6c], eax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [rax + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14004a965
lea rdx, [rsp + 0x58]
lea rax, [rsp + 0x80]
mov rcx, qword [rax]
mov qword [rdx], rcx
mov rcx, qword [rax + 8]
mov qword [rdx + 8], rcx
mov dword [rsp + 0x6c], 2
mov dword [rsp + 0x68], 0x2e
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x150]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x140]
mov qword [rsp + 0x20], rax
mov r9d, 0x18
lea r8, [rsp + 0x58]
mov edx, 0x2f0003
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x14004a965
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x70]
call fcn.14003e9f0
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14004a965
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor r9d, r9d
lea r8, str.SaveShowTrayIcon
lea rdx, str.General
lea rcx, [0x140333a50]
call fcn.140204860
mov r9d, eax
lea r8, str.ShowTrayIcon
lea rdx, str.General
lea rcx, [0x140333a50]
call fcn.140204900
call fcn.1401ffea8
test rax, rax
je 0x14004a9b7
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xe8]
jmp 0x14004a9ba
mov rax, r12
xor r9d, r9d
xor r8d, r8d
mov edx, dword [0x14032fc04]
mov rcx, qword [rax + 0x40]
call qword [sym.imp.USER32.dll_PostMessageW]
xor r9d, r9d
lea r8, str.Language
lea rdx, str.General
lea rcx, [0x140333a50]
call fcn.140204900
mov word [rsi + 0x55e], 0x409
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
test ax, ax
je 0x14004aa17
movzx edx, ax
lea rcx, [rsi + 0x550]
call fcn.1400d4fd0
mov word [rsi + 0x55e], ax
movzx eax, word [rsi + 0x55e]
mov word [rsi + 0x55c], ax
mov dword [rsi + 0x558], 1
xor r9d, r9d
lea r8, str.Language
lea rdx, str.General
lea rcx, [0x140333a50]
call fcn.140204860
test ax, ax
je 0x14004aa6e
movzx edx, ax
lea rcx, [rsi + 0x550]
call fcn.1400d4fd0
mov word [rsi + 0x55c], ax
mov dword [rsi + 0x558], r12d
call fcn.1401ffea8
test rax, rax
je 0x14004aa86
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xe8]
jmp 0x14004aa89
mov rax, r12
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov rcx, qword [rax + 0x40]
call qword [sym.imp.USER32.dll_PostMessageW]
nop
mov qword [rsp + 0xa0], r13
mov rcx, qword [rsp + 0xe8]
test rcx, rcx
je 0x14004aad7
add dword [rcx + 0x1b70], 0xffffffff
cmp dword [rcx + 0x1b70], 0
jne 0x14004aacf
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0xe8], r12
lea rax, method.CArray_int__int_const____ptr64_.virtual_0
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0xe0]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14004ab09
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, method.CArray_int__int_const____ptr64_.virtual_0
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0xb0]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14004ab3b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0xa8]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x14004ab5c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
add rsp, 0x108
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret