Function at 0x40d940
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c0
push ebx
push esi
push edi
lea edi, [ebp - 0x4c0]
mov ecx, 0x130
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov byte [ebp - 0x208], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x20c], 0
mov dword [0x421c94], 0
mov eax, dword [str..C:]
mov dword [ebp - 0x270], eax
mov ecx, dword [0x41ed3c]
mov dword [ebp - 0x26c], ecx
mov ecx, 0x17
xor eax, eax
lea edi, [ebp - 0x268]
rep stosd dword es:[edi], eax
mov byte [ebp - 4], 0
jmp 0x40d9c4
mov dl, byte [ebp - 4]
add dl, 1
mov byte [ebp - 4], dl
mov eax, dword [ebp - 4]
and eax, 0xff
cmp eax, 0x14
jge 0x40d9e7
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov dword [ebp + ecx*4 - 0x2c4], 0
jmp 0x40d9bb
push 0x78
push 0
lea edx, [ebp - 0x33c]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov esi, esp
lea eax, [ebp - 0x33c]
push eax
push 0x78
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov byte [ebp - 4], 0
jmp 0x40da21
mov cl, byte [ebp - 4]
add cl, 1
mov byte [ebp - 4], cl
mov edx, dword [ebp - 4]
and edx, 0xff
movsx eax, byte [ebp + edx*4 - 0x33c]
test eax, eax
je 0x40db1c
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov dl, byte [ebp + ecx*4 - 0x33c]
push edx
call fcn.00410500
add esp, 4
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov byte [ebp + ecx*4 - 0x33c], al
mov edx, dword [ebp - 4]
and edx, 0xff
movsx eax, byte [ebp + edx*4 - 0x33c]
push eax
push str.._c:
lea ecx, [ebp - 0x270]
push ecx
call sub.MSVCRT.dll_sprintf
add esp, 0xc
mov edx, dword [ebp - 4]
and edx, 0xff
movsx eax, byte [ebp + edx*4 - 0x33c]
cmp eax, 0x41
jge 0x40dac5
mov ecx, dword [ebp - 4]
and ecx, 0xff
movsx edx, byte [ebp + ecx*4 - 0x33c]
push edx
push str..PHYSICALDRIVE_c
lea eax, [ebp - 0x270]
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0xc
mov esi, esp
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea ecx, [ebp - 0x270]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 0x274], eax
cmp dword [ebp - 0x274], 0xffffffff
jne 0x40dafe
jmp 0x40da18
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x274]
mov dword [ebp + edx*4 - 0x2c4], eax
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x40da18
mov dword [ebp - 0x340], 0
mov dword [ebp - 0x344], 0x200
mov ecx, 5
mov esi, str.SecuTechUnikeyDrive
lea edi, [ebp - 0x368]
rep movsd dword es:[edi], dword [esi]
xor edx, edx
mov dword [ebp - 0x354], edx
mov dword [ebp - 0x350], edx
mov dword [ebp - 0x34c], edx
mov byte [ebp - 0x378], 0
xor eax, eax
mov dword [ebp - 0x377], eax
mov dword [ebp - 0x373], eax
mov dword [ebp - 0x36f], eax
mov word [ebp - 0x36b], ax
mov byte [ebp - 0x369], al
lea ecx, [ebp - 0x368]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x37c], eax
mov dword [ebp - 0x380], 0
mov ecx, 5
mov esi, str.J:_path_dzbzz.exe
lea edi, [ebp - 0x480]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x3b
xor eax, eax
lea edi, [ebp - 0x46c]
rep stosd dword es:[edi], eax
mov byte [ebp - 4], 0
jmp 0x40dbcd
mov dl, byte [ebp - 4]
add dl, 1
mov byte [ebp - 4], dl
mov eax, dword [ebp - 4]
and eax, 0xff
cmp eax, dword [ebp - 8]
jge 0x40dd96
lea ecx, [ebp - 0x208]
push ecx
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [ebp + edx*4 - 0x2c4]
push eax
call fcn.0040cec0
add esp, 8
mov ecx, dword [ebp - 0x37c]
push ecx
lea edx, [ebp - 0x200]
push edx
lea eax, [ebp - 0x368]
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x40dd71
mov ecx, dword [ebp - 0x208]
and ecx, 0xff
test ecx, ecx
jne 0x40dd4f
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [0x421c94]
imul eax, eax, 0x140
mov ecx, dword [ebp + edx*4 - 0x2c4]
mov dword [eax + 0x421dcc], ecx
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [0x421c94]
imul eax, eax, 0x140
mov cl, byte [ebp + edx*4 - 0x33c]
mov byte [eax + 0x421de2], cl
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [0x421c94]
imul eax, eax, 0x140
mov cl, byte [ebp + edx*4 - 0x33c]
mov byte [eax + 0x421de4], cl
mov edx, dword [0x421c94]
imul edx, edx, 0x140
mov byte [edx + 0x421de1], 0x57
mov eax, dword [ebp - 4]
and eax, 0xff
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x340]
mov dl, byte [ebp + eax*4 - 0x33c]
mov byte [ecx], dl
mov eax, dword [ebp - 4]
and eax, 0xff
mov cl, byte [ebp + eax*4 - 0x33c]
mov byte [ebp - 0x480], cl
push 0x41ecdc
lea edx, [ebp - 0x480]
push edx
call sub.MSVCRT.dll_fopen
add esp, 8
mov dword [ebp - 0x380], eax
cmp dword [ebp - 0x380], 0
je 0x40dd2e
mov eax, dword [ebp - 0x380]
push eax
call sub.MSVCRT.dll_fclose
add esp, 4
mov ecx, dword [ebp - 0x340]
add ecx, 1
mov dword [ebp - 0x340], ecx
mov edx, dword [0x421c94]
add edx, 1
mov dword [0x421c94], edx
jmp 0x40dd4d
mov eax, dword [ebp - 4]
and eax, 0xff
mov esi, esp
mov ecx, dword [ebp + eax*4 - 0x2c4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call sub.MSVCRT.dll__chkesp
jmp 0x40dd6f
mov edx, dword [ebp - 4]
and edx, 0xff
mov esi, esp
mov eax, dword [ebp + edx*4 - 0x2c4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call sub.MSVCRT.dll__chkesp
jmp 0x40dd91
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov esi, esp
mov edx, dword [ebp + ecx*4 - 0x2c4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call sub.MSVCRT.dll__chkesp
jmp 0x40dbc4
mov eax, dword [ebp - 0x340]
pop edi
pop esi
pop ebx
add esp, 0x4c0
cmp ebp, esp
call sub.MSVCRT.dll__chkesp
mov esp, ebp
pop ebp
ret