Function at 0x4075b0
Capabilities:
Accept command line arguments
Create pipe
Read file on windows
Read pipe
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x424308]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc0], edi
mov byte [ebp - 0x90], al
cmp esi, 2
jge 0x4075fe
mov ecx, dword [ebp - 0x90]
push ecx
call fcn.00405590
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410451
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 4]
push 0x41e888
push edx
call fcn.00411a6c
add esp, 8
test eax, eax
je 0x407be0
mov eax, dword [edi + 4]
push str._help
push eax
call fcn.00411a6c
add esp, 8
test eax, eax
je 0x407be0
mov ecx, dword [edi + 4]
push 0x41e870
push ecx
call fcn.00411a6c
add esp, 8
test eax, eax
je 0x407be0
mov edx, dword [edi + 4]
push str.__help
push edx
call fcn.00411a6c
add esp, 8
test eax, eax
je 0x407be0
push ebx
push 0x3a
push 0x2f
push edi
push esi
lea ecx, [ebp - 0xb4]
call fcn.004073c0
push 0x41e850
lea ecx, [ebp - 0xb4]
call fcn.00405fe0
xor ebx, ebx
test al, al
je 0x407726
push 0xffffffffffffffff
push 0x41e850
lea ecx, [ebp - 0x30]
call fcn.00401300
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xa4]
call fcn.00406d10
mov eax, dword [eax]
cmp eax, ebx
jne 0x4076b7
mov eax, 0x421594
push ebx
lea ecx, [ebp - 0xb8]
push ecx
push 0x41e378
push eax
lea ecx, [ebp - 0xbc]
call fcn.004019a0
lea ecx, [ebp - 0x30]
call fcn.00401000
mov eax, dword [ebp - 0xbc]
cmp eax, 0xffffffff
je 0x407726
push 0x41e84c
push 1
push eax
call fcn.004117cc
add esp, 8
push eax
call fcn.00411287
mov esi, eax
mov ecx, 8
lea edi, [ebp - 0xec]
add esp, 8
rep movsd dword es:[edi], dword [esi]
call fcn.004110d2
lea edi, [eax + 0x20]
mov ecx, 8
lea esi, [ebp - 0xec]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0xc0]
mov esi, dword [ebp - 0x90]
push 1
push esi
lea edx, [ebp - 0x94]
push edx
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x94], 0x8007139f
call fcn.00402a90
lea ecx, [ebp - 0x8c]
call fcn.004057b0
test al, al
jne 0x4079fc
mov eax, dword [ebp - 0x94]
cmp eax, 0x80070005
jne 0x407998
lea eax, [ebp - 0x24]
xor ecx, ecx
mov esi, 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], esi
mov word [ebp - 0x24], cx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea edx, [ebp - 0x30]
push str..pipeWinCDEmu_BatchMnt_UAC__d
push edx
call fcn.00405d10
mov eax, dword [ebp - 0x30]
add esp, 0xc
cmp eax, ebx
jne 0x4077aa
mov eax, 0x421594
push ebx
push 0x8000
push 0x8000
push ebx
push esi
push ebx
push 3
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov edi, eax
xor ecx, ecx
lea eax, [ebp - 0x50]
mov dword [ebp - 0x54], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x50], cx
cmp edi, 0xffffffff
jne 0x4077fe
call esi
push 0x3e
push eax
call fcn.0040ff4a
add esp, 8
test eax, eax
je 0x4077fe
call esi
push eax
lea ecx, [ebp - 0x5c]
call fcn.004052a0
jmp 0x40781f
mov eax, dword [ebp - 0x30]
cmp eax, ebx
jne 0x40780a
mov eax, 0x421594
push eax
call esi
push eax
lea edx, [ebp - 0x5c]
push str._s__UACPIPE:_s
push edx
call fcn.00405d10
add esp, 0x10
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
jne 0x40782b
mov eax, 0x421594
push ebx
lea ecx, [ebp - 0x94]
push ecx
push str.runas
push eax
lea ecx, [ebp - 0xdc]
call fcn.00405fa0
mov eax, dword [ebp - 0x94]
cmp eax, ebx
jge 0x4078a1
push eax
lea edx, [ebp - 0x88]
push edx
call fcn.00401020
mov eax, dword [ebp - 0x88]
add esp, 8
cmp eax, ebx
jne 0x40786d
mov eax, 0x421594
push eax
push str.Cannot_run_elevated_process:__S_n
call fcn.00410394
add esp, 8
lea ecx, [ebp - 0x88]
call fcn.00401000
lea ecx, [ebp - 0xdc]
call fcn.00405540
lea ecx, [ebp - 0x5c]
call fcn.00401000
lea ecx, [ebp - 0x30]
jmp 0x4079cb
mov eax, dword [ebp - 0xdc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
lea ecx, [ebp - 0x90]
push ecx
push ebx
push ebx
push ebx
push edi
mov dword [ebp - 0x90], ebx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov eax, dword [ebp - 0x90]
cmp eax, ebx
je 0x407964
push ebx
push eax
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xc4], ebx
call fcn.00401950
mov eax, dword [ebp - 0x90]
mov esi, dword [ebp - 0xcc]
push ebx
lea edx, [ebp - 0x90]
push edx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x90]
push ebx
lea ecx, [ebp - 0x90]
push ecx
push edx
push esi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, ebx
je 0x40793e
push esi
call fcn.004101bf
add esp, 4
push ebx
lea eax, [ebp - 0x90]
push eax
push ebx
push ebx
push ebx
push edi
mov dword [ebp - 0x90], ebx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov eax, dword [ebp - 0x90]
cmp eax, ebx
jne 0x4078d6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xdc]
call fcn.00405570
lea ecx, [ebp - 0xdc]
mov esi, eax
call fcn.00405540
lea ecx, [ebp - 0x5c]
call fcn.00401000
lea ecx, [ebp - 0x30]
call fcn.00401000
jmp 0x407aee
push eax
lea ecx, [ebp - 0x88]
push ecx
call fcn.00401020
mov eax, dword [ebp - 0x88]
add esp, 8
cmp eax, ebx
jne 0x4079b7
mov eax, 0x421594
push eax
push str.Cannot_connect_to_BazisVirtualCDBus.sys:__S_n
call fcn.00410394
add esp, 8
lea ecx, [ebp - 0x88]
call fcn.00401000
lea ecx, [ebp - 0x8c]
call fcn.00403190
lea ecx, [ebp - 0xb4]
call fcn.00407380
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410451
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 4]
push str._list
push edx
call fcn.00411a6c
add esp, 8
test eax, eax
jne 0x407a57
cmp dword [ebp + 8], 3
jl 0x407a42
mov eax, dword [edi + 8]
push str._handles
push eax
call fcn.00411a6c
add esp, 8
test eax, eax
jne 0x407a42
lea ecx, [ebp - 0x8c]
push 1
push ecx
call fcn.00407000
add esp, 8
jmp 0x407aec
lea edx, [ebp - 0x8c]
push ebx
push edx
call fcn.00407000
add esp, 8
jmp 0x407aec
mov eax, dword [edi + 4]
push str._unmountall
push eax
call fcn.00411a6c
add esp, 8
test eax, eax
jne 0x407ab9
push str.Unmounting_all_devices...
call fcn.00410394
add esp, 4
push 0x41e730
lea ecx, [ebp - 0xb8]
push ecx
lea ecx, [ebp - 0x8c]
call fcn.004029b0
lea ecx, [ebp - 0x8c]
call fcn.00403190
lea ecx, [ebp - 0xb4]
call fcn.00407380
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410451
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 4]
push str._check
push edx
call fcn.00411a6c
add esp, 8
test eax, eax
jne 0x407b17
cmp dword [ebp + 8], 3
jl 0x407ad9
mov edi, dword [edi + 8]
jmp 0x407adb
xor edi, edi
push ebx
lea eax, [ebp - 0x8c]
push edi
push eax
call fcn.004070d0
add esp, 0xc
mov esi, eax
lea ecx, [ebp - 0x8c]
call fcn.00403190
lea ecx, [ebp - 0xb4]
call fcn.00407380
pop ebx
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410451
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 4]
push str._unmount
push ecx
call fcn.00411a6c
add esp, 8
test eax, eax
jne 0x407b5b
cmp dword [ebp + 8], 3
jl 0x407b47
mov edi, dword [edi + 8]
lea edx, [ebp - 0x8c]
push edi
push edx
call fcn.00407210
add esp, 8
jmp 0x407aec
xor edi, edi
lea edx, [ebp - 0x8c]
push edi
push edx
call fcn.00407210
add esp, 8
jmp 0x407aec
mov ecx, dword [ebp - 0xb0]
sub ecx, dword [ebp - 0xb4]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jae 0x407b8b
push esi
call fcn.00405590
add esp, 4
jmp 0x407aec
push 0x41e704
push 0x41e700
push str.wait
lea ecx, [ebp - 0xb4]
call fcn.00406ea0
push eax
call fcn.004110c7
add esp, 4
push eax
push ebx
push 1
lea ecx, [ebp - 0xb4]
call fcn.004058f0
push eax
push ebx
push ebx
lea ecx, [ebp - 0xb4]
call fcn.004058f0
push eax
lea ecx, [ebp - 0x8c]
push ecx
call fcn.00405ac0
add esp, 0x10
jmp 0x407aec
mov edx, dword [ebp - 0x90]
push edx
call fcn.00405590
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
xor ecx, ebp
pop esi
call fcn.00410451
mov esp, ebp
pop ebp
ret