Function at 0x455140
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows
Resolve function by parsing pe exports
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4f75d8
mov eax, dword fs:[0]
push eax
mov eax, 0x118c
call fcn.0049b490
mov eax, dword [0x5364a8]
xor eax, esp
mov dword [esp + 0x1188], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5364a8]
xor eax, esp
push eax
lea eax, [esp + 0x11a0]
mov dword fs:[0], eax
mov edi, dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_void_]
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x8c]
mov dword [esp + 0x18], ebx
call edi
lea ecx, [esp + 0x114]
mov dword [esp + 0x11a8], ebx
call edi
push str.IsWow64Process
mov byte [esp + 0x11ac], 1
push str.kernel32
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x30], eax
cmp eax, ebx
je 0x4551e1
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [esi + 0x30]
push eax
call ecx
lea ecx, [esi + 0x34]
mov esi, dword [sym.imp.LibDui.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::GetData_void_const]
call esi
mov edi, dword [sym.imp.LibDui.dll_public:_int___cdecl_DuiLib::CDuiString::Format_wchar_t_const__]
push eax
cmp dword [esp + 0x20], ebx
je 0x455208
push str._sx64
lea edx, [esp + 0x94]
push edx
jmp 0x455215
push str._sx86
lea eax, [esp + 0x94]
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x8c]
call esi
push eax
lea ecx, [esp + 0x118]
push str._s_tapinstall.exe
push ecx
call edi
add esp, 0xc
push ebx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x38], 0xc
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x455295
mov byte [esp + 0x11a8], bl
mov esi, dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
lea ecx, [esp + 0x114]
call esi
lea ecx, [esp + 0x8c]
mov dword [esp + 0x11a8], 0xffffffff
call esi
xor eax, eax
jmp 0x45540f
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x48], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esp + 0x20]
mov esi, dword [sym.imp.LibDui.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const]
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], eax
lea edx, [esp + 0x48]
xor eax, eax
push edx
lea ecx, [esp + 0x94]
mov word [esp + 0x7c], ax
mov dword [esp + 0x78], 0x101
call esi
push eax
push ebx
push 0x10
push 1
push ebx
push ebx
push str.tapinstall.exe_remove_tap0901
lea ecx, [esp + 0x138]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x455264
mov eax, dword [esp + 0x20]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebp
push 0xfff
lea ecx, [esp + 0x1a1]
push ebx
push ecx
mov byte [esp + 0x1a8], bl
call fcn.0048e2b0
mov ecx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
push ebx
lea edx, [esp + 0x28]
push edx
push 0xfff
lea eax, [esp + 0x1a8]
push eax
push ecx
call esi
test eax, eax
je 0x4553c7
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x455360
lea edx, [esp + 0x19c]
push str.No_devices_were_removed
push edx
call fcn.00485b10
add esp, 8
cmp eax, ebx
jne 0x4553b9
lea eax, [esp + 0x19c]
push str.were_removed
push eax
call fcn.00485b10
add esp, 8
cmp eax, ebx
jne 0x4553bf
push 0x1f4
call edi
mov eax, dword [esp + 0x14]
push ebx
lea ecx, [esp + 0x28]
push ecx
push 0xfff
lea edx, [esp + 0x1a8]
push edx
push eax
call esi
test eax, eax
jne 0x455360
jmp 0x4553c7
mov dword [esp + 0x18], ebx
jmp 0x4553c7
mov dword [esp + 0x18], 1
mov ecx, dword [esp + 0x38]
push ecx
call ebp
mov edx, dword [esp + 0x14]
push edx
call ebp
mov eax, dword [esp + 0x34]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov byte [esp + 0x11a8], bl
mov esi, dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
lea ecx, [esp + 0x114]
call esi
lea ecx, [esp + 0x8c]
mov dword [esp + 0x11a8], 0xffffffff
call esi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x11a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1188]
xor ecx, esp
call fcn.0047bfe0
add esp, 0x1198
ret