Function at 0x10078a10
Capabilities:
Create pipe
Manipulate boot configuration

Disassembly:
push ebp
lea ebp, [esp - 0x728]
sub esp, 0x728
push 0xfffffffffffffffe
push 0x1016f3c0
push 0x10118480
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x1017455c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x724], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov byte [ebp + 0x104], bl
push 0x3ff
push ebx
lea eax, [ebp + 0x105]
push eax
call fcn.10116880
mov byte [ebp + 0x608], bl
push 0x103
push ebx
lea ecx, [ebp + 0x609]
push ecx
call fcn.10116880
add esp, 0x18
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp + 0x718], bl
xor eax, eax
mov dword [ebp + 0x719], eax
mov dword [ebp + 0x71d], eax
mov byte [ebp + 0x721], al
mov byte [ebp + 0x70c], bl
mov dword [ebp + 0x70d], eax
mov dword [ebp + 0x711], eax
mov byte [ebp + 0x715], al
lea esi, [ebp + 0x70c]
call fcn.10048200
mov dl, byte [ebp + 0x70c]
mov byte [ebp + 0x718], dl
mov byte [ebp + 0x719], 0x3a
mov byte [ebp + 0x71a], bl
mov dword [ebp - 4], ebx
call fcn.1004fe90
test eax, eax
je 0x10078e52
call fcn.1004f190
test eax, eax
je 0x10078b13
lea eax, [ebp - 0x1c]
push eax
call fcn.1004f240
add esp, 4
mov dword [ebp - 0x20], eax
mov byte [ebp + 0x504], bl
push 0x103
push ebx
lea ecx, [ebp + 0x505]
push ecx
call fcn.10116880
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x40], esi
cmp esi, ebx
jne 0x10078b54
lea edx, [ebp + 0x718]
push edx
push str._sESNExp.bcd
lea eax, [ebp + 0x504]
push eax
call fcn.1010d6a8
add esp, 0xc
jmp 0x10078b70
push esi
lea ecx, [ebp + 0x718]
push ecx
push str._sESNExp_2u.bcd
lea edx, [ebp + 0x504]
push edx
call fcn.1010d6a8
add esp, 0x10
push 1
push ebx
xor edx, edx
lea ecx, [ebp + 0x504]
call fcn.10044660
add esp, 8
test eax, eax
je 0x10078e43
lea eax, [ebp + 0x504]
push eax
push str.BCDEDIT.exe__export___s_
lea ecx, [ebp + 0x104]
push ecx
call fcn.1010d6a8
lea eax, [ebp + 0x104]
call fcn.10047700
push ebx
push ebx
xor edx, edx
lea ecx, [ebp + 0x504]
call fcn.10044660
add esp, 0x14
test eax, eax
jne 0x10078bcf
lea esi, [ebp + 0x504]
call fcn.10079e40
mov dword [ebp - 0x38], 0x104
push str.ERMID
lea eax, [ebp - 0x38]
lea edi, [ebp + 0x608]
mov ecx, str.SoftwareMicroWorld
mov edx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.100315c0
cmp byte [ebp + 0x608], bl
je 0x10078c1d
cmp dword [ebp - 0x20], ebx
je 0x10078c0c
mov edx, dword [ebp - 0x1c]
push edx
call fcn.1004f2c0
add esp, 4
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x10078e5b
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], 0xc
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x30], ebx
push ebx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x10078c82
cmp ebx, ebx
je 0x10078c68
push str.CreatePipe___failed_
push ebx
call fcn.1010d6a8
add esp, 8
cmp dword [ebp - 0x20], ebx
je 0x10078e52
mov eax, dword [ebp - 0x1c]
push eax
call fcn.1004f2c0
add esp, 4
jmp 0x10078e52
push 0x44
push ebx
lea ecx, [ebp - 0x94]
push ecx
call fcn.10116880
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x94], 0x44
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x68], 0x101
lea esi, [ebp]
call fcn.100782e0
mov edx, esi
push edx
push str.BCDEDIT.exe__create__d__s__application_bootsector
lea eax, [ebp + 0x104]
push eax
call fcn.1010d6a8
push ebx
push ebx
push 1
lea ecx, [ebp + 0x104]
push ecx
lea edi, [ebp - 0x50]
lea ebx, [ebp - 0x94]
call fcn.10047600
add esp, 0x28
test eax, eax
jne 0x10078d47
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x10078d11
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcess___failed__Error_Code:__u
push esi
call fcn.1010d6a8
add esp, 0xc
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10078d1f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x10078d2d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], esi
je 0x10078e52
mov edx, dword [ebp - 0x1c]
push edx
call fcn.1004f2c0
add esp, 4
jmp 0x10078e52
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10078d5a
mov eax, dword [ebp - 0x1c]
push eax
call fcn.1004f2c0
add esp, 4
mov ecx, dword [ebp - 0x50]
push ecx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov edx, dword [ebp - 0x4c]
push edx
call esi
lea eax, [ebp + 0x608]
push eax
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
call fcn.100788e0
add esp, 4
cmp byte [ebp + 0x608], 0
je 0x10078e52
lea ecx, [ebp + 0x608]
push ecx
push str.SoftwareMicroWorld
mov edx, str.ERMID
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.100312a0
lea edx, [ebp + 0x718]
push edx
lea eax, [ebp + 0x608]
push eax
push str.BCDEDIT.exe__set__s_device_partition_s
lea ecx, [ebp + 0x104]
push ecx
call fcn.1010d6a8
add esp, 0x10
call fcn.1004f190
test eax, eax
je 0x10078de5
lea edx, [ebp - 0x1c]
push edx
call fcn.1004f240
add esp, 4
mov dword [ebp - 0x20], eax
mov ebx, eax
lea eax, [ebp + 0x104]
call fcn.10047700
test eax, eax
je 0x10078dfb
test ebx, ebx
jmp 0x10078c6b
lea ecx, [ebp + 0x608]
push ecx
push str.BCDEDIT.exe__set__s_path_grldr.mbr
lea edx, [ebp + 0x104]
push edx
call fcn.1010d6a8
add esp, 0xc
lea eax, [ebp + 0x104]
call fcn.10047700
mov esi, eax
test ebx, ebx
je 0x10078e33
mov eax, dword [ebp - 0x1c]
push eax
call fcn.1004f2c0
add esp, 4
test esi, esi
jne 0x10078e52
mov dword [ebp - 4], 0xfffffffe
lea eax, [esi + 1]
jmp 0x10078e5b
inc esi
jmp 0x10078b30
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x724]
xor ecx, ebp
call fcn.1010d699
add ebp, 0x728
mov esp, ebp
pop ebp
ret