Function at 0x10008990
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10047b4c
mov eax, dword fs:[0]
push eax
sub esp, 0xc70
mov eax, dword [0x10056024]
xor eax, esp
mov dword [esp + 0xc68], eax
push ebx
push esi
push edi
mov eax, dword [0x10056024]
xor eax, esp
push eax
lea eax, [esp + 0xc80]
mov dword fs:[0], eax
mov edi, ecx
call sub.diskmgr.dll_CreateDdmManager
mov dword [edi + 4], eax
call sub.FuncLogic.dll_CreateEnumDisk
mov dword [edi], eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [edi]
mov edx, dword [ecx]
mov esi, eax
mov eax, dword [edx + 0x18]
mov dword [esp + 0x28], esi
call eax
mov ecx, dword [edi]
mov edx, dword [ecx]
mov dword [esp + 0x30], eax
mov eax, dword [edx + 0x20]
call eax
xor ebx, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0xc88], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
cmp esi, ebx
mov byte [esp + 0xc88], 3
mov dword [esp + 0x14], ebx
jbe 0x10008b55
mov ecx, dword [edi]
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
lea eax, [esp + 0x274]
push eax
push ebx
call edx
lea eax, [esp + 0x274]
lea esi, [esp + 0x44]
call fcn.10008c70
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
push ebx
call edx
xor esi, esi
test eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x10], esi
jbe 0x10008b42
mov edi, edi
mov ecx, dword [edi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [esp + 0x74]
push edx
push esi
push ebx
call eax
mov ebx, dword [esp + 0x1c]
test ebx, ebx
mov eax, dword [esp + 0x20]
je 0x10008b02
mov edx, dword [esp + 0x24]
mov ecx, eax
sub ecx, ebx
sub edx, ebx
sar ecx, 9
sar edx, 9
cmp ecx, edx
jae 0x10008b02
mov edx, dword [esp + 0x28]
mov byte [esp + 0x58], 0
mov ecx, dword [esp + 0x58]
push ecx
push edx
lea ebx, [esp + 0x7c]
mov edx, 1
mov esi, eax
call fcn.10009300
add esp, 8
add esi, 0x200
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x10]
jmp 0x10008b2d
cmp ebx, eax
mov dword [esp + 0x10], eax
jbe 0x10008b10
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x10]
push ecx
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x28]
call fcn.100076c0
mov ebx, dword [esp + 0x14]
add esi, 1
cmp esi, dword [esp + 0x54]
mov dword [esp + 0x10], esi
jb 0x10008aa0
add ebx, 1
cmp ebx, dword [esp + 0x28]
mov dword [esp + 0x14], ebx
jb 0x10008a60
xor ebx, ebx
cmp dword [esp + 0x30], ebx
jbe 0x10008b8d
jmp 0x10008b60
mov ecx, dword [edi]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
lea eax, [esp + 0x274]
push eax
push ebx
call edx
lea eax, [esp + 0x274]
lea esi, [esp + 0x5c]
call fcn.10008c70
add ebx, 1
cmp ebx, dword [esp + 0x30]
jb 0x10008b60
xor ebx, ebx
cmp dword [esp + 0x2c], ebx
jbe 0x10008bc0
mov ecx, dword [edi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
lea edx, [esp + 0x274]
push edx
push ebx
call eax
lea eax, [esp + 0x274]
lea esi, [esp + 0x34]
call fcn.10008c70
add ebx, 1
cmp ebx, dword [esp + 0x2c]
jb 0x10008b93
xor ebx, ebx
mov edi, dword [edi + 4]
mov edx, dword [edi]
mov edx, dword [edx]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, edi
call edx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x10008bf0
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x38]
cmp eax, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
je 0x10008c0d
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x48]
cmp eax, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
je 0x10008c2a
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x60]
cmp eax, ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
je 0x10008c47
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0xc80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc68]
xor ecx, esp
call fcn.10045f6c
mov esp, ebp
pop ebp
ret