Function at 0x406557
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x1e8]
sub esp, 0x268
mov eax, dword [0x4205cc]
xor eax, ebp
mov dword [ebp + 0x1e4], eax
push ebx
push esi
mov esi, dword [ebp + 0x1f0]
xor ebx, ebx
cmp esi, ebx
push edi
mov edi, dword [ebp + 0x1f4]
mov dword [ebp - 0x78], esi
jne 0x4065ae
call fcn.0040609e
mov dword [eax], ebx
call fcn.0040608b
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.0040b9a4
add esp, 0x14
jmp 0x40686e
cmp edi, ebx
je 0x40658a
push 0x41c2a0
push esi
call fcn.0040cd24
test eax, eax
pop ecx
pop ecx
je 0x4065d9
call fcn.0040608b
push 2
pop esi
mov dword [eax], esi
call fcn.0040609e
mov dword [eax], esi
jmp 0x40686e
cmp byte [esi + 1], 0x3a
jne 0x4065f9
mov al, byte [esi]
cmp al, bl
je 0x4065ea
cmp byte [esi + 2], bl
je 0x4065c3
movsx eax, al
push eax
call fcn.0040cc4c
pop ecx
sub eax, 0x60
jmp 0x4065fe
call fcn.0040cae2
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x60]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x64], eax
jne 0x4066d3
push 0x41c29c
push esi
mov dword [ebp - 0x64], ebx
call fcn.0040cd24
test eax, eax
pop ecx
pop ecx
je 0x4065c3
lea eax, [ebp - 0x64]
push eax
push 0x104
lea eax, [ebp + 0xe0]
push esi
push eax
call fcn.004064f9
mov esi, eax
add esp, 0x10
cmp esi, ebx
je 0x4066bc
push esi
call fcn.004075a0
cmp eax, 3
pop ecx
je 0x406660
call fcn.00406481
test eax, eax
je 0x4066bc
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x4066bc
cmp dword [ebp - 0x64], ebx
je 0x40667a
push dword [ebp - 0x64]
call fcn.00407068
pop ecx
push 0xffffffffffffffff
push ebx
push ebx
push ebx
push 1
push 1
push 0x7bc
mov dword [ebp - 0x60], 0x10
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x34], bl
call fcn.0040c879
mov esi, dword [ebp - 0x78]
mov ecx, edx
add esp, 0x1c
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], edx
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], ecx
jmp 0x406824
cmp dword [ebp - 0x64], ebx
je 0x4065c3
push dword [ebp - 0x64]
call fcn.00407068
pop ecx
jmp 0x4065c3
cmp dword [ebp - 0x4c], ebx
jne 0x4066e5
cmp dword [ebp - 0x48], ebx
jne 0x4066e5
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
jmp 0x40673f
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x406858
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x406858
movzx eax, word [ebp - 0x68]
push 0xffffffffffffffff
push eax
movzx eax, word [ebp - 0x6a]
push eax
movzx eax, word [ebp - 0x6c]
push eax
movzx eax, word [ebp - 0x6e]
push eax
movzx eax, word [ebp - 0x72]
push eax
movzx eax, word [ebp - 0x74]
push eax
call fcn.0040c879
add esp, 0x1c
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], edx
cmp dword [ebp - 0x54], ebx
jne 0x406757
cmp dword [ebp - 0x50], ebx
jne 0x406757
mov eax, dword [edi + 0x20]
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x24]
mov dword [edi + 0x1c], eax
jmp 0x4067b1
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x406858
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x406858
movzx eax, word [ebp - 0x68]
push 0xffffffffffffffff
push eax
movzx eax, word [ebp - 0x6a]
push eax
movzx eax, word [ebp - 0x6c]
push eax
movzx eax, word [ebp - 0x6e]
push eax
movzx eax, word [ebp - 0x72]
push eax
movzx eax, word [ebp - 0x74]
push eax
call fcn.0040c879
add esp, 0x1c
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], edx
cmp dword [ebp - 0x5c], ebx
jne 0x4067c9
cmp dword [ebp - 0x58], ebx
jne 0x4067c9
mov eax, dword [edi + 0x20]
mov dword [edi + 0x28], eax
mov eax, dword [edi + 0x24]
mov dword [edi + 0x2c], eax
jmp 0x40681b
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x406858
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x406858
movzx eax, word [ebp - 0x68]
push 0xffffffffffffffff
push eax
movzx eax, word [ebp - 0x6a]
push eax
movzx eax, word [ebp - 0x6c]
push eax
movzx eax, word [ebp - 0x6e]
push eax
movzx eax, word [ebp - 0x72]
push eax
movzx eax, word [ebp - 0x74]
push eax
call fcn.0040c879
add esp, 0x1c
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], edx
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
push dword [ebp - 0x60]
call fcn.0040c7c0
mov word [edi + 6], ax
mov eax, dword [ebp - 0x40]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x80]
dec eax
pop ecx
mov dword [edi], eax
mov dword [edi + 0x10], eax
pop ecx
mov word [edi + 8], 1
mov word [edi + 4], bx
mov word [edi + 0xc], bx
mov word [edi + 0xa], bx
xor eax, eax
jmp 0x406871
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004060b1
pop ecx
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_FindClose]
or eax, 0xffffffff
mov ecx, dword [ebp + 0x1e4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406041
add ebp, 0x1e8
leave
ret