Function at 0x43e5b1
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 [0x4a1610], 0
je 0x43e5da
mov eax, 0
jmp 0x43e947
mov dword [0x4a1ba0], 0
mov byte [ebp - 0x841], 0
movzx eax, byte [ebp - 0x841]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x43e5a0
mov dword [esp + 4], 0x14
lea eax, [ebp - 0x38]
mov dword [esp], eax
call fcn.00450e2f
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 0x43e6ec
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 0x43e6e1
mov cl, 0
cmp cl, byte [ebp - 0x838]
jae 0x43e6e1
mov edi, 0x4a1bb0
movzx eax, byte [ebp - 0x841]
mov ebx, eax
shl ebx, 8
mov edx, dword [0x4a1ba0]
movzx ax, cl
or eax, ebx
mov word [edi + edx*2], ax
inc edx
inc cl
cmp cl, byte [ebp - 0x838]
jb 0x43e6c6
mov dword [0x4a1ba0], edx
mov dword [esp], esi
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
inc byte [ebp - 0x841]
cmp esi, 0xffffffff
jne 0x43e5eb
call sub.cygwin1.dll___errno
mov dword [eax], 0
mov edi, 0x4a1650
mov eax, 0x54c
test edi, 4
je 0x43e72c
mov dword [0x4a1650], 0
mov edi, 0x4a1654
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 + 0x4a1660], 0xffffffff
inc byte [ebp - 0x841]
cmp byte [ebp - 0x841], 0x19
jbe 0x43e740
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], 0x43e5ac
mov dword [esp + 4], 4
lea eax, [ebp - 0x840]
mov dword [esp], eax
call fcn.00450e2f
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 + 0x4a1654]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0043ec81
cmp dword [ebx + 0x4a165c], 0
je 0x43e87a
inc dword [ebp - 0x848]
movzx eax, byte [ebx + 0x4a1657]
shl eax, 8
movzx edx, byte [ebx + 0x4a1658]
mov ebx, edx
or ebx, eax
mov cl, 0
cmp dword [0x4a1ba0], 0
jle 0x43e823
mov esi, 0x4a1bb0
mov edx, dword [0x4a1ba0]
movzx eax, cl
cmp word [esi + eax*2], bx
jae 0x43e823
inc cl
movzx eax, cl
cmp eax, edx
jl 0x43e811
movzx eax, cl
cmp eax, dword [0x4a1ba0]
jne 0x43e83e
mov word [eax + eax + 0x4a1bb0], bx
inc eax
mov dword [0x4a1ba0], eax
jmp 0x43e87a
movzx esi, cl
mov edi, 0x4a1bb0
cmp word [edi + esi*2], bx
jbe 0x43e87a
mov eax, dword [0x4a1ba0]
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, 0x4a1bb2
mov dword [esp], eax
call sub.cygwin1.dll_memmove
mov word [edi + esi*2], bx
inc dword [0x4a1ba0]
inc byte [ebp - 0x841]
cmp byte [ebp - 0x841], 0x19
jbe 0x43e76e
cmp dword [0x4a1ba0], 0
jle 0x43e91a
mov byte [ebp - 0x841], 2
movzx eax, byte [ebp - 0x841]
lea edx, [eax + eax*2]
lea edx, [eax + edx*4]
cmp dword [edx*4 + 0x4a165c], 0
je 0x43e90b
mov cl, 0
cmp dword [0x4a1ba0], 0
jle 0x43e90b
lea edx, [eax + eax*2]
lea edx, [eax + edx*4]
lea ebx, [edx*4]
movzx eax, byte [ebx + 0x4a1657]
mov edi, eax
shl edi, 8
mov esi, dword [0x4a1ba0]
movzx eax, cl
movzx edx, word [eax + eax + 0x4a1bb0]
movzx eax, byte [ebx + 0x4a1658]
or eax, edi
cmp edx, eax
jne 0x43e902
mov byte [ebx + 0x4a1654], cl
jmp 0x43e90b
inc cl
movzx eax, cl
cmp eax, esi
jl 0x43e8e2
inc byte [ebp - 0x841]
cmp byte [ebp - 0x841], 0x19
jbe 0x43e8a1
call fcn.0043e9f4
mov byte [0x4a1650], al
mov dword [0x4a1610], 1
cmp dword [ebp - 0x848], 0
jle 0x43e941
mov dword [0x4a1620], 1
mov eax, dword [ebp - 0x848]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret