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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd44
push esi
push edi
push ebx
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str..mydriver
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x4011ed
mov dword [0x416488], eax
push 0x64
push 0x4062d0
call sub.kernel32.dll_RtlZeroMemory
push 0
lea eax, [ebp - 0x30]
push eax
push 0x64
push 0x4062d0
push 0
push 0
push 0x222010
push dword [0x416488]
call sub.kernel32.dll_DeviceIoControl
or eax, eax
jne 0x4011eb
push 0
push 0
push 0x40608b
push 0
call sub.user32.dll_MessageBoxA
jmp 0x4011fd
jmp 0x4011fd
push 0
push 0
push 0x40607e
push 0
call sub.user32.dll_MessageBoxA
mov dword [ebp - 0x28], 1
or dword [ebp - 0x24], 0xffffffff
lea eax, [ebp - 0x238]
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x238]
push eax
push 0x100
call sub.kernel32.dll_GetLogicalDriveStringsA
push dword [ebp - 0x23c]
call sub.kernel32.dll_GetDriveTypeA
mov ebx, dword [ebp - 0x23c]
mov bl, byte [ebx]
cmp bl, 0x42
jbe 0x401515
cmp eax, 3
jne 0x401515
push 0x100
lea eax, [ebp - 0x138]
push eax
call sub.kernel32.dll_RtlZeroMemory
mov byte [ebp - 0x138], bl
mov dword [ebp - 0x28], 1
inc dword [ebp - 0x24]
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x138]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0x1007
push dword [0x416348]
call sub.user32.dll_SendMessageA
push 0x104
lea eax, [ebp - 0x138]
push eax
push 0
push 0
lea eax, [ebp - 0x240]
push eax
push 0
push 0
push dword [ebp - 0x23c]
call sub.kernel32.dll_GetVolumeInformationA
mov eax, dword [ebp - 0x240]
mov ecx, dword [0x4062d0]
lea edi, [0x4062d0]
add edi, 4
jmp 0x4012ff
cmp eax, dword [edi]
jne 0x4012fb
sub esp, 0x28
mov dword [esp + 0xc], 0x2000
mov dword [esp + 0x10], 0xf000
push esp
push dword [ebp - 0x24]
push 0x102b
push dword [0x416348]
call sub.user32.dll_SendMessageA
add esp, 0x28
jmp 0x401308
add edi, 4
dec ecx
or ecx, ecx
je 0x401308
cmp ecx, 0x18
jbe 0x4012cb
mov dword [ebp - 0x28], 1
inc dword [ebp - 0x20]
lea eax, [ebp - 0x138]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0x1006
push dword [0x416348]
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x23c]
call sub.kernel32.dll_GetDiskFreeSpaceA
xor edx, edx
mov eax, dword [ebp - 0x244]
mul dword [ebp - 0x248]
mul dword [ebp - 0x250]
mov ecx, 0x40000000
div ecx
mov dword [ebp - 0x250], eax
xor ebx, ebx
mov eax, edx
xor edx, edx
mov ecx, 0xa
mul ecx
mov ecx, 0x40000000
div ecx
inc ebx
cmp ebx, 2
jne 0x40139d
mov dword [ebp - 0x258], eax
jmp 0x4013a5
mov dword [ebp - 0x254], eax
jmp 0x40137b
push 0x100
lea eax, [ebp - 0x138]
push eax
call sub.kernel32.dll_RtlZeroMemory
push dword [ebp - 0x258]
push dword [ebp - 0x254]
push dword [ebp - 0x250]
push str._d._d_dGB
lea eax, [ebp - 0x138]
push eax
call sub.user32.dll_wsprintfA
add esp, 0x14
inc dword [ebp - 0x20]
lea eax, [ebp - 0x138]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0x1006
push dword [0x416348]
call sub.user32.dll_SendMessageA
mov eax, dword [ebp - 0x244]
mul dword [ebp - 0x248]
mul dword [ebp - 0x24c]
mov ecx, 0x40000000
div ecx
mov dword [ebp - 0x250], eax
xor ebx, ebx
mov eax, edx
xor edx, edx
mov ecx, 0xa
mul ecx
mov ecx, 0x40000000
div ecx
inc ebx
cmp ebx, 2
jne 0x401441
mov dword [ebp - 0x258], eax
jmp 0x401449
mov dword [ebp - 0x254], eax
jmp 0x40141f
push 0x100
lea eax, [ebp - 0x138]
push eax
call sub.kernel32.dll_RtlZeroMemory
push dword [ebp - 0x258]
push dword [ebp - 0x254]
push dword [ebp - 0x250]
push str._d._d_dGB
lea eax, [ebp - 0x138]
push eax
call sub.user32.dll_wsprintfA
add esp, 0x14
inc dword [ebp - 0x20]
lea eax, [ebp - 0x138]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0x1006
push dword [0x416348]
call sub.user32.dll_SendMessageA
mov ecx, dword [ebp - 0x24]
push 0x100
lea eax, [ebp - 0x138]
push eax
call sub.kernel32.dll_RtlZeroMemory
lea esi, [ebp - 0x138]
mov eax, dword [ebp - 0x240]
mov ecx, 8
jmp 0x4014ef
rol eax, 4
mov dl, al
and dl, 0xf
cmp dl, 9
ja 0x4014db
add dl, 0x30
jmp 0x4014eb
cmp dl, 0xa
jb 0x4014eb
cmp dl, 0xf
ja 0x4014eb
add dl, 0x30
add dl, 0x27
dec ecx
mov byte [esi], dl
inc esi
or ecx, ecx
jne 0x4014c9
inc dword [ebp - 0x20]
lea eax, [ebp - 0x138]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0x1006
push dword [0x416348]
call sub.user32.dll_SendMessageA
mov eax, dword [ebp - 0x23c]
push eax
call sub.kernel32.dll_lstrlenA
or eax, eax
jne 0x401527
jmp 0x401533
inc eax
add dword [ebp - 0x23c], eax
jmp 0x401225
pop ebx
pop edi
pop esi
leave
ret