Function at 0x427f10
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2244
call fcn.00486600
mov eax, dword [0x4f840c]
xor eax, esp
mov dword [esp + 0x2240], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], eax
mov dword [edi], eax
lea eax, [esp + 0x10]
push eax
push 1
push 0x28
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x427fa4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x427f8b
lea ecx, [esp + 0x10]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x427fa4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2240]
xor ecx, esp
call fcn.00485d44
mov esp, ebp
pop ebp
ret 4
push 0x104
lea ebx, [edi + 0x20c]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x428066
push 0x5c
push ebx
call dword [sym.imp.MSVCR100.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x427ff4
lea esi, [eax + 2]
lea edx, [edi + 0x414]
mov eax, esi
sub edx, esi
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x427fe0
xor edx, edx
mov word [esi], dx
lea edx, [esp + 0x40]
mov eax, ebx
sub edx, ebx
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x428000
lea eax, [esp + 0x40]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x428016
mov ecx, dword [str.DBGHELP.DLL]
mov edx, dword [0x4e2648]
mov dword [eax], ecx
mov ecx, dword [0x4e264c]
mov dword [eax + 4], edx
mov edx, dword [0x4e2650]
mov dword [eax + 8], ecx
mov ecx, dword [0x4e2654]
mov dword [eax + 0xc], edx
mov edx, dword [0x4e2658]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x428079
push str.DBGHELP.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x428212
push str.MiniDumpWriteDump
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x14], eax
test eax, eax
je 0x42820b
mov ecx, edi
call sym.Uninstall.exe_private:_void___thiscall_CMiniDumper::setMiniDumpFileName_void_
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
lea esi, [edi + 4]
push esi
lea ecx, [esp + 0x24c]
push str.There_was_an_unexpected_error:_n_nWould_you_like_to_create_a_mini_dump_file__n_n_s
push ecx
call ebx
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x4281e8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x30]
push eax
push ecx
push str.SeDebugPrivilege
mov ecx, edi
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], 0
call sym.Uninstall.exe_private:_int___thiscall_CMiniDumper::enablePrivilege_wchar_t_const___void___struct__TOKEN_PRIVILEGES__
mov edx, dword [sym.Uninstall.exe_struct__RTL_CRITICAL_SECTION__CMiniDumper::s_pCriticalSection]
push edx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x18]
push 0
push 0
lea eax, [esp + 0x2c]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [esp + 0x30]
mov edx, dword [sym.Uninstall.exe_struct__RTL_CRITICAL_SECTION__CMiniDumper::s_pCriticalSection]
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x428161
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x30]
push eax
push ecx
mov ecx, edi
call sym.Uninstall.exe_private:_int___thiscall_CMiniDumper::restorePrivilege_void___struct__TOKEN_PRIVILEGES__
cmp dword [esp + 0x14], 0
je 0x428174
xor esi, esi
mov dword [esp + 0x1c], 1
jmp 0x428199
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea edx, [esp + 0x250]
push str.Failed_to_save_the_mini_dump_file_to__s__error__d_
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea esi, [esp + 0x248]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4281be
cmp byte [edi + 0x61c], 0
je 0x4281be
push 0
push 0
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esp + 0x224c]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00485d44
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea ecx, [esp + 0x250]
push str.Failed_to_create_the_mini_dump_file__s__error__d_
push ecx
call ebx
add esp, 0x10
lea esi, [esp + 0x248]
jmp 0x4281a8
mov esi, str.Call_to_GetProcAddress_failed_to_find_MiniDumpWriteDump._The_DBGHELP.DLL_is_possibly_outdated.
jmp 0x4281a8
mov esi, str.Call_to_LoadLibrary_failed_to_find_DBGHELP.DLL.
jmp 0x4281a8