Function at 0x140052800
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov r13, rdx
mov rdi, rcx
lea rbx, [0x1402e82f0]
mov rsi, 0xffffffffffffffff
mov rax, rsi
nop
inc rax
cmp word [rbx + rax*2], 0
jne 0x140052830
mov r8d, eax
mov rdx, rbx
mov rcx, r13
call fcn.14000df90
mov rcx, qword [rdi + 0x20]
test rcx, rcx
jne 0x140052858
xor eax, eax
jmp 0x140052cb3
mov dword [rdi + 0x8c], 0
lea r9, [rbp + 0x40]
lea r8, [rbp - 0x28]
lea rdx, str.VarFileInfoTranslation
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14005298b
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov rcx, qword [rbp - 0x28]
mov edx, dword [rbp + 0x40]
add rdx, rcx
cmp rcx, rdx
jae 0x1400528a6
cmp word [rcx], ax
je 0x140052ccb
add rcx, 4
cmp rcx, rdx
jb 0x140052894
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx r8d, ax
mov r9, qword [rbp - 0x28]
mov rdx, r9
mov ecx, dword [rbp + 0x40]
add rcx, r9
cmp r9, rcx
jae 0x1400528d5
cmp word [rdx], r8w
je 0x140052cd2
add rdx, 4
cmp rdx, rcx
jb 0x1400528c2
mov rdx, r9
cmp r9, rcx
jae 0x14005290a
mov r10d, 0xff
and r8w, r10w
nop word [rax + rax]
movzx eax, word [rdx]
and ax, r10w
cmp ax, r8w
je 0x140052cd2
add rdx, 4
cmp rdx, rcx
jb 0x1400528f0
mov rax, r9
cmp r9, rcx
jae 0x140052925
cmp word [rax], 0
je 0x140052cd9
add rax, 4
cmp rax, rcx
jb 0x140052912
mov rax, r9
cmp r9, rcx
jae 0x140052942
nop dword [rax]
cmp byte [rax], 0
je 0x140052cd9
add rax, 4
cmp rax, rcx
jb 0x140052930
mov rax, r9
cmp r9, rcx
jae 0x140052963
nop word [rax + rax]
cmp word [rax], 9
je 0x140052cd9
add rax, 4
cmp rax, rcx
jb 0x140052950
mov rax, r9
cmp r9, rcx
jae 0x140052982
nop dword [rax + rax]
cmp byte [rax], 9
je 0x140052cd9
add rax, 4
cmp rax, rcx
jb 0x140052970
mov eax, dword [r9]
mov dword [rdi + 0x8c], eax
mov eax, dword [rdi + 0x8c]
mov r9d, eax
shr r9d, 0x10
movzx r8d, ax
lea rdx, str._04X_04X
lea rcx, [rdi + 0xb8]
call fcn.14000e180
lea rdx, [rdi + 0xb8]
mov rcx, r13
call fcn.14000d7c0
nop
call fcn.1400a2364
mov rcx, rax
test rax, rax
je 0x140052ceb
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x18], 0
mov rax, rsi
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400529f0
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.14000df90
cmp qword [rdi + 0x20], 0
je 0x140052c31
call fcn.1400a2364
mov rcx, rax
test rax, rax
je 0x140052cf6
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x20], rax
lea r9, [0x1402f1098]
mov r8, qword [rdi + 0xb8]
lea rdx, str.StringFileInfo_s_s
lea rcx, [rbp - 0x20]
call fcn.14000e180
mov rbx, qword [rbp - 0x20]
lea r14, [rbx - 0x18]
movsxd rcx, dword [r14 + 8]
add rcx, 0x64
mov eax, 2
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.1400164e0
mov r15, rax
mov rdx, rax
sub rdx, rbx
nop
movzx ecx, word [rbx]
mov word [rbx + rdx], cx
lea rbx, [rbx + 2]
test cx, cx
jne 0x140052a80
lea r9, [rbp + 0x50]
lea r8, [rbp - 0x18]
mov rdx, r15
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
mov ebx, eax
test eax, eax
je 0x140052ad6
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x140052ad6
mov rcx, rsi
nop word [rax + rax]
inc rcx
cmp word [rdx + rcx*2], 0
jne 0x140052ac0
mov r8d, ecx
lea rcx, [rbp - 0x30]
call fcn.14000df90
test r15, r15
je 0x140052ae4
mov rcx, r15
call fcn.140095d64
nop
mov eax, esi
lock xadd dword [r14 + 0x10], eax
sub eax, 1
jg 0x140052afd
mov rcx, qword [r14]
mov rax, qword [rcx]
mov rdx, r14
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test ebx, ebx
je 0x140052c31
mov qword [rbp - 8], 0
mov rax, rsi
lea rdx, [0x1402e82f0]
nop word [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140052b20
mov r8d, eax
lea rcx, [rbp - 0x30]
call fcn.14000df90
cmp qword [rdi + 0x20], 0
je 0x140052c31
call fcn.1400a2364
mov rcx, rax
test rax, rax
je 0x140052ce0
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x10], rax
lea r9, [0x1402f0f90]
mov r8, qword [rdi + 0xb8]
lea rdx, str.StringFileInfo_s_s
lea rcx, [rbp - 0x10]
call fcn.14000e180
mov rbx, qword [rbp - 0x10]
lea r14, [rbx - 0x18]
movsxd rcx, dword [r14 + 8]
add rcx, 0x64
mov eax, 2
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.1400164e0
mov r15, rax
mov rdx, rax
sub rdx, rbx
nop dword [rax + rax]
movzx ecx, word [rbx]
mov word [rbx + rdx], cx
lea rbx, [rbx + 2]
test cx, cx
jne 0x140052bb0
lea r9, [rbp + 0x58]
lea r8, [rbp - 8]
mov rdx, r15
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
mov ebx, eax
test eax, eax
je 0x140052c06
mov rdx, qword [rbp - 8]
test rdx, rdx
je 0x140052c06
mov rcx, rsi
nop word [rax + rax]
inc rcx
cmp word [rdx + rcx*2], 0
jne 0x140052bf0
mov r8d, ecx
lea rcx, [rbp - 0x30]
call fcn.14000df90
test r15, r15
je 0x140052c14
mov rcx, r15
call fcn.140095d64
nop
mov eax, esi
lock xadd dword [r14 + 0x10], eax
sub eax, 1
jg 0x140052c2d
mov rcx, qword [r14]
mov rax, qword [rcx]
mov rdx, r14
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test ebx, ebx
jne 0x140052c92
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [rax + 1]
mov rdx, r13
mov rcx, rdi
call fcn.140052e00
xor edx, edx
lea r8d, [rdx + 0x10]
mov rcx, qword [r13]
call fcn.14024d65c
movzx r8d, ax
shl r8d, 0x10
shr eax, 0x10
add r8d, eax
mov dword [rdi + 0x8c], r8d
mov r9d, r8d
shr r9d, 0x10
movzx r8d, r8w
lea rdx, str._04X_04X
lea rcx, [rdi + 0xb8]
call fcn.14000e180
nop
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x140052cae
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, 1
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [rcx]
jmp 0x140052985
mov eax, dword [rdx]
jmp 0x140052985
mov eax, dword [rax]
jmp 0x140052985
mov ecx, 0x80004005
call fcn.1400080b0
nop
mov ecx, 0x80004005
call fcn.1400080b0
nop
mov ecx, 0x80004005
call fcn.1400080b0
int3