Function at 0x129d579
Capabilities:
Check if file exists
Identify system language via api
Query or enumerate registry value

Disassembly:
push 0x478
mov eax, 0x1320d50
call fcn.012b0d90
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx ebx, ax
mov dword [ebp - 0x464], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
xor esi, esi
mov dword [ebp - 0x480], eax
mov edi, esi
lea eax, [ebp - 0x46c]
mov dword [ebp - 0x468], esi
push eax
push 0x20119
push esi
push str.SoftwareTrendMicroDeep_Security_Agent
push 0x80000002
mov dword [ebp - 0x474], esi
mov dword [ebp - 0x478], esi
mov dword [ebp - 0x484], 4
mov dword [ebp - 0x46c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x129d634
lea eax, [ebp - 0x484]
push eax
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x474]
push eax
push esi
push str.LangID
push dword [ebp - 0x46c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x129d628
cmp dword [ebp - 0x474], 4
jne 0x129d628
movzx edi, word [ebp - 0x478]
push dword [ebp - 0x46c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xc04
cmp ax, bx
jne 0x129d663
push str.Set_zh_TW_for_HK
push str.InitResourceInstanceHandle
push 0xce
push str.uAgent.cpp
push 1
push 8
call fcn.012a4bb5
add esp, 0x18
mov edi, 0x404
xor eax, eax
lea esi, [ebp - 0x50]
cmp ax, di
je 0x129d6cf
cmp di, bx
je 0x129d6cf
movzx eax, di
push eax
mov dword [ebp - 0x470], eax
mov eax, esi
push str._04x
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, esi
add esp, 0xc
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x129d694
push dword [ebp - 0x470]
sub ecx, edx
lea esi, [ebp - 0x4e]
push str.Set_LangIDUserDefined:__d
push str.InitResourceInstanceHandle
push 0xd8
sar ecx, 1
push str.uAgent.cpp
push 1
push 8
lea esi, [esi + ecx*2]
call fcn.012a4bb5
add esp, 0x1c
movzx eax, bx
push eax
push str._04x
push esi
mov dword [ebp - 0x470], eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x468]
jne 0x129d6ed
push dword [ebp - 0x470]
sub ecx, edx
push str.Set_LangIDUser:__d
push str.InitResourceInstanceHandle
push 0xdd
sar ecx, 1
push str.uAgent.cpp
push 1
push 8
lea esi, [esi + ecx*2]
add esi, 2
call fcn.012a4bb5
mov eax, dword [ebp - 0x480]
add esp, 0x1c
cmp bx, ax
je 0x129d789
movzx ebx, ax
push ebx
push str._04x
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x468]
jne 0x129d74f
push ebx
push str.Set_LangIDSys:__d
push str.InitResourceInstanceHandle
sub ecx, edx
push 0xe2
sar ecx, 1
push str.uAgent.cpp
push 1
push 8
lea esi, [esi + ecx*2]
add esi, 2
call fcn.012a4bb5
add esp, 0x1c
xor eax, eax
xor ebx, ebx
mov word [esi], ax
push str.kernel32.dll
mov dword [ebp - 0x47c], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x129d7f5
push str.SetProcessPreferredUILanguages
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x129d7ee
lea ecx, [ebp - 0x47c]
push ecx
lea ecx, [ebp - 0x50]
push ecx
push 4
call eax
push dword [ebp - 0x47c]
mov ebx, eax
push str.Number_of_Preferred_Languages:__d
push str.InitResourceInstanceHandle
push 0xf2
push str.uAgent.cpp
push 1
push 8
call fcn.012a4bb5
add esp, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov esi, eax
test ebx, ebx
jne 0x129da36
push 0x104
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [0x1351020]
mov dword [ebp - 0x468], eax
lea eax, [ebp - 0x258]
mov dword [ebp - 4], esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x468]
push str._s.mui
push eax
call fcn.0128d66d
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ebx, [ebp - 0x258]
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
cmp ax, si
jne 0x129d85a
sub ebx, ecx
xor eax, eax
sar ebx, 1
cmp ax, di
mov eax, dword [ebp - 0x464]
je 0x129d903
cmp di, ax
je 0x129d903
push 0x104
lea eax, [ebp - 0x460]
push eax
push edi
call fcn.0129d36d
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x460]
add esp, 0xc
push eax
lea eax, [ebp - 0x258]
push eax
call edi
mov esi, dword [ebp - 0x468]
lea eax, [ebp - 0x258]
push esi
push eax
call edi
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x129d93e
mov word [ebp + ebx*2 - 0x258], ax
lea eax, [ebp - 0x460]
push 0x104
push eax
push dword [ebp - 0x464]
call fcn.0129d36d
add esp, 0xc
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x258]
push eax
call edi
jmp 0x129d934
push 0x104
lea ecx, [ebp - 0x460]
push ecx
push eax
call fcn.0129d36d
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x460]
add esp, 0xc
push eax
lea eax, [ebp - 0x258]
push eax
call edi
mov esi, dword [ebp - 0x468]
push esi
lea eax, [ebp - 0x258]
push eax
call edi
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x129d9bd
mov word [ebp + ebx*2 - 0x258], ax
lea eax, [ebp - 0x460]
push 0x104
push eax
mov eax, dword [ebp - 0x480]
push eax
call fcn.0129d36d
add esp, 0xc
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x258]
push eax
call edi
push esi
lea eax, [ebp - 0x258]
push eax
call edi
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x129d9bd
mov word [ebp + ebx*2 - 0x258], ax
lea eax, [ebp - 0x258]
push 0x13261a4
push eax
call edi
push esi
lea eax, [ebp - 0x258]
push eax
call edi
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x129da2b
mov ecx, dword [0x1351020]
mov dword [ebp - 0x464], ecx
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x464]
push 0xda
push eax
call fcn.0128d629
add esp, 0xc
test eax, eax
jne 0x129da0f
push str.The_required_resource_for_running_the_program_is_missing._Reinstall_the_program_may_resolve_the_issue.
lea ecx, [ebp - 0x464]
call fcn.012887dc
xor eax, eax
push eax
push eax
push dword [ebp - 0x464]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x464]
call fcn.01288762
lea ecx, [ebp - 0x468]
call fcn.01288762
mov eax, esi
call fcn.012b0d3a
ret