Function at 0x1002a160
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005b5e9
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x10073010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov eax, ecx
mov dword [ebp - 0x38], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], edi
mov dword [eax], 0
mov dword [eax + 4], 0x20000000
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
call sym.ISDI2.dll_private:_void___thiscall_CConsolidatedError::SetErrorCodeString_void_
push 0x90
push 0
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 0x40], 1
call fcn.1004c670
mov eax, dword [ebx + 0x78]
add esp, 0xc
mov dword [esi + 0x78], eax
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov al, byte [edi + 0xe]
mov byte [esi + 9], al
lea eax, [ebp - 0x34]
mov dword [esi + 0xc], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 1
push dword [edi + 0x10]
push str.Disk._d
push 0x20
push eax
call fcn.1004af86
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
push 3
call fcn.1001bfb0
mov ecx, eax
call fcn.10046980
mov dword [esi + 0x20], eax
xor ecx, ecx
mov dword [esi + 0x84], 1
mov dword [esi + 0x24], 2
mov eax, dword [edi + 0x10]
xor edi, edi
mov dword [esi + 0x28], eax
cmp dword [ebx + 0x2c], ecx
ja 0x1002a26d
xor eax, eax
jmp 0x1002a277
mov eax, dword [ebx + 0x28]
mov ecx, 1
mov eax, dword [eax]
test eax, eax
je 0x1002a2b1
mov edx, dword [ebp - 0x3c]
mov edx, dword [edx + 0xc]
cmp dword [eax + 4], edx
je 0x1002a298
cmp ecx, dword [ebx + 0x2c]
jae 0x1002a2b1
mov eax, dword [ebx + 0x28]
mov eax, dword [eax + ecx*4]
inc ecx
test eax, eax
jne 0x1002a281
jmp 0x1002a2b1
push 0
push 0x10077284
push 0x100771dc
push 0
push eax
call fcn.10059811
add esp, 0x14
mov edi, eax
mov dword [esi + 0x34], 1
mov dword [esi + 0x3c], 1
test edi, edi
je 0x1002a385
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x1002a385
cmp dword [edi + 0x18], 0
je 0x1002a385
call fcn.10009c70
mov eax, dword [eax]
shr eax, 0x15
and eax, 1
mov dword [esi + 0x2c], eax
mov ecx, dword [edi + 0x10]
call fcn.10009c70
mov eax, dword [eax]
shr eax, 0x12
and eax, 1
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0x18]
call fcn.10009a60
mov ebx, 3
movzx ecx, word [eax]
cmp ecx, 1
jne 0x1002a319
mov dword [esi + 0x40], ecx
jmp 0x1002a32d
cmp ecx, 2
jne 0x1002a323
mov dword [esi + 0x40], ecx
jmp 0x1002a32d
xor eax, eax
cmp ecx, ebx
cmove eax, ebx
mov dword [esi + 0x40], eax
mov ecx, dword [edi + 0x18]
call fcn.10009a60
movzx ecx, word [eax + 4]
cmp ecx, 1
jne 0x1002a343
mov dword [esi + 0x38], ecx
jmp 0x1002a357
cmp ecx, 2
jne 0x1002a34d
mov dword [esi + 0x38], ecx
jmp 0x1002a357
xor eax, eax
cmp ecx, ebx
cmove eax, ebx
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x18]
call fcn.10009a60
mov edi, dword [ebp - 0x38]
movzx ecx, word [eax]
cmp ecx, 1
jne 0x1002a36f
mov dword [esi + 0x44], ecx
jmp 0x1002a3b7
cmp ecx, 2
jne 0x1002a379
mov dword [esi + 0x44], ecx
jmp 0x1002a3b7
xor eax, eax
cmp ecx, ebx
cmove eax, ebx
mov dword [esi + 0x44], eax
jmp 0x1002a3b7
mov edi, dword [ebp - 0x38]
mov ecx, edi
push str.Could_not_get_port_for_the_disk_in__fillPhyInfofromAhciDisks
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x44], 0
call sym.ISDI2.dll_public:_void___thiscall_CConsolidatedError::AddDebugInformation_char_const__
mov dword [esi + 0x48], 0
mov eax, edi
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1004952f
mov esp, ebp
pop ebp
ret