Function at 0x43f8b1
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x85c
mov dword [ebp - 0x848], 0
cmp dword [0x47b8b0], 0
je 0x43f8da
mov eax, 0
jmp 0x43fc47
mov dword [0x47be40], 0
mov byte [ebp - 0x841], 0
movzx eax, byte [ebp - 0x841]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x43f8a0
mov dword [esp + 4], 0x14
lea eax, [ebp - 0x38]
mov dword [esp], eax
call fcn.004491ff
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0xc0000000
lea eax, [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.DLL_CreateFileA
sub esp, 0x1c
mov esi, eax
cmp eax, 0xffffffff
je 0x43f9ec
mov dword [esp + 0x1c], 0
lea eax, [ebp - 0x83c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0x800
lea ebx, [ebp - 0x838]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4100c
mov dword [esp], esi
call sub.KERNEL32.DLL_DeviceIoControl
sub esp, 0x20
test eax, eax
je 0x43f9e1
mov cl, 0
cmp cl, byte [ebp - 0x838]
jae 0x43f9e1
mov edi, 0x47be50
movzx eax, byte [ebp - 0x841]
mov ebx, eax
shl ebx, 8
mov edx, dword [0x47be40]
movzx ax, cl
or eax, ebx
mov word [edi + edx*2], ax
inc edx
inc cl
cmp cl, byte [ebp - 0x838]
jb 0x43f9c6
mov dword [0x47be40], edx
mov dword [esp], esi
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
inc byte [ebp - 0x841]
cmp esi, 0xffffffff
jne 0x43f8eb
call sub.cygwin1.dll___errno
mov dword [eax], 0
mov edi, 0x47b8f0
mov eax, 0x54c
test edi, 4
je 0x43fa2c
mov dword [0x47b8f0], 0
mov edi, 0x47b8f4
mov eax, 0x548
cld
mov ecx, eax
shr ecx, 2
mov eax, 0
rep stosd dword es:[edi], eax
mov byte [ebp - 0x841], 0
movzx eax, byte [ebp - 0x841]
lea edx, [eax + eax*2]
lea edx, [eax + edx*4]
mov dword [edx*4 + 0x47b900], 0xffffffff
inc byte [ebp - 0x841]
cmp byte [ebp - 0x841], 0x19
jbe 0x43fa40
mov byte [ebp - 0x841], 2
movzx eax, byte [ebp - 0x841]
add al, 0x41
movsx eax, al
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x43f8ac
mov dword [esp + 4], 4
lea eax, [ebp - 0x840]
mov dword [esp], eax
call fcn.004491ff
lea eax, [ebp - 0x840]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetDriveTypeA
sub esp, 4
movzx edx, byte [ebp - 0x841]
lea eax, [edx + edx*2]
lea eax, [edx + eax*4]
lea ebx, [eax*4]
lea eax, [ebx + 0x47b8f4]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0043ff81
cmp dword [ebx + 0x47b8fc], 0
je 0x43fb7a
inc dword [ebp - 0x848]
movzx eax, byte [ebx + 0x47b8f7]
shl eax, 8
movzx edx, byte [ebx + 0x47b8f8]
mov ebx, edx
or ebx, eax
mov cl, 0
cmp dword [0x47be40], 0
jle 0x43fb23
mov esi, 0x47be50
mov edx, dword [0x47be40]
movzx eax, cl
cmp word [esi + eax*2], bx
jae 0x43fb23
inc cl
movzx eax, cl
cmp eax, edx
jl 0x43fb11
movzx eax, cl
cmp eax, dword [0x47be40]
jne 0x43fb3e
mov word [eax + eax + 0x47be50], bx
inc eax
mov dword [0x47be40], eax
jmp 0x43fb7a
movzx esi, cl
mov edi, 0x47be50
cmp word [edi + esi*2], bx
jbe 0x43fb7a
mov eax, dword [0x47be40]
sub eax, esi
add eax, eax
mov dword [esp + 8], eax
lea eax, [esi + esi]
lea edx, [edi + eax]
mov dword [esp + 4], edx
add eax, 0x47be52
mov dword [esp], eax
call sub.cygwin1.dll_memmove
mov word [edi + esi*2], bx
inc dword [0x47be40]
inc byte [ebp - 0x841]
cmp byte [ebp - 0x841], 0x19
jbe 0x43fa6e
cmp dword [0x47be40], 0
jle 0x43fc1a
mov byte [ebp - 0x841], 2
movzx eax, byte [ebp - 0x841]
lea edx, [eax + eax*2]
lea edx, [eax + edx*4]
cmp dword [edx*4 + 0x47b8fc], 0
je 0x43fc0b
mov cl, 0
cmp dword [0x47be40], 0
jle 0x43fc0b
lea edx, [eax + eax*2]
lea edx, [eax + edx*4]
lea ebx, [edx*4]
movzx eax, byte [ebx + 0x47b8f7]
mov edi, eax
shl edi, 8
mov esi, dword [0x47be40]
movzx eax, cl
movzx edx, word [eax + eax + 0x47be50]
movzx eax, byte [ebx + 0x47b8f8]
or eax, edi
cmp edx, eax
jne 0x43fc02
mov byte [ebx + 0x47b8f4], cl
jmp 0x43fc0b
inc cl
movzx eax, cl
cmp eax, esi
jl 0x43fbe2
inc byte [ebp - 0x841]
cmp byte [ebp - 0x841], 0x19
jbe 0x43fba1
call fcn.0043fcf4
mov byte [0x47b8f0], al
mov dword [0x47b8b0], 1
cmp dword [ebp - 0x848], 0
jle 0x43fc41
mov dword [0x47b8c0], 1
mov eax, dword [ebp - 0x848]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret