Function at 0x40d950
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 [0x42af54], 0
mov eax, dword [str..C:]
mov dword [ebp - 0x270], eax
mov ecx, dword [0x4268bc]
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 0x40d9d4
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 0x40d9f7
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov dword [ebp + ecx*4 - 0x2c4], 0
jmp 0x40d9cb
push 0x78
push 0
lea edx, [ebp - 0x33c]
push edx
call fcn.0041d210
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 fcn.0041cdce
mov byte [ebp - 4], 0
jmp 0x40da31
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 0x40db2c
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov dl, byte [ebp + ecx*4 - 0x33c]
push edx
call fcn.00410510
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 fcn.0041d5e4
add esp, 0xc
mov edx, dword [ebp - 4]
and edx, 0xff
movsx eax, byte [ebp + edx*4 - 0x33c]
cmp eax, 0x41
jge 0x40dad5
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 fcn.0041d5e4
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 fcn.0041cdce
mov dword [ebp - 0x274], eax
cmp dword [ebp - 0x274], 0xffffffff
jne 0x40db0e
jmp 0x40da28
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 0x40da28
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 fcn.0041d0a0
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 0x40dbdd
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 0x40dda6
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.0040ced0
add esp, 8
mov ecx, dword [ebp - 0x37c]
push ecx
lea edx, [ebp - 0x200]
push edx
lea eax, [ebp - 0x368]
push eax
call fcn.0041d970
add esp, 0xc
test eax, eax
jne 0x40dd81
mov ecx, dword [ebp - 0x208]
and ecx, 0xff
test ecx, ecx
jne 0x40dd5f
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [0x42af54]
imul eax, eax, 0x140
mov ecx, dword [ebp + edx*4 - 0x2c4]
mov dword [eax + 0x42b08c], ecx
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [0x42af54]
imul eax, eax, 0x140
mov cl, byte [ebp + edx*4 - 0x33c]
mov byte [eax + 0x42b0a2], cl
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [0x42af54]
imul eax, eax, 0x140
mov cl, byte [ebp + edx*4 - 0x33c]
mov byte [eax + 0x42b0a4], cl
mov edx, dword [0x42af54]
imul edx, edx, 0x140
mov byte [edx + 0x42b0a1], 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 0x42685c
lea edx, [ebp - 0x480]
push edx
call fcn.0041d92a
add esp, 8
mov dword [ebp - 0x380], eax
cmp dword [ebp - 0x380], 0
je 0x40dd3e
mov eax, dword [ebp - 0x380]
push eax
call fcn.0041d740
add esp, 4
mov ecx, dword [ebp - 0x340]
add ecx, 1
mov dword [ebp - 0x340], ecx
mov edx, dword [0x42af54]
add edx, 1
mov dword [0x42af54], edx
jmp 0x40dd5d
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 fcn.0041cdce
jmp 0x40dd7f
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 fcn.0041cdce
jmp 0x40dda1
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 fcn.0041cdce
jmp 0x40dbd4
mov eax, dword [ebp - 0x340]
pop edi
pop esi
pop ebx
add esp, 0x4c0
cmp ebp, esp
call fcn.0041cdce
mov esp, ebp
pop ebp
ret