Function at 0x440de0
Capabilities:
Check if file exists
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.0043fde0
mov esi, dword [ebp - 0xc]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x10]
mov ecx, esi
sub ecx, edi
add esp, 4
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x440e27
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [ecx], edi
pop edi
mov dword [ecx + 4], esi
mov dword [ecx + 8], eax
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x2001f
push 0
push str.SoftwareKingsoftOfficewpscloudsvr_refs
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0xc]
test eax, eax
jne 0x440f8f
mov esi, dword [ebp - 0x10]
cmp esi, edx
je 0x440f8f
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x440e6a
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x440f81
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x440e83
mov eax, dword [esi]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, dword [ebp - 0xc]
lea eax, [esi + 0x18]
cmp eax, ebx
je 0x440f28
lea edi, [esi + 0x2c]
mov edi, edi
lea eax, [edi + 0x18]
cmp edi, eax
je 0x440f17
mov ecx, dword [edi - 0x18]
cmp ecx, 8
jb 0x440ee1
mov eax, dword [edi - 0x2c]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x440ed7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44107d
mov eax, edx
push ecx
push eax
call fcn.00558004
add esp, 8
mov eax, dword [edi - 0x14]
mov dword [edi - 0x2c], eax
mov eax, dword [edi - 0x10]
mov dword [edi - 0x28], eax
mov eax, dword [edi - 0xc]
mov dword [edi - 0x24], eax
mov eax, dword [edi - 8]
mov dword [edi - 0x20], eax
mov eax, dword [edi - 4]
mov dword [edi - 0x1c], eax
mov eax, dword [edi]
mov dword [edi - 0x18], eax
xor eax, eax
mov dword [edi - 4], 0
mov dword [edi], 7
mov word [edi - 0x14], ax
add edi, 0x18
lea eax, [edi - 0x14]
cmp eax, ebx
jne 0x440ea0
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebx - 4]
cmp ecx, 8
jb 0x440f62
mov eax, dword [ebx - 0x18]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x440f58
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44107d
mov eax, edx
push ecx
push eax
call fcn.00558004
add esp, 8
xor eax, eax
mov dword [ebx - 8], 0
mov dword [ebx - 4], 7
mov word [ebx - 0x18], ax
mov edx, dword [ebp - 0xc]
sub edx, 0x18
mov dword [ebp - 0xc], edx
jmp 0x440f87
mov edx, dword [ebp - 0xc]
add esi, 0x18
cmp esi, edx
jne 0x440e60
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov dword [ebp - 8], 0
mov dword [ebx], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebx + 4], edx
mov dword [ebx + 8], ecx
test eax, eax
je 0x441074
cmp eax, 0xffffffff
je 0x441074
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x441074
mov edi, dword [ebp - 0xc]
cmp esi, edi
je 0x441034
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x441017
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x44100d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44107d
mov eax, edx
push ecx
push eax
call fcn.00558004
add esp, 8
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
add esi, 0x18
cmp esi, edi
jne 0x440fe2
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x44106a
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44107d
push ecx
push esi
call fcn.00558004
add esp, 8
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00566a14
int3