Function at 0x604780
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6591da
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x67206c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
mov ebx, dword [edi + 4]
mov esi, dword [edi]
cmp esi, ebx
je 0x6047d1
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
add esi, 0x1c
cmp esi, ebx
jne 0x6047c0
mov esi, dword [edi]
mov dword [edi + 4], esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
inc dword [0x674754]
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x110], 0x669c14
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0xf8], 7
mov word [ebp - 0x10c], ax
mov dword [ebp - 4], 1
xor esi, esi
mov eax, 1
mov ecx, esi
shl eax, cl
test ebx, eax
je 0x604a12
lea eax, [esi + 0x41]
push eax
lea eax, [ebp - 0xd8]
push 0x669804
push eax
call fcn.00604750
add esp, 0xc
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x604a12
push dword [ebp - 0xd8]
lea ecx, [ebp - 0xf4]
call fcn.0060e730
mov byte [ebp - 4], 2
lea eax, [ebp - 0xf0]
cmp dword [ebp - 0xdc], 8
lea ecx, [ebp - 0x10c]
push dword [ebp - 0xe0]
cmovae eax, dword [ebp - 0xf0]
push eax
call fcn.00611370
mov byte [ebp - 4], 1
mov eax, dword [0x674754]
mov edx, dword [ebp - 0xdc]
dec eax
mov dword [ebp - 0xf4], 0x669c14
mov dword [0x674754], eax
cmp edx, 8
jb 0x6048ea
mov ecx, dword [ebp - 0xf0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x6048db
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x604a86
push edx
push ecx
call fcn.006317bc
mov eax, dword [0x674754]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0xf4], 0x669c14
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 7
mov word [ebp - 0xf0], cx
push 2
inc eax
mov byte [ebp - 4], 5
push 0x669810
lea ecx, [ebp - 0xf0]
mov dword [0x674754], eax
call fcn.00611370
mov byte [ebp - 4], 6
lea eax, [ebp - 0xf0]
cmp dword [ebp - 0xdc], 8
lea ecx, [ebp - 0x10c]
push dword [ebp - 0xe0]
cmovae eax, dword [ebp - 0xf0]
push eax
call fcn.00611030
mov byte [ebp - 4], 1
dec dword [0x674754]
mov edx, dword [ebp - 0xdc]
cmp edx, 8
jb 0x6049a1
mov ecx, dword [ebp - 0xf0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x604997
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x604a86
push edx
push ecx
call fcn.006317bc
add esp, 8
mov eax, dword [edi + 4]
cmp dword [edi + 8], eax
je 0x604a03
mov dword [eax], 0x669c14
lea ecx, [eax + 4]
mov dword [ebp - 0x114], eax
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x10c]
inc dword [0x674754]
cmp ecx, eax
je 0x6049f9
cmp dword [ebp - 0xf8], 8
push dword [ebp - 0xfc]
cmovae eax, dword [ebp - 0x10c]
push eax
call fcn.00611370
mov byte [ebp - 4], 1
add dword [edi + 4], 0x1c
jmp 0x604a12
lea ecx, [ebp - 0x110]
push ecx
push eax
mov ecx, edi
call fcn.00606610
inc esi
cmp esi, 0x20
jb 0x604812
dec dword [0x674754]
mov edx, dword [ebp - 0xf8]
mov dword [ebp - 0x110], 0x669c14
cmp edx, 8
jb 0x604a68
mov ecx, dword [ebp - 0x10c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x604a5e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x604a86
push edx
push ecx
call fcn.006317bc
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00631776
mov esp, ebp
pop ebp
ret
call fcn.006375a6
int3