Function at 0x41fb20
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f51a
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4620f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x60], 0
mov eax, dword [edi + 0x20]
test eax, eax
jne 0x41fbb8
push 0x10
call fcn.0040499f
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x41fbaf
mov dword [ecx + 4], 0x450db8
mov dword [ecx + 8], vtable.file_object.0
mov dword [ecx + 0xc], 0
mov eax, dword [ecx + 4]
mov dword [ecx], vtable.i_dir::iterator.0
mov eax, dword [eax + 4]
mov dword [eax + ecx + 4], vtable.i_dir::iterator.1.0
mov eax, dword [ecx + 4]
mov dword [ecx], vtable.windows_dir::root_iterator.0
mov eax, dword [eax + 4]
mov dword [eax + ecx + 4], vtable.windows_dir::root_iterator.1.0
mov eax, ecx
jmp 0x41ff72
xor ecx, ecx
mov eax, ecx
jmp 0x41ff72
cmp eax, 3
jne 0x41fbea
mov eax, dword [edi]
call dword [eax + 0x9c]
mov esi, eax
test esi, esi
je 0x41feb8
cmp dword [edi + 0x24], 8
lea eax, [edi + 0x10]
jb 0x41fbda
mov eax, dword [eax]
movzx eax, word [eax]
mov ecx, esi
push eax
call fcn.00417770
jmp 0x41feb4
lea esi, [edi + 0x10]
push esi
call fcn.00421ad0
add esp, 4
test al, al
jne 0x41fd5e
push esi
call fcn.00421980
add esp, 4
test al, al
jne 0x41fd5e
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00401f50
push 0
push 0x44d664
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 5
push eax
mov ecx, edi
call fcn.0041f5c0
test al, al
jne 0x41fcc4
push str.Error_occurred_while_opening_the_file.
call fcn.004029e0
add esp, 4
push eax
mov eax, dword [ebp - 0x44]
push 0x40007
sub esp, 0x18
mov ecx, esp
mov dword [ecx], 0x3b21f9ba
mov dword [ecx + 4], 0xf35f747b
mov dword [ecx + 8], 0x44eac0
mov dword [ecx + 0xc], 0x44e644
mov dword [ecx + 0x10], 0x2b1
mov dword [ecx + 0x14], eax
lea ecx, [ebp - 0x5c]
call fcn.00412b70
push eax
mov eax, dword [edi + 4]
lea ecx, [edi + 8]
mov byte [ebp - 4], 6
mov eax, dword [eax + 4]
add ecx, eax
call fcn.004030c0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 5
call fcn.00402f20
lea ecx, [ebp - 0x28]
call fcn.00401510
xor eax, eax
jmp 0x41ff72
lea eax, [ebp - 0x28]
push eax
call fcn.00421a60
add esp, 4
test al, al
je 0x41fd0c
push 0x28
call fcn.0040499f
add esp, 4
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x41fd48
push 1
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.0041c750
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.00401510
jmp 0x41feb4
push 0x2cc
call fcn.0040499f
add esp, 4
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x41fd48
push 1
lea ecx, [ebp - 0x28]
push ecx
push edi
mov ecx, eax
call fcn.0041c310
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.00401510
jmp 0x41feb4
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
xor esi, esi
call fcn.00401510
jmp 0x41feb4
cmp dword [esi + 0x14], 8
jb 0x41fd68
mov eax, dword [esi]
jmp 0x41fd6a
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x5c], eax
cmp eax, 1
jne 0x41fdef
push str.The_specified_file_does_not_exist.
call fcn.004029e0
add esp, 4
push eax
mov eax, dword [ebp - 0x44]
push 0x40011
sub esp, 0x18
mov ecx, esp
mov dword [ecx], 0x3b21f9af
mov dword [ecx + 4], 0xf35f747b
mov dword [ecx + 8], 0x44ea60
mov dword [ecx + 0xc], 0x44e5a4
mov dword [ecx + 0x10], 0x2a6
mov dword [ecx + 0x14], eax
lea ecx, [ebp - 0x5c]
call fcn.00412b70
mov dword [ebp - 4], 0
push eax
mov eax, dword [edi + 4]
lea ecx, [edi + 8]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.004030c0
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
call fcn.00402f20
xor eax, eax
jmp 0x41ff72
push esi
call fcn.00421ad0
add esp, 4
push esi
test al, al
je 0x41fe10
lea eax, [ebp - 0x58]
push eax
call fcn.0041e010
add esp, 8
mov ebx, 1
jmp 0x41fe21
lea eax, [ebp - 0x28]
push eax
call fcn.0041dfe0
add esp, 8
mov ebx, 2
push eax
lea ecx, [ebp - 0x40]
call fcn.00401410
mov dword [ebp - 4], 2
test bl, 2
je 0x41fe41
lea ecx, [ebp - 0x28]
and ebx, 0xfffffffd
call fcn.00401510
mov byte [ebp - 4], 3
test bl, 1
je 0x41fe52
lea ecx, [ebp - 0x58]
call fcn.00401510
push 0x2c
call fcn.0040499f
mov esi, eax
add esp, 4
mov dword [ebp - 0x60], esi
mov byte [ebp - 4], 4
test esi, esi
je 0x41fe86
push 1
push dword [ebp - 0x5c]
call fcn.004169e0
add esp, 4
mov ecx, esi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0041c8e0
mov esi, eax
jmp 0x41fe88
xor esi, esi
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 4], 0xffffffff
jb 0x41fea0
push dword [ebp - 0x40]
call fcn.00404a15
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
test esi, esi
jne 0x41ff0c
push str.Not_enough_memory_to_complete_the_operation.
call fcn.004029e0
add esp, 4
push eax
mov eax, dword [ebp - 0x44]
push 0x40006
sub esp, 0x18
mov ecx, esp
mov dword [ecx], 0x3b21f9c4
mov dword [ecx + 4], 0xf35f747b
mov dword [ecx + 8], 0x44eb80
mov dword [ecx + 0xc], str.winnt_dir::GetSelfIterator
mov dword [ecx + 0x10], 0x2bb
mov dword [ecx + 0x14], eax
lea ecx, [ebp - 0x5c]
call fcn.00412b70
mov dword [ebp - 4], 9
jmp 0x41fdc8
lea eax, [ebp - 0x60]
push eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
add ecx, 4
add ecx, esi
call fcn.00403710
push eax
mov eax, dword [edi + 4]
lea ecx, [edi + 8]
mov dword [ebp - 4], 0xa
mov eax, dword [eax + 4]
add ecx, eax
call fcn.004030c0
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
call fcn.00402f20
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + edi + 8]
test eax, eax
je 0x41ff70
cmp dword [eax + 4], 0
je 0x41ff70
mov eax, dword [esi + 4]
push 1
mov ecx, dword [eax + 4]
add ecx, 4
add ecx, esi
mov eax, dword [ecx]
call dword [eax]
xor eax, eax
jmp 0x41ff72
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004051a4
mov esp, ebp
pop ebp
ret