Function at 0x10047960
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x1009c04b
mov eax, dword fs:[0]
push eax
mov eax, 0x1034
call fcn.10088280
mov eax, dword [0x100c230c]
xor eax, esp
mov dword [esp + 0x1030], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100c230c]
xor eax, esp
push eax
lea eax, [esp + 0x1048]
mov dword fs:[0], eax
mov eax, dword [esp + 0x105c]
mov ebp, dword [esp + 0x1058]
xor ebx, ebx
mov edi, edx
push 0xfff
lea edx, [esp + 0x49]
push ebx
push edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x50], bl
call fcn.10079c60
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x1000
lea esi, [esp + 0x50]
mov edx, esi
push edx
push ebx
push 9
push edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
test eax, eax
je 0x10047ce1
jmp 0x10047a18
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x38]
inc ebx
cmp ebx, 0x400
mov dword [esp + 0x38], ebx
jge 0x10047ce1
cmp dword [esp + 0x1c], 0
jbe 0x10047c9f
lea eax, [esi + 0x38]
test eax, eax
je 0x10047c9f
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0xc]
xor ebx, ebx
sar eax, 5
mov dword [esp + 0x30], ebx
test eax, eax
jbe 0x10047c29
xor edi, edi
mov dword [esp + 0x24], edi
cmp ebx, eax
jb 0x10047a65
call fcn.100759ec
movzx ecx, word [esi + 0x14]
mov eax, dword [ebp + 0xc]
cmp ecx, dword [edi + eax + 0x1c]
jne 0x10047b6d
mov edx, dword [ebp + 0x10]
sub edx, eax
sar edx, 5
cmp ebx, edx
jb 0x10047a87
call fcn.100759ec
mov eax, dword [ebp + 0xc]
add eax, edi
cmp dword [eax + 0x18], 8
jb 0x10047a97
mov eax, dword [eax + 4]
jmp 0x10047a9a
add eax, 4
push eax
lea eax, [esi + 0x38]
push eax
call fcn.10075d21
add esp, 8
test eax, eax
jne 0x10047b6d
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0xc]
sar eax, 5
cmp ebx, eax
jb 0x10047ac1
call fcn.100759ec
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + edi + 0x14]
add ecx, edi
push str.ntfs
mov edi, 4
call fcn.1000a820
test eax, eax
jne 0x10047c5f
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
sar ecx, 5
cmp ebx, ecx
jb 0x10047af3
call fcn.100759ec
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x24]
cmp dword [eax + edx + 0x1c], 0x37
jne 0x10047c5f
mov edi, dword [esi + 0x24]
cmp dword [esi + 0x34], edi
jbe 0x10047c5f
cmp word [esi + 0x1a], 2
jne 0x10047c5f
add edi, esi
je 0x10047b69
lea esi, [esp + 0x20]
mov edx, edi
mov dword [esp + 0x20], 0
call fcn.100321c0
test eax, eax
jl 0x10047b65
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10047b65
lea esi, [edi + eax*2 + 2]
test esi, esi
je 0x10047b65
lea eax, [esp + 0x20]
mov edx, esi
mov dword [esp + 0x20], 0
call fcn.10032190
test eax, eax
jl 0x10047b65
cmp dword [esp + 0x20], 0
jne 0x10047b8f
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0xc]
inc ebx
add edi, 0x20
sar eax, 5
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], edi
cmp ebx, eax
jb 0x10047a65
jmp 0x10047c29
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.10002500
mov dword [esp + 0x1050], 0
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
jl 0x10047c47
push 0x100ac8a0
push ecx
call fcn.10075f11
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x10047be1
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x10047be1
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x10047c47
jmp 0x10047c11
cmp dword [ecx - 0xc], 0
jl 0x10047c47
push str.DeviceHarddiskVolume
push ecx
call fcn.10075f11
add esp, 8
test eax, eax
je 0x10047c47
mov ecx, dword [esp + 0x14]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x10047c47
mov ebx, ecx
call fcn.10047890
test eax, eax
jne 0x10047c43
mov dword [esp + 0x1050], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.100025b0
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
sub eax, dword [esi]
mov dword [esp + 0x1c], eax
add esi, dword [esi]
mov dword [esp + 0x18], esi
test eax, eax
ja 0x10047a34
jmp 0x10047c9f
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x1050], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.100025b0
mov esi, dword [esp + 0x18]
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp + 0xc]
mov dword [esp + 0x28], 1
sar edx, 5
cmp ebx, edx
jb 0x10047c79
call fcn.100759ec
mov edi, dword [esp + 0x40]
shl ebx, 5
add ebx, dword [ebp + 0xc]
push 0xffffffffffffffff
push 0
mov eax, ebx
mov ecx, edi
call fcn.100073a0
mov eax, dword [ebx + 0x1c]
mov edx, dword [esp + 0x3c]
mov dword [edi + 0x1c], eax
mov ecx, dword [esi + 0xc]
mov dword [edx], ecx
mov edi, dword [esp + 0x34]
lea eax, [esp + 0x44]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x28], eax
jne 0x10047ce1
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x20]
push edx
push 0x1000
lea ecx, [esp + 0x50]
push ecx
push eax
push 9
push edi
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
test eax, eax
jne 0x10047a10
push edi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1048]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1030]
xor ecx, esp
call fcn.100755ed
add esp, 0x1040
ret