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

Disassembly:
sub esp, 0x16c
push ebx
push ebp
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x75]
mov byte [esp + 0x74], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
xor ebp, ebp
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push reloc.WS2_32.dll_bind
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1000864a
mov ecx, 0x10
lea edi, [esp + 0x34]
mov dword [esp + 0x30], 0x44
lea edx, [esp + 0x28]
rep stosd dword es:[edi], eax
xor ecx, ecx
push esi
mov dword [esp + 0x20], ecx
lea eax, [esp + 0x78]
mov dword [esp + 0x24], ecx
push edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x34]
push eax
push ecx
push ebx
push str.DisplayIcon
push edx
mov dword [esp + 0x48], 1
mov dword [esp + 0x44], 0x104
mov dword [esp + 0x34], ebx
mov word [esp + 0x7c], bx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10008632
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
or edi, 0xffffffff
test eax, eax
jne 0x100084aa
lea ecx, [esp + 0x78]
push ecx
call fcn.10008f70
add esp, 4
jmp 0x100084d5
cmp dword [0x100179c0], edi
jne 0x100084d5
push ebx
push 0x80
push 3
push ebx
push 1
lea edx, [esp + 0x8c]
push closesocket
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x100179c0], eax
lea eax, [esp + 0x10]
push str.explorer.exe
push eax
call fcn.10009180
add esp, 8
test eax, eax
je 0x100085c0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100085b4
mov edx, dword [esp + 0x10]
push ebx
lea eax, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x20], ebx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x100085b4
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x34]
push ecx
push edx
mov edx, dword [esp + 0x18]
push ebx
push eax
push 0x420
push ebx
push ebx
push ebx
lea ecx, [esp + 0x98]
push ebx
push ecx
push edx
mov dword [esp + 0x68], str.winsta0default
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov ebp, eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
cmp ebp, ebx
jne 0x100085a6
mov eax, dword [0x100179c0]
cmp eax, edi
je 0x1000858c
push eax
call esi
mov dword [0x100179c0], edi
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, dword [esp + 0x10]
jmp 0x1000862f
mov ecx, dword [esp + 0x20]
push ecx
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, dword [esp + 0x10]
jmp 0x1000862f
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x34]
push ecx
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x98]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebp, eax
cmp ebp, ebx
jne 0x1000861e
mov eax, dword [0x100179c0]
cmp eax, edi
je 0x100085fb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x100179c0], edi
lea ecx, [esp + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, ebp
pop edi
pop ebp
pop ebx
add esp, 0x16c
ret
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, ebp
pop edi
pop ebp
pop ebx
add esp, 0x16c
ret
mov eax, ebp
pop edi
pop ebp
pop ebx
add esp, 0x16c
ret