Function at 0x1000d760
Capabilities:
Check if file exists
Create process on windows
Delete file
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x1005545c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov ebx, dword [edi + 0x80]
test ebx, ebx
je 0x1000d9fb
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x1000d9fb
mov eax, dword [ebx + 0x38]
cmp dword [eax - 0xc], 0
je 0x1000d7ae
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [edi + 0x7c], 0
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
je 0x1000d8d8
mov eax, dword [ebx + 0x44]
cmp dword [eax - 0xc], 0
je 0x1000d83a
push 0x208
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.10023f50
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x104
push eax
push dword [0x10058d58]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x418]
push eax
call esi
lea eax, [ebp - 0x418]
push eax
call esi
push dword [ebx + 0x44]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000d83a
mov ecx, dword [edi + 0x7c]
lea edx, [ebp - 0x418]
push dword [ebx + 0x48]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi + 0x7c], 0
je 0x1000d8d8
mov ecx, dword [ebx + 0x4c]
call fcn.10003710
push 0x208
mov esi, eax
lea eax, [ebp - 0x620]
push 0
push eax
call fcn.10023f50
add esp, 0xc
mov dword [ebp - 0x624], 1
lea eax, [ebp - 0x628]
mov dword [ebp - 0x628], 0x208
push eax
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x624]
push eax
push dword [ebx + 0x54]
push dword [ebx + 0x50]
push esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1000d8d8
mov eax, dword [ebx + 0x58]
cmp dword [eax - 0xc], 0
je 0x1000d8b5
push eax
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000d8d8
mov ecx, dword [edi + 0x7c]
lea edx, [ebp - 0x620]
push dword [ebx + 0x5c]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 0x3c]
cmp dword [eax - 0xc], 0
je 0x1000d9e3
cmp dword [edi + 0xb4], 0
lea esi, [edi + 0xb4]
jne 0x1000d935
call fcn.10007c70
mov ecx, eax
call fcn.10007a90
test eax, eax
je 0x1000d92c
push dword [ebp - 0x624]
mov ecx, esi
push eax
call fcn.10007d40
mov edx, dword [esi]
lea eax, [edi + 0x70]
mov ecx, edi
neg ecx
mov esi, dword [edx]
sbb ecx, ecx
and ecx, eax
push ecx
mov ecx, edx
call dword [esi]
lea esi, [edi + 0xb4]
cmp dword [esi], 0
je 0x1000d9e3
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.10023f50
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
push dword [0x10058d58]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.update
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [ebx + 0x3c]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str..exe
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi]
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, dword [esi]
push dword [ebx + 0x3c]
push 0
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
jne 0x1000da2c
mov ecx, edi
call fcn.1000cdf0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001f332
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x78]
test eax, eax
je 0x1000da23
mov ecx, dword [edi + 0xa8]
test ecx, ecx
jne 0x1000da14
mov dword [eax + 0xe8], ecx
jmp 0x1000da23
cmp ecx, 1
jne 0x1000da23
mov dword [eax + 0xec], 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001f332
mov esp, ebp
pop ebp
ret