Function at 0x4213e0
Capabilities:
Get disk information
Get disk size

Disassembly:
push 0x730
mov eax, 0x47c7ac
call fcn.0046215a
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
xor edi, edi
push eax
mov dword [ebp - 0x6bc], eax
mov dword [ebp - 0x6b4], ecx
mov esi, edx
mov dword [ebp - 0x6b8], ebx
mov dword [ebp - 0x6b0], edi
call fcn.00420a7e
test eax, eax
je 0x421426
push 0xfffffffffffffffe
pop eax
call fcn.004621dd
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, dword [ebp + 0xc]
xor edx, edx
inc edx
shl edx, cl
test edx, eax
je 0x42143c
push 0xfffffffffffffffd
jmp 0x42141d
push 0x2e0
lea eax, [ebp - 0x6ac]
push edi
push eax
call fcn.00462d50
mov eax, dword [ebx + 0x5c]
mov dword [ebp - 0x3d4], eax
mov eax, dword [ebx + 0x60]
mov dword [ebp - 0x3d0], eax
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x438], 1
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x44c], edi
mov dword [ebp - 0x42c], edi
cmp esi, edi
je 0x42149b
push 0x12
pop ecx
lea edi, [ebp - 0x494]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
jmp 0x4214a1
mov dword [ebp - 0x494], edi
mov eax, dword [ebx]
cmp eax, edi
jne 0x4214c8
cmp dword [ebx + 8], edi
je 0x4214c8
push 0x12
lea esi, [ebx + 0x14]
pop ecx
lea edi, [ebp - 0x41c]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x420], 1
xor edi, edi
jmp 0x4214ce
mov dword [ebp - 0x420], edi
push dword [ebp - 0x6b4]
mov dword [ebp - 0x440], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x43c], eax
mov eax, dword [ebx + 0xc]
lea ecx, [ebp - 0x340]
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x434], 1
call fcn.00402d14
push 0x4858d0
lea eax, [ebp - 0x340]
push eax
mov dword [ebp - 4], edi
call fcn.0041edb0
test eax, eax
jne 0x42157c
push 0xffffffffffffffff
push 4
lea eax, [ebp - 0x340]
push eax
lea esi, [ebp - 0x700]
call fcn.0040a645
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x340]
mov byte [ebp - 4], 1
call fcn.0040300d
push edi
push 1
mov ecx, esi
mov byte [ebp - 4], 0
call fcn.004030c2
cmp dword [ebp - 0x328], 0x10
mov eax, dword [ebp - 0x33c]
jae 0x421565
lea eax, [ebp - 0x33c]
push eax
mov edi, 0x104
push edi
push dword [ebp - 0x6b4]
call fcn.00463655
add esp, 0xc
jmp 0x421581
mov edi, 0x104
push str.Volume
lea eax, [ebp - 0x340]
push eax
call fcn.0041edb0
test eax, eax
jne 0x421869
push 2
lea eax, [ebp - 0x340]
call fcn.00422137
mov ecx, dword [ebp - 0x32c]
lea edx, [ecx - 2]
cmp eax, edx
jne 0x421869
dec ecx
push ecx
push 0
lea eax, [ebp - 0x340]
push eax
lea esi, [ebp - 0x700]
call fcn.0040a645
cmp dword [eax + 0x18], 0x10
jb 0x4215d9
mov eax, dword [eax + 4]
jmp 0x4215dc
add eax, 4
push edi
push dword [ebp - 0x6b4]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
push 0
test eax, eax
push 1
lea ecx, [ebp - 0x700]
setne bl
call fcn.004030c2
test bl, bl
je 0x42183e
mov ecx, dword [ebp - 0x6bc]
lea eax, [ebp - 0x6e4]
push eax
call fcn.00420cd8
mov byte [ebp - 4], 2
push dword [ebp - 0x6d8]
lea edi, [ebp - 0x6e4]
lea esi, [ebp - 0x6c4]
call fcn.00406f20
push dword [ebp - 0x6d4]
lea esi, [ebp - 0x6cc]
call fcn.00406f20
mov esi, dword [ebp - 0x6c4]
test esi, esi
je 0x421656
cmp esi, dword [ebp - 0x6cc]
je 0x42165b
call fcn.004613e3
mov edi, dword [ebp - 0x6c0]
cmp edi, dword [ebp - 0x6c8]
je 0x421827
test esi, esi
jne 0x4216ca
call fcn.004613e3
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x421682
call fcn.004613e3
push edi
lea eax, [ebp - 0x3cc]
push eax
call fcn.00421a3d
mov byte [ebp - 4], 3
cmp byte [ebp - 0x3ca], 0
jne 0x4217b6
lea eax, [ebp - 0x38c]
push eax
lea ecx, [ebp - 0x73c]
call fcn.0042119d
xor edi, edi
inc edi
mov byte [ebp - 4], 4
or dword [ebp - 0x6b0], edi
cmp dword [eax + 0x18], 8
jb 0x4216ce
mov eax, dword [eax + 4]
jmp 0x4216d1
mov eax, dword [esi]
jmp 0x421678
add eax, 4
lea ecx, [ebp - 0x324]
push ecx
push dword [ebp - 0x6bc]
mov ecx, eax
call fcn.00420b4e
test eax, eax
je 0x42173d
push dword [ebp - 0x6b4]
lea ecx, [ebp - 0x700]
call fcn.00402d14
lea eax, [ebp - 0x700]
mov dword [ebp - 4], 5
or dword [ebp - 0x6b0], 2
push eax
lea ecx, [ebp - 0x720]
call fcn.0042119d
lea ecx, [ebp - 0x324]
mov dword [ebp - 4], 6
or dword [ebp - 0x6b0], 4
push ecx
call fcn.00412424
pop ecx
test al, al
je 0x42173d
mov bl, 1
jmp 0x42173f
xor bl, bl
test byte [ebp - 0x6b0], 4
je 0x421763
and dword [ebp - 0x6b0], 0xfffffffb
push 0
push edi
lea esi, [ebp - 0x720]
call fcn.0040144b
mov esi, dword [ebp - 0x6c4]
test byte [ebp - 0x6b0], 2
je 0x421781
and dword [ebp - 0x6b0], 0xfffffffd
push 0
push edi
lea ecx, [ebp - 0x700]
call fcn.004030c2
mov dword [ebp - 4], 3
test byte [ebp - 0x6b0], 1
je 0x4217ac
and dword [ebp - 0x6b0], 0xfffffffe
push 0
push edi
lea esi, [ebp - 0x73c]
call fcn.0040144b
mov esi, dword [ebp - 0x6c4]
test bl, bl
jne 0x4217ef
mov edi, dword [ebp - 0x6c0]
lea ecx, [ebp - 0x3cc]
mov byte [ebp - 4], 2
call fcn.004207da
test esi, esi
jne 0x4217eb
call fcn.004613e3
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4217da
call fcn.004613e3
add edi, 0x88
mov dword [ebp - 0x6c0], edi
jmp 0x421644
mov eax, dword [esi]
jmp 0x4217d0
cmp dword [ebp - 0x374], 0x10
mov eax, dword [ebp - 0x388]
jae 0x421804
lea eax, [ebp - 0x388]
push eax
push 0x104
push dword [ebp - 0x6b4]
call fcn.00463655
add esp, 0xc
lea ecx, [ebp - 0x3cc]
mov byte [ebp - 4], 2
call fcn.004207da
lea eax, [ebp - 0x6e4]
push eax
mov byte [ebp - 4], 0
call fcn.00421f30
mov edi, 0x104
jmp 0x421863
cmp dword [ebp - 0x328], 0x10
mov eax, dword [ebp - 0x33c]
jae 0x421853
lea eax, [ebp - 0x33c]
push eax
push edi
push dword [ebp - 0x6b4]
call fcn.00463655
add esp, 0xc
mov ebx, dword [ebp - 0x6b8]
lea eax, [ebp - 0x6b8]
push eax
push dword [ebp - 0x6b4]
lea eax, [ebp - 0x69c]
push eax
call fcn.00421225
xor esi, esi
cmp dword [ebp - 0x6b8], esi
jne 0x4219a0
push 0x485158
lea eax, [ebp - 0x340]
push eax
call fcn.0041edb0
test eax, eax
jne 0x421913
push 0xffffffffffffffff
push 1
lea eax, [ebp - 0x340]
push eax
lea esi, [ebp - 0x720]
call fcn.0040a645
push eax
lea eax, [ebp - 0x73c]
push 0x4858e4
push eax
mov byte [ebp - 4], 7
call fcn.00419ab6
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x4218df
mov eax, dword [eax + 4]
jmp 0x4218e2
add eax, 4
push eax
lea eax, [ebp - 0x69c]
push edi
push eax
call fcn.00463655
add esp, 0xc
push 0
push 1
lea ecx, [ebp - 0x73c]
call fcn.004030c2
push 0
push 1
lea ecx, [ebp - 0x720]
call fcn.004030c2
xor esi, esi
push 0x103
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 0x6b4]
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
test eax, eax
je 0x4219a0
lea eax, [ebp - 0x6b4]
push eax
push eax
lea eax, [ebp - 0x6b8]
push eax
lea eax, [ebp - 0x6b4]
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x421962
mov eax, dword [ebp - 0x6b8]
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x440], esi
jne 0x4219a0
push esi
push esi
lea eax, [ebp - 0x6b0]
push eax
lea eax, [ebp - 0x6b4]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x4219a0
mov eax, dword [ebp - 0x6b0]
shr eax, 0x13
and eax, 1
mov dword [ebp - 0x440], eax
lea edi, [ebp - 0x69c]
call fcn.00420a27
xor edi, edi
cmp dword [ebx + 0x10], edi
je 0x4219da
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x69c]
push 0x4858e8
push eax
call fcn.0046dc07
xor ecx, ecx
inc ecx
add esp, 0xc
cmp eax, ecx
jne 0x421a25
mov dword [ebp - 0x42c], ecx
push edi
lea eax, [ebp - 0x704]
push eax
mov eax, 0x2e0
push eax
lea ecx, [ebp - 0x6ac]
push ecx
push eax
mov eax, ecx
push eax
push 0x22200c
push dword [ebp - 0x6bc]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x421a25
cmp dword [ebp - 0x6ac], edi
jne 0x421a1d
push dword [ebp + 0xc]
push 0x8000
call fcn.00421290
mov esi, dword [ebp - 0x6ac]
jmp 0x421a28
or esi, 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x340]
call fcn.004030c2
mov eax, esi
jmp 0x42141e