Function at 0x1010d03
Capabilities:
Get disk information via ioctl
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push esi
push edi
mov ebx, 0x4830
push ebx
xor esi, esi
push esi
push dword [eax + 0x18]
xor edi, edi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x1010d41
mov dword [ebp - 4], 0x5aa
jmp 0x1010f7d
push esi
lea ecx, [ebp - 0x10]
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x1010daa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, 0x7a
je 0x1010d64
cmp eax, 0xea
jne 0x1010dbe
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add dword [ebp - 0xc], 0x2400
push dword [ebp - 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 8], eax
cmp eax, esi
je 0x1010f3e
push esi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0xc]
push eax
push esi
push esi
push 0x70050
push dword [ebp + 8]
call ebx
test eax, eax
je 0x1010d4f
mov dword [ebp - 4], esi
cmp dword [ebp - 4], esi
je 0x1010f34
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, 0x808
push ecx
push esi
push dword [eax + 0x18]
mov dword [ebp - 0xc], ecx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
cmp edi, esi
je 0x1010f3e
push esi
lea eax, [ebp - 0x10]
push eax
push 0x808
jmp 0x1010e51
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, 0x7a
je 0x1010e0e
cmp eax, 0xea
jne 0x1010e65
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add dword [ebp - 0xc], 0x800
push dword [ebp - 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
cmp edi, esi
je 0x1010f3e
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push edi
push esi
push esi
push 0x7400c
push dword [ebp + 8]
call ebx
test eax, eax
je 0x1010df9
mov dword [ebp - 4], esi
cmp dword [ebp - 4], esi
jne 0x1010f45
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ebx, dword [edi]
mov eax, dword fs:[0x18]
imul ebx, ebx, 0x90
mov eax, dword [eax + 0x30]
add ebx, 0x30
push ebx
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 8], eax
cmp eax, esi
je 0x1010f3e
push ebx
push esi
push eax
call sub.msvcrt.dll_memset
mov ecx, dword [ebp - 8]
mov dword [ecx], esi
mov eax, dword [edi]
mov dword [ecx + 4], eax
mov eax, dword [edi + 4]
mov dword [ecx + 8], eax
add esp, 0xc
lea ebx, [ecx + 0x30]
lea eax, [edi + 8]
mov dword [ebp + 8], ebx
mov dword [ebp - 0xc], esi
cmp dword [edi], esi
jbe 0x1010f34
lea ecx, [ebx + 0x10]
mov edx, 0x90
jmp 0x1010ee6
mov ebx, dword [ebp + 8]
mov dword [ebx], esi
mov ebx, dword [eax]
mov dword [ecx - 8], ebx
mov ebx, dword [eax + 4]
mov dword [ecx - 4], ebx
mov ebx, dword [eax + 8]
inc dword [ebp - 0xc]
mov dword [ecx], ebx
mov ebx, dword [eax + 0xc]
add dword [ebp + 8], edx
mov dword [ecx + 4], ebx
mov ebx, dword [eax + 0x14]
mov dword [ecx + 8], ebx
mov bl, byte [eax + 0x1b]
mov byte [ecx + 0xc], bl
mov bl, byte [eax + 0x18]
mov byte [ecx + 0x10], bl
mov bl, byte [eax + 0x19]
mov byte [ecx + 0x11], bl
mov bl, byte [eax + 0x1a]
mov byte [ecx + 0x12], bl
mov ebx, dword [eax + 0x10]
mov dword [ecx + 0x14], ebx
mov ebx, dword [ebp - 0xc]
add eax, 0x20
add ecx, edx
cmp ebx, dword [edi]
jb 0x1010ee3
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
jmp 0x1010f45
mov dword [ebp - 4], 0x5aa
cmp edi, esi
je 0x1010f5d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 4], esi
je 0x1010f7d
cmp dword [ebp - 8], esi
je 0x1010f7d
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8