Function at 0x42035c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x420365
mov eax, dword [ebp - 4]
add esp, 0xfffffd6c
test dword [esp], ebx
push ebx
push esi
push edi
lea esi, [ebp - 8]
lea edi, [ebp - 0xc]
mov eax, 0x5c7828
call fcn.005a883c
mov edx, dword [ebp + 8]
cmp byte [edx + 0x59], 0
jne 0x4203a8
mov ecx, dword [ebp - 0x7c]
mov dword fs:[0], ecx
mov eax, ecx
jmp 0x420a30
call sub.KERNEL32.DLL_GetLogicalDrives
lea edx, [ebp - 0x2090]
push edx
push 0x2000
call sub.KERNEL32.DLL_GetLogicalDriveStringsA
lea ebx, [ebp - 0x2090]
mov dl, 1
mov eax, dword [0x50393c]
call fcn.005106d0
mov dword [ebp - 0x80], eax
jmp 0x42044c
mov eax, ebx
mov edx, esi
xchg edx, eax
mov word [ebp - 0x6c], 0xc
mov ecx, 0xfde9
call fcn.005b6fd0
inc dword [ebp - 0x60]
inc dword [ebp - 0x60]
xor edx, edx
mov word [ebp - 0x6c], 0x18
mov word [ebp - 0x6c], 0x24
mov dword [edi], edx
mov edx, esi
mov eax, edi
call fcn.004fccb8
inc dword [ebp - 0x60]
mov edx, dword [edi]
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
call dword [ecx + 0x38]
dec dword [ebp - 0x60]
mov eax, edi
mov edx, 2
call fcn.005b7fac
cmp dword [esi], 0
je 0x420431
mov ecx, dword [esi]
mov ecx, dword [ecx - 4]
jmp 0x420433
xor ecx, ecx
inc ecx
mov eax, esi
add ebx, ecx
mov edx, 2
sub dword [ebp - 0x60], 2
call fcn.00401c2c
mov word [ebp - 0x6c], 0
cmp byte [ebx], 0
jne 0x4203d5
xor eax, eax
mov dword [ebp - 0x84], eax
jmp 0x4209a6
mov word [ebp - 0x6c], 0x30
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x10], edx
inc dword [ebp - 0x60]
mov word [ebp - 0x6c], 0x3c
mov word [ebp - 0x6c], 0x48
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x18]
inc dword [ebp - 0x60]
mov eax, dword [ebp - 0x80]
mov edx, dword [ebp - 0x84]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x14]
xor ecx, ecx
call fcn.005b70a0
inc dword [ebp - 0x60]
inc dword [ebp - 0x60]
dec dword [ebp - 0x60]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.005b7fac
mov word [ebp - 0x6c], 0x3c
cmp dword [ebp - 0x14], 0
jne 0x4204c7
mov ecx, 0x5c755c
jmp 0x4204ca
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.DLL_GetDriveTypeA
mov word [ebp - 0x6c], 0x54
mov esi, eax
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
inc dword [ebp - 0x60]
inc dword [ebp - 0x60]
lea edx, [ebp - 0x1c]
call fcn.00420a38
push 1
lea edx, [ebp - 0x1c]
push edx
call fcn.005b6e4c
add esp, 8
lea eax, [ebp - 0x1c]
call fcn.0055ab5c
mov edx, dword [ebp - 0x1c]
movsx ecx, byte [edx]
cmp ecx, 0x61
je 0x4205b0
xor edi, edi
lea edx, [ebp - 0x20]
mov dword [ebp - 0x20], edi
lea eax, [ebp - 0x14]
inc dword [ebp - 0x60]
inc dword [ebp - 0x60]
call fcn.00420a38
push 1
lea ecx, [ebp - 0x20]
push ecx
call fcn.005b6e4c
add esp, 8
lea eax, [ebp - 0x20]
call fcn.0055ab5c
mov edx, dword [ebp - 0x20]
movsx ecx, byte [edx]
cmp ecx, 0x62
mov edx, 2
sete al
and eax, 1
push eax
lea eax, [ebp - 0x20]
sub dword [ebp - 0x60], 2
call fcn.00407750
pop ecx
test ecx, ecx
jne 0x4205b0
lea edi, [ebp - 0x2298]
push 0x104
push edi
lea eax, [ebp - 0x90]
push eax
lea edx, [ebp - 0x8c]
push edx
lea ecx, [ebp - 0x88]
push ecx
lea edi, [ebp - 0x2194]
push 0x104
push edi
cmp dword [ebp - 0x14], 0
jne 0x42059f
mov eax, 0x5c755d
jmp 0x4205a2
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_GetVolumeInformationA
test eax, eax
je 0x4205b0
xor edx, edx
jmp 0x4205b5
mov edx, 1
push edx
mov edx, 2
sub dword [ebp - 0x60], 2
lea eax, [ebp - 0x1c]
call fcn.00407750
pop ecx
test cl, cl
je 0x420676
mov word [ebp - 0x6c], 0x60
mov edx, 0x5c755e
lea eax, [ebp - 0x28]
call fcn.005b7e88
inc dword [ebp - 0x60]
lea ecx, [ebp - 0x28]
push ecx
push 1
lea edi, [ebp - 0x14]
push edi
call fcn.005b6e4c
add esp, 8
lea eax, [ebp - 0x14]
call fcn.0055ab5c
mov edx, dword [ebp - 0x14]
xor ecx, ecx
lea eax, [ebp - 0x24]
mov bl, byte [edx]
movsx edi, bl
mov dword [ebp - 0x24], ecx
push edi
push 0x5c7560
push eax
call fcn.005b80f4
add esp, 0xc
lea eax, [ebp - 0x24]
inc dword [ebp - 0x60]
xor edx, edx
mov dword [ebp - 0x2c], edx
lea ecx, [ebp - 0x2c]
inc dword [ebp - 0x60]
pop edx
call fcn.005b7ffc
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x10]
call fcn.005b7fd4
dec dword [ebp - 0x60]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.005b7fac
dec dword [ebp - 0x60]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.005b7fac
dec dword [ebp - 0x60]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.005b7fac
jmp 0x4207a5
mov word [ebp - 0x6c], 0x6c
mov edx, 0x5c7566
lea eax, [ebp - 0x34]
call fcn.005b7e88
inc dword [ebp - 0x60]
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x2194]
lea eax, [ebp - 0x30]
call fcn.005b7e88
inc dword [ebp - 0x60]
xor ecx, ecx
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x38]
inc dword [ebp - 0x60]
pop edx
call fcn.005b7ffc
lea eax, [ebp - 0x38]
lea edi, [ebp - 0x14]
push eax
push 1
push edi
call fcn.005b6e4c
add esp, 8
lea eax, [ebp - 0x14]
call fcn.0055ab5c
mov edx, dword [ebp - 0x14]
xor ecx, ecx
lea eax, [ebp - 0x3c]
mov bl, byte [edx]
movsx edi, bl
mov dword [ebp - 0x3c], ecx
push edi
push 0x5c756c
push eax
call fcn.005b80f4
add esp, 0xc
inc dword [ebp - 0x60]
lea edx, [ebp - 0x3c]
xor ecx, ecx
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x40]
inc dword [ebp - 0x60]
pop eax
call fcn.005b7ffc
lea edx, [ebp - 0x40]
push edx
mov edx, 0x5c7569
lea eax, [ebp - 0x44]
call fcn.005b7e88
inc dword [ebp - 0x60]
xor eax, eax
mov dword [ebp - 0x48], eax
lea edx, [ebp - 0x44]
inc dword [ebp - 0x60]
lea ecx, [ebp - 0x48]
pop eax
call fcn.005b7ffc
lea edx, [ebp - 0x48]
lea eax, [ebp - 0x10]
call fcn.005b7fd4
dec dword [ebp - 0x60]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.005b7fac
dec dword [ebp - 0x60]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.005b7fac
dec dword [ebp - 0x60]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.005b7fac
dec dword [ebp - 0x60]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.005b7fac
dec dword [ebp - 0x60]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.005b7fac
dec dword [ebp - 0x60]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.005b7fac
dec dword [ebp - 0x60]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.005b7fac
mov word [ebp - 0x6c], 0x78
mov word [ebp - 0x6c], 0x78
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 0x394]
mov eax, dword [edi + 0x29c]
call fcn.004e2688
cmp eax, dword [ebp - 0x84]
jle 0x4207ef
mov ebx, dword [ebp - 0x84]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x394]
mov edi, dword [ecx + 0x29c]
mov edx, ebx
mov eax, edi
call fcn.004e26d0
mov ebx, eax
jmp 0x420805
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 0x394]
mov eax, dword [edi + 0x29c]
call fcn.004e2614
mov ebx, eax
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.004e1ee8
push 1
lea ecx, [ebp - 0x14]
push ecx
call fcn.005b6e4c
add esp, 8
lea eax, [ebp - 0x14]
call fcn.0055ab5c
mov edx, dword [ebp - 0x14]
movsx edx, byte [edx]
mov eax, ebx
call fcn.004e1fa4
cmp esi, 6
ja case.0x42083b.0
jmp dword [esi*4 + 0x420842]
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.004e210c
jmp 0x420966
mov ecx, 1
xor edx, edx
mov eax, ebx
call fcn.004e210c
jmp 0x420966
mov word [ebp - 0x6c], 0x84
xor ecx, ecx
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x4c], ecx
lea eax, [ebp - 0x14]
inc dword [ebp - 0x60]
inc dword [ebp - 0x60]
call fcn.00420a38
push 1
lea ecx, [ebp - 0x4c]
push ecx
call fcn.005b6e4c
add esp, 8
lea eax, [ebp - 0x4c]
call fcn.0055ab5c
mov edx, dword [ebp - 0x4c]
movsx ecx, byte [edx]
cmp ecx, 0x61
je 0x420910
xor ecx, ecx
lea edx, [ebp - 0x50]
mov dword [ebp - 0x50], ecx
lea eax, [ebp - 0x14]
inc dword [ebp - 0x60]
inc dword [ebp - 0x60]
call fcn.00420a38
push 1
lea ecx, [ebp - 0x50]
push ecx
call fcn.005b6e4c
add esp, 8
lea eax, [ebp - 0x50]
call fcn.0055ab5c
mov edx, dword [ebp - 0x50]
movsx ecx, byte [edx]
cmp ecx, 0x62
mov edx, 2
sete al
and eax, 1
push eax
lea eax, [ebp - 0x50]
sub dword [ebp - 0x60], 2
call fcn.00407750
pop ecx
test ecx, ecx
je 0x420917
mov ecx, 2
jmp 0x42091c
mov ecx, 6
xor edx, edx
mov eax, ebx
call fcn.004e210c
sub dword [ebp - 0x60], 2
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.00407750
jmp 0x420966
mov ecx, 3
xor edx, edx
mov eax, ebx
call fcn.004e210c
jmp 0x420966
mov ecx, 4
xor edx, edx
mov eax, ebx
call fcn.004e210c
jmp 0x420966
mov ecx, 5
xor edx, edx
mov eax, ebx
call fcn.004e210c
mov word [ebp - 0x6c], 0x3c
jmp 0x420979
sub dword [ebp - 0x60], 2
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00407750
dec dword [ebp - 0x60]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.005b7fac
mov word [ebp - 0x6c], 0
inc dword [ebp - 0x84]
mov eax, dword [ebp - 0x80]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, dword [ebp - 0x84]
jg 0x42045e
jmp 0x4209dc
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x394]
mov ebx, dword [eax + 0x29c]
mov eax, ebx
call fcn.004e2688
mov edx, eax
mov eax, ebx
dec edx
call fcn.004e3588
mov eax, dword [ebp - 0x80]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x394]
mov eax, dword [edx + 0x29c]
call fcn.004e2688
cmp ebx, eax
jl 0x4209bc
mov ebx, dword [ebp - 0x80]
mov dword [ebp - 0x58], ebx
test ebx, ebx
je 0x420a26
mov eax, dword [ebx]
mov dword [ebp - 0x54], eax
mov word [ebp - 0x6c], 0xb4
mov edx, 3
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x6c], 0x9c
mov edx, dword [ebp - 0x7c]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret