Function at 0x479268
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x38
push 0
push 0
dec ecx
jne 0x479270
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov ebx, eax
lea eax, [ebp - 0x170]
mov edx, dword [0x408b00]
call fcn.00405bc0
xor eax, eax
push ebp
push 0x479773
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x479707
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, 1
mov eax, ebx
call fcn.0046f6ec
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, 2
mov eax, ebx
call fcn.0046f6ec
lea eax, [ebp - 0x174]
push eax
mov cl, 1
mov edx, 3
mov eax, ebx
call fcn.0046f6ec
mov eax, dword [ebp - 0x174]
call fcn.0046fb84
mov byte [ebp - 0x11], al
lea eax, [ebp - 0x178]
push eax
mov cl, 1
mov edx, 4
mov eax, ebx
call fcn.0046f6ec
mov eax, dword [ebp - 0x178]
call fcn.0046fb84
mov byte [ebp - 0x12], al
lea eax, [ebp - 0x17c]
push eax
mov cl, 1
mov edx, 5
mov eax, ebx
call fcn.0046f6ec
mov eax, dword [ebp - 0x17c]
call fcn.0046fb84
mov byte [ebp - 0x13], al
lea eax, [ebp - 0x180]
push eax
mov cl, 1
mov edx, 6
mov eax, ebx
call fcn.0046f6ec
mov eax, dword [ebp - 0x180]
call fcn.0046fb84
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x184]
push eax
mov cl, 1
mov edx, 7
mov eax, ebx
call fcn.0046f6ec
mov eax, dword [ebp - 0x184]
call fcn.0046fb84
mov byte [ebp - 1], al
lea eax, [ebp - 0x188]
push eax
mov cl, 1
mov edx, 8
mov eax, ebx
call fcn.0046f6ec
mov eax, dword [ebp - 0x188]
call fcn.0046fb84
mov byte [ebp - 2], al
lea eax, [ebp - 0x18c]
push eax
mov cl, 1
mov edx, 9
mov eax, ebx
call fcn.0046f6ec
mov eax, dword [ebp - 0x18c]
call fcn.0046fb84
mov byte [ebp - 3], al
mov eax, dword [ebp - 8]
call fcn.004050b8
xor esi, esi
cmp dword [ebp - 0xc], 0
jne 0x4794ac
call sub.kernel32.dll_GetLogicalDrives
mov edi, eax
test edi, edi
je 0x4794a4
xor ebx, ebx
mov ecx, ebx
mov eax, 1
shl eax, cl
test eax, edi
je 0x479450
lea eax, [ebp - 0x190]
mov edx, ebx
add dl, 0x41
call fcn.004052a0
mov edx, dword [ebp - 0x190]
lea eax, [ebp - 0x18]
mov ecx, 0x47978c
call fcn.004053c4
mov eax, dword [ebp - 8]
push dword [eax]
push dword [ebp - 0x18]
push 0x479798
lea edx, [ebp - 0x194]
mov eax, 0x18
call fcn.00409d50
push dword [ebp - 0x194]
push 0x479798
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00405438
inc esi
inc ebx
cmp ebx, 0x20
jne 0x4793ea
push 0x4797a4
push dword [ebp - 0xc]
push 0x479798
lea edx, [ebp - 0x198]
mov eax, esi
call fcn.00409d50
push dword [ebp - 0x198]
push 0x479798
push 0x4797b4
push 0x479798
mov eax, dword [ebp - 8]
push dword [eax]
mov eax, dword [ebp - 8]
mov edx, 8
call fcn.00405438
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47972f
lea eax, [ebp - 0xc]
call fcn.0040ac30
cmp dword [ebp - 0xc], 0
je 0x4794fb
mov eax, dword [ebp - 0xc]
call fcn.00405378
mov edx, dword [ebp - 0xc]
cmp byte [edx + eax - 1], 0x5c
je 0x4794fb
mov eax, dword [ebp - 0xc]
call fcn.0046a76c
test al, al
jne 0x4794ee
lea edx, [ebp - 0x19c]
mov eax, dword [ebp - 0xc]
call fcn.0040a6a0
mov edx, dword [ebp - 0x19c]
lea eax, [ebp - 0xc]
call fcn.00405150
jmp 0x4794fb
lea eax, [ebp - 0xc]
mov edx, 0x4797c0
call fcn.00405380
lea eax, [ebp - 0x1a0]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.004055d8
mov eax, dword [ebp - 0x1a0]
mov edx, 0x4797c0
call fcn.004054c4
je 0x479544
lea edx, [ebp - 0x1a4]
mov eax, dword [ebp - 0xc]
call fcn.0040a754
mov edx, dword [ebp - 0x1a4]
lea eax, [ebp - 0xc]
call fcn.00405150
jmp 0x479560
lea edx, [ebp - 0x1a8]
mov eax, dword [ebp - 0xc]
call fcn.0040a9f4
mov edx, dword [ebp - 0x1a8]
lea eax, [ebp - 0xc]
call fcn.00405150
cmp dword [ebp - 0x10], 0
jne 0x479573
lea eax, [ebp - 0x10]
mov edx, 0x4797cc
call fcn.00405150
mov ebx, 0x3f
cmp byte [ebp - 0x13], 0
jne 0x479581
sub ebx, 2
cmp byte [ebp - 0x14], 0
jne 0x47958a
sub ebx, 4
cmp byte [ebp - 0x11], 0
je 0x47961d
lea eax, [ebp - 0x1ac]
mov ecx, 0x4797cc
mov edx, dword [ebp - 0xc]
call fcn.004053c4
mov eax, dword [ebp - 0x1ac]
lea ecx, [ebp - 0x170]
mov edx, ebx
call fcn.0040a4dc
test eax, eax
jne 0x479612
mov eax, dword [ebp - 0x164]
mov edx, 0x4797d8
call fcn.004054c4
je 0x479603
mov eax, dword [ebp - 0x168]
and eax, 0x10
cmp eax, 0x10
jne 0x479603
inc esi
push ebp
lea edx, [ebp - 0x1b0]
lea eax, [ebp - 0x170]
call fcn.004790c8
pop ecx
mov edx, dword [ebp - 0x1b0]
mov eax, dword [ebp - 8]
call fcn.00405380
mov eax, dword [ebp - 8]
lea eax, [ebp - 0x170]
call fcn.0040a52c
test eax, eax
je 0x4795be
lea eax, [ebp - 0x170]
call fcn.0040a550
cmp byte [ebp - 0x12], 0
je 0x479698
lea eax, [ebp - 0x1b4]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004053c4
mov eax, dword [ebp - 0x1b4]
lea ecx, [ebp - 0x170]
mov edx, ebx
call fcn.0040a4dc
test eax, eax
jne 0x47968d
mov eax, dword [ebp - 0x168]
and eax, 0x10
cmp eax, 0x10
je 0x47967e
inc esi
push ebp
lea edx, [ebp - 0x1b8]
lea eax, [ebp - 0x170]
call fcn.004790c8
pop ecx
mov edx, dword [ebp - 0x1b8]
mov eax, dword [ebp - 8]
call fcn.00405380
mov eax, dword [ebp - 8]
lea eax, [ebp - 0x170]
call fcn.0040a52c
test eax, eax
je 0x47964b
lea eax, [ebp - 0x170]
call fcn.0040a550
xor ebx, ebx
mov bl, byte [ebp - 1]
add ebx, 2
xor eax, eax
mov al, byte [ebp - 2]
add ebx, eax
xor eax, eax
mov al, byte [ebp - 3]
add ebx, eax
push 0x4797a4
push dword [ebp - 0xc]
push 0x479798
lea edx, [ebp - 0x1bc]
mov eax, esi
call fcn.00409d50
push dword [ebp - 0x1bc]
push 0x479798
lea edx, [ebp - 0x1c0]
mov eax, ebx
call fcn.00409d50
push dword [ebp - 0x1c0]
push 0x479798
mov eax, dword [ebp - 8]
push dword [eax]
mov eax, dword [ebp - 8]
mov edx, 8
call fcn.00405438
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47972f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47977a
lea eax, [ebp - 0x1c0]
mov edx, 0x14
call fcn.004050dc
lea eax, [ebp - 0x170]
mov edx, dword [0x408b00]
call fcn.00405c90
lea eax, [ebp - 0x18]
call fcn.004050b8
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004050dc
ret