Function at 0x439a30
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59da64
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x639354]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], ebx
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00560a80
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
cmp byte [ebp + 0xc], bl
je 0x439ac8
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], ebx
push eax
push 0x2001f
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallKingsoft_PDF
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x439b1b
mov dword [ebp - 0x230], eax
jmp 0x439b0d
cmp dword [ebp + 0x10], 0
mov esi, 0x20019
mov eax, 0x20219
cmovne esi, eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push eax
push esi
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallKingsoft_Office
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x439b1b
and esi, 0x300
mov dword [ebp - 0x230], esi
mov ebx, dword [ebp - 0x21c]
test eax, eax
mov dword [ebp - 0x234], ebx
mov byte [ebp - 4], 1
jne 0x439b8d
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
push eax
push 0
push str.LocationRoot
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x439b74
mov eax, dword [ebp - 0x220]
cmp eax, 1
je 0x439b62
cmp eax, 2
jne 0x439b74
cmp dword [ebp - 0x21c], 0
jne 0x439b74
xor eax, eax
mov word [ebp - 0x218], ax
test ebx, ebx
je 0x439b83
push ebx
call edi
xor ebx, ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], 0
or esi, 0xffffffff
cmp word [ebp - 0x218], 0
jne 0x439bc5
push str.979_tKProAux::CanUninstallOldProduct_tNot_get_install_path_from_regkey._n
push str.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonapponlyonekaux.cpp
push str._INFO_
push 0x641cc8
call fcn.0046b730
add esp, 0x10
mov dword [ebp - 0x224], 1
jmp 0x439e6f
push 0x5bc630
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0056f877
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x439bfe
mov dword [ebp - 0x224], 1
jmp 0x439e6f
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x439eb6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 4
shr eax, 0x10
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x220], eax
movzx esi, cx
test eax, eax
jne 0x439c49
push esi
lea ecx, [ebp - 0x228]
call fcn.00429d90
jmp 0x439c74
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x439c52
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x228]
call fcn.0042a060
push 0xa
push str.univf.dll
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 5
call fcn.004299d0
mov edi, dword [ebp - 0x228]
push edi
mov dword [ebp - 0x224], 1
call fcn.00521420
add esp, 4
test eax, eax
jne 0x439cb6
mov dword [ebp - 0x224], 1
jmp 0x439e4f
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x439ec0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x220], 0
mov byte [ebp - 4], 6
jne 0x439cee
push esi
lea ecx, [ebp - 0x21c]
call fcn.00429d90
jmp 0x439d19
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x439cf7
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.0042a060
push 0xd
push str.kimalloc.dll
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 7
call fcn.004299d0
mov esi, dword [ebp - 0x21c]
push 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
jne 0x439d53
mov dword [ebp - 0x224], 1
jmp 0x439e37
push 8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x220], eax
test eax, eax
je 0x439e30
push str.kuniverify
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x244], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x238], eax
cmp dword [eax - 4], 1
jle 0x439da1
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00429cd0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x238], eax
test eax, eax
je 0x439e12
mov ecx, eax
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x439db0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x23c], eax
cmp eax, 0x3fffffff
jg 0x439e12
add eax, eax
call fcn.0055cb90
mov eax, esp
mov dword [ebp - 0x240], eax
test eax, eax
je 0x439e12
mov edx, dword [ebp - 0x23c]
push 0
push 0
mov byte [eax], 0
lea ecx, [edx + edx]
push ecx
push eax
push 0xffffffffffffffff
push dword [ebp - 0x238]
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x240]
jmp 0x439e14
xor eax, eax
mov ecx, dword [ebp - 0x244]
test ecx, ecx
je 0x439e2a
push eax
call ecx
movzx eax, al
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x439e4f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
or esi, 0xffffffff
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x439e69
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x439e76
push ebx
call edi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x439e8e
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x224]
lea esp, [ebp - 0x254]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055c3a9
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b60
push 0x80004005
call fcn.00429b60
int3