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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5994ff
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x63434c]
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 - 0x250], ebx
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x248], ebx
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0055c530
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
cmp byte [ebp + 0xc], bl
je 0x439ae8
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], ebx
push eax
push 0x2001f
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallKingsoft_PDF
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x439b3b
mov dword [ebp - 0x24c], eax
jmp 0x439b2d
cmp dword [ebp + 0x10], 0
mov esi, 0x20019
mov eax, 0x20219
cmovne esi, eax
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], 0
push eax
push esi
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallKingsoft_Office
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x439b3b
and esi, 0x300
mov dword [ebp - 0x24c], esi
mov ebx, dword [ebp - 0x234]
test eax, eax
mov dword [ebp - 0x250], ebx
mov byte [ebp - 4], 1
jne 0x439bad
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x23c]
push eax
push 0
push str.LocationRoot
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x439b94
mov eax, dword [ebp - 0x23c]
cmp eax, 1
je 0x439b82
cmp eax, 2
jne 0x439b94
cmp dword [ebp - 0x234], 0
jne 0x439b94
xor eax, eax
mov word [ebp - 0x218], ax
test ebx, ebx
je 0x439ba3
push ebx
call edi
xor ebx, ebx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x24c], 0
or esi, 0xffffffff
cmp word [ebp - 0x218], 0
jne 0x439be5
push str.974_tKProAux::CanUninstallOldProduct_tNot_get_install_path_from_regkey._n
push str.H:pub_9qls_rc_bug_mas_v12_2407Coding_support_newsetup_srccommonapponlyonekaux.cpp
push str._INFO_
push 0x63cbb0
call fcn.0046bb20
add esp, 0x10
mov dword [ebp - 0x240], 1
jmp 0x439f32
push 0x5b7698
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0056b327
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x439c1e
mov dword [ebp - 0x240], 1
jmp 0x439f32
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x439f79
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x244], eax
lea esi, [ebp - 0x218]
mov byte [ebp - 4], 4
shr esi, 0x10
test esi, esi
jne 0x439c63
lea eax, [ebp - 0x218]
movzx eax, ax
lea ecx, [ebp - 0x244]
push eax
call fcn.00429d30
jmp 0x439c92
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x439c70
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x244]
call fcn.0042a000
push 0xa
push str.univf.dll
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 5
call fcn.00429970
mov edi, dword [ebp - 0x244]
xor eax, eax
mov ecx, edi
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x240], 1
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x439ce4
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x230]
call fcn.0042e2d0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 6
push eax
call fcn.0043efa0
mov edx, dword [ebp - 0x21c]
add esp, 4
test eax, eax
mov byte [ebp - 4], 5
sete al
mov byte [ebp - 0x235], al
cmp edx, 8
jb 0x439d68
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x439d58
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x439f83
push edx
push ecx
call fcn.00558004
mov al, byte [ebp - 0x235]
add esp, 8
test al, al
je 0x439d7b
mov dword [ebp - 0x240], 1
jmp 0x439f12
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x439f88
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 7
test esi, esi
jne 0x439db7
lea eax, [ebp - 0x218]
movzx eax, ax
lea ecx, [ebp - 0x234]
push eax
call fcn.00429d30
jmp 0x439de2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x439dc0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.0042a000
push 0xd
push str.kimalloc.dll
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 8
call fcn.00429970
mov esi, dword [ebp - 0x234]
push 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
jne 0x439e1c
mov dword [ebp - 0x240], 1
jmp 0x439efa
push 8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x23c], eax
test eax, eax
je 0x439ef3
push str.kuniverify
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x260], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x254], eax
cmp dword [eax - 4], 1
jle 0x439e6a
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00429c70
mov eax, dword [ebp + 8]
mov dword [ebp - 0x254], eax
test eax, eax
je 0x439ed5
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x439e73
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x258], eax
cmp eax, 0x3fffffff
jg 0x439ed5
add eax, eax
call fcn.00558670
mov eax, esp
mov dword [ebp - 0x25c], eax
test eax, eax
je 0x439ed5
mov edx, dword [ebp - 0x258]
push 0
push 0
mov byte [eax], 0
lea ecx, [edx + edx]
push ecx
push eax
push 0xffffffffffffffff
push dword [ebp - 0x254]
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x25c]
jmp 0x439ed7
xor eax, eax
mov ecx, dword [ebp - 0x260]
test ecx, ecx
je 0x439eed
push eax
call ecx
movzx eax, al
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x23c]
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 0x439f12
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 0x439f2c
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 0x439f39
push ebx
call edi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x439f51
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x240]
lea esp, [ebp - 0x270]
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.00557e89
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b00
call fcn.00566a14
push 0x80004005
call fcn.00429b00
int3