Function at 0x4011d0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x624
mov eax, dword [0x49ab20]
xor eax, esp
mov dword [esp + 0x620], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebp
mov ebp, dword [esp + 0x634]
push esi
push edi
push 0x485854
lea eax, [esp + 0x1c]
mov edi, ecx
push eax
mov dword [esp + 0x1c], edi
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebp
call esi
cmp eax, 8
jle 0x40122c
push 9
push ebp
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor edx, edx
mov word [esp + 0x30], dx
jmp 0x401238
push ebp
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, 0x3a
cmp cx, word [esp + 0x22]
jne 0x40124b
xor edx, edx
mov word [esp + 0x24], dx
push ebp
call esi
cmp eax, 1
jne 0x401263
push 0x485860
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [esp + 0x20]
push ecx
add edi, 0x204
push edi
call ebx
push ebp
call esi
cmp eax, 1
je 0x401285
push 0x485864
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push 0x20000000
push 3
push 0
push 3
push 0
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x40134b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0xaa
call esi
push 0x104
lea eax, [esp + 0x42c]
push eax
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4013a8
mov edi, dword [esp + 0x638]
push edi
lea edx, [esp + 0x224]
push str.DeviceEsafenetEncryDisk_u
push edx
call fcn.00453b02
lea eax, [esp + 0x22c]
push eax
lea ecx, [esp + 0x438]
push ecx
call fcn.00453f81
add esp, 0x14
test eax, eax
jne 0x4013a8
mov eax, edi
call fcn.00401730
push 0
test eax, eax
je 0x40132a
call esi
jmp 0x401490
lea edx, [esp + 0x24]
push edx
push 2
call dword [0x4a3028]
movzx esi, word [ebp]
shl esi, 0x10
or esi, 0x8004
call fcn.00401020
jmp 0x401352
mov edi, dword [esp + 0x638]
push edi
call fcn.00401080
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x4013a8
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
movzx ecx, word [eax + 0x244]
push 0
push 0
add ecx, 0x268
push ecx
push eax
push 0x80002000
push esi
call ebx
test eax, eax
jne 0x4013af
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.ntdll.dll_NtClose]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x401495
push 0
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0
push 0
push 0x800024d8
push esi
call ebx
push edi
lea eax, [esp + 0x224]
push str.DeviceEsafenetEncryDisk_u
push eax
call fcn.00453b02
add esp, 0xc
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x24]
push edx
push 1
call dword [0x4a3028]
test eax, eax
jne 0x40140a
lea eax, [esp + 0x220]
push eax
lea ecx, [esp + 0x24]
push ecx
push 2
call dword [0x4a3028]
lea edx, [esp + 0x220]
push edx
lea eax, [esp + 0x24]
push eax
push 1
call dword [0x4a3028]
test eax, eax
jne 0x40146d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x20000000
push 3
push 0
push 3
push 0
lea ecx, [esp + 0x30]
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x401466
push 0
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0
push 0
push 0x80002004
push esi
call ebx
jmp 0x40139a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [esp + 0x640], 0
je 0x401490
movzx esi, word [ebp]
shl esi, 0x10
or esi, 0x8000
call fcn.00401020
mov eax, 1
mov ecx, dword [esp + 0x630]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004522e0
add esp, 0x624
ret