Function at 0x40e1f0
Capabilities:
Create pipe
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], 0xc6ef3720
mov dword [ebp - 0x28], 0x9e3779b9
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x20], edx
cmp dword [0x2b96804], 0xf
jne 0x40e257
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [ebp - 4], 0
jmp 0x40e269
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x20
jae 0x40e3f2
mov ecx, dword [ebp - 0x30]
shl ecx, 4
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x30]
shr ecx, 5
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x14], eax
mov dword [0x2b95b44], 0xe9ea0636
mov edx, dword [ebp - 0x1c]
xor edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.0040e1b0
cmp dword [0x2b96804], 0x42
jne 0x40e31a
mov dword [ebp - 0x44], 0
xor edx, edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x78], 0
push 0x30
push 0
lea eax, [ebp - 0x74]
push eax
call fcn.00406370
add esp, 0xc
push 0
lea ecx, [ebp - 0x78]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetDefaultCommConfigW]
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
cmp dword [0x2b96804], 0x839
jne 0x40e337
push 0
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
mov eax, dword [ebp - 0xc]
shl eax, 4
mov dword [ebp - 0x1c], eax
cmp dword [0x2b96804], 0x78c
jne 0x40e36b
push 0
push 0
call sub.KERNEL32.dll_SetSystemPowerState
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [ebp - 8]
add dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
cmp dword [0x2b96804], 0x196
jne 0x40e390
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessPriorityBoost]
mov dword [0x2b95b48], 0xcbd61084
mov dword [0x2b95b4c], 0xffffffff
mov edx, dword [ebp - 0xc]
shr edx, 5
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x14], eax
cmp dword [0x2b96804], 0xec6
jne 0x40e3c9
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
xor ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x30]
sub edx, dword [ebp - 0x1c]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
jmp 0x40e260
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x30]
mov dword [ecx], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov esp, ebp
pop ebp
ret 8