Function at 0x40f550
Capabilities:
Create pipe
Create process on windows
Print debug messages
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f8
mov eax, dword [0x448d60]
xor eax, ebp
mov dword [ebp - 0x84], eax
push str.ContinentTLS:_show_Dialog..._n
call fcn.0040e130
add esp, 4
push 0x104
lea eax, [ebp - 0x1e8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40f5a6
push 0x4374dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040e240
add esp, 8
xor eax, eax
jmp 0x40fa8a
push 0x5c
lea ecx, [ebp - 0x1e8]
push ecx
call fcn.00418a00
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40f5d3
push 0x4376fc
mov edx, dword [ebp - 8]
push edx
call fcn.0042ae40
add esp, 8
jmp 0x40f5e7
push str.Interface.exe
lea eax, [ebp - 0x1e8]
push eax
call fcn.0042ae40
add esp, 8
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push eax
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
jne 0x40f616
push 0x4375ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040e240
add esp, 8
xor eax, eax
jmp 0x40fa8a
mov dword [ebp - 0x30], 0xc
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 1
push 0
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x40f65e
push 0x43770c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040e240
add esp, 8
xor eax, eax
jmp 0x40fa8a
mov dword [ebp - 0x80], 0
push 0x40
push 0
lea edx, [ebp - 0x7c]
push edx
call fcn.0042adc0
add esp, 0xc
mov dword [ebp - 0x80], 0x44
mov dword [ebp - 0x54], 0x100
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x80], 0x44
push str.CreateProcessAsUser_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x80]
push edx
push 0
push 0
push 0x8000000
push 1
push 0
push 0
lea eax, [ebp - 0x1e8]
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x40f6f0
push str.CreateProcessAsUser
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040e240
add esp, 8
or eax, 0xffffffff
jmp 0x40fa8a
push str.WaitForSingleObject_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0xea60
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.GetExitCodeProcess_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0xdc]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x40f748
push 0x437cd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040e240
add esp, 8
mov dword [ebp - 0xdc], 2
push str.TerminateProcess_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0xfffffffffffffffd
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x452394], 0
je 0x40f793
mov edx, dword [0x452394]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x452394], 0
cmp dword [0x452398], 0
je 0x40f7dc
mov eax, dword [0x4523a4]
push eax
push 0
mov ecx, dword [0x452398]
push ecx
call fcn.0042adc0
add esp, 0xc
mov edx, dword [0x452398]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push 0
push 0
push 0x70
push 4
call fcn.0040e190
add esp, 0x14
mov dword [0x452398], 0
cmp dword [ebp - 0xdc], 0
jne 0x40f8e3
mov dword [ebp - 0x1ec], 0
push 0
lea eax, [ebp - 0x1ec]
push eax
push 0x4c
lea ecx, [ebp - 0xd8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40f81c
cmp dword [ebp - 0x1ec], 0x4c
je 0x40f837
push str.ReadFile_info
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040e240
add esp, 8
xor eax, eax
jmp 0x40fa8a
cmp dword [ebp - 0xd8], 0
jle 0x40f854
mov eax, dword [ebp - 0xd8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x452394], eax
cmp dword [0x452394], 0
jne 0x40f878
push 0x437d0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040e240
add esp, 8
xor eax, eax
jmp 0x40fa8a
mov ecx, dword [ebp - 0xd8]
mov dword [0x4523a0], ecx
push 0
lea edx, [ebp - 0x1ec]
push edx
mov eax, dword [ebp - 0xd8]
push eax
mov ecx, dword [0x452394]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40f8b7
mov eax, dword [ebp - 0x1ec]
cmp eax, dword [ebp - 0xd8]
je 0x40f8d2
push str.ReadFile_cert
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040e240
add esp, 8
xor eax, eax
jmp 0x40fa8a
push 0x28
lea ecx, [ebp - 0xb4]
push ecx
call fcn.0041bb5f
add esp, 8
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4523a4], 0x20
mov eax, dword [0x4523a4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x452398], eax
cmp dword [0x452398], 0
jne 0x40f92e
push 0x437d28
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040e240
add esp, 8
xor eax, eax
jmp 0x40fa8a
mov ecx, dword [0x4523a4]
push ecx
lea edx, [ebp - 0xd4]
push edx
mov eax, dword [0x452398]
push eax
call fcn.0042a7e0
add esp, 0xc
push 0x4c
push 0
lea ecx, [ebp - 0xd8]
push ecx
call fcn.0042adc0
add esp, 0xc
cmp dword [ebp - 0xdc], 0
je 0x40f9dd
cmp dword [ebp - 0xdc], 0
jge 0x40f985
push str.ShowDialog
mov edx, dword [ebp - 0xdc]
push edx
call fcn.0040e240
add esp, 8
jmp 0x40f9b7
mov eax, dword [ebp - 0xdc]
push eax
push 0x437d40
lea ecx, [ebp - 0x1f8]
push ecx
call fcn.0042a738
add esp, 0xc
push 0
push 0
lea edx, [ebp - 0x1f8]
push edx
push 0x6f
push 2
call fcn.0040e190
add esp, 0x14
cmp dword [0x452394], 0
je 0x40f9cc
mov eax, dword [0x452394]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x452394], 0
xor eax, eax
jmp 0x40fa8a
cmp dword [0x452394], 0
je 0x40f9f8
cmp dword [0x452398], 0
je 0x40f9f8
cmp dword [0x4523a4], 0
jne 0x40fa1c
cmp dword [0x452394], 0
je 0x40fa0e
mov ecx, dword [0x452394]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x452394], 0
xor eax, eax
jmp 0x40fa8a
mov dword [ebp - 0xc], 0xff
mov dword [ebp - 0x34], 0x3ff
lea edx, [ebp - 0x34]
push edx
push 0x451f78
lea eax, [ebp - 0xc]
push eax
push 0x451e48
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0040ef70
add esp, 0x14
test eax, eax
jne 0x40fa59
mov dword [ebp - 0x34], 0
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x451e48], 0
mov ecx, dword [ebp - 0x34]
mov byte [ecx + 0x451f78], 0
push 0
push 0x451e48
push 0x451f78
push 0x6e
push 4
call fcn.0040e190
add esp, 0x14
mov eax, 1
mov ecx, dword [ebp - 0x84]
xor ecx, ebp
call fcn.0042a637
mov esp, ebp
pop ebp
ret