Function at 0x404100
Capabilities:
Get disk information
Get storage device properties

Disassembly:
push 0xffffffffffffffff
push 0x43949c
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x44d660]
xor eax, esp
mov dword [esp + 0x1d0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44d660]
xor eax, esp
push eax
lea eax, [esp + 0x1e8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1f8]
xor ebx, ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
mov byte [esp + 0x17], bl
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, 2
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x1c]
mov edx, 1
shl edx, cl
test eax, edx
je 0x404501
lea esi, [ecx + 0x41]
push esi
push str.__c:
lea ecx, [esp + 0xc0]
push 0x12c
push ecx
call fcn.00425731
add esp, 0x10
push ebx
push ebx
push 3
push ebx
push 3
push SysReAllocStringLen
lea edx, [esp + 0xd0]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov edi, eax
push str._c:_
lea eax, [esp + 0xb4]
push 0xa
push eax
mov dword [esp + 0x38], edi
call fcn.00425731
lea ecx, [esp + 0xbc]
push ecx
push str.szDisk:__s__r_n
push 0x44f378
call fcn.00409510
add esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetLastError:__d__r_n
push 0x44f378
call fcn.00409510
add esp, 0xc
cmp edi, 0xffffffff
je 0x4044fd
lea edx, [esp + 0xb8]
push edx
push str.CreateFile:__s__OK__r_n
push 0x44f378
call fcn.00409510
push 0x227
call fcn.0040a2cd
add esp, 0x10
push ebx
mov ebp, eax
lea eax, [esp + 0x30]
push eax
push 0x227
push ebp
push 0xc
lea ecx, [esp + 0xb4]
push ecx
push 0x2d1400
push edi
mov dword [ebp + 4], 0x227
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, ebx
je 0x4044db
mov eax, dword [ebp + 0xc]
cmp eax, ebx
lea esi, [eax + ebp]
jne 0x404279
mov esi, str._NULL_
mov edi, 0xf
mov eax, esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x404290
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x38]
call fcn.00403e60
mov eax, dword [ebp + 0x10]
cmp eax, ebx
mov dword [esp + 0x1f0], ebx
lea esi, [eax + ebp]
jne 0x4042bc
mov esi, str._NULL_
mov eax, esi
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4042d0
sub eax, edi
push eax
push esi
lea ecx, [esp + 0x54]
call fcn.00403e60
mov esi, dword [esp + 0x24]
push 0xffffffffffffffff
push ebx
mov edi, 0xf
push esi
lea ecx, [esp + 0x90]
mov byte [esp + 0x1fc], 1
mov dword [esp + 0xa8], edi
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
call fcn.00403d80
push 0xffffffffffffffff
push ebx
lea edx, [esi + 0x1c]
push edx
lea ecx, [esp + 0x74]
mov byte [esp + 0x1fc], 2
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
call fcn.00403d80
mov eax, dword [esp + 0x34]
mov edi, 0x10
cmp dword [esp + 0x48], edi
mov byte [esp + 0x1f0], 3
jae 0x404361
lea eax, [esp + 0x34]
push eax
push str.scrVidStr:__s__r_n
push 0x44f378
call fcn.00409510
mov eax, dword [esp + 0x5c]
add esp, 0xc
cmp dword [esp + 0x64], edi
jae 0x404382
lea eax, [esp + 0x50]
push eax
push str.scrPidStr:__s__r_n
push 0x44f378
call fcn.00409510
mov eax, dword [esp + 0x94]
add esp, 0xc
cmp dword [esp + 0x9c], edi
jae 0x4043ac
lea eax, [esp + 0x88]
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x44]
push ecx
push eax
push edx
push ebx
lea ecx, [esp + 0x40]
call fcn.00402b20
test eax, eax
jne 0x404434
cmp dword [esp + 0x80], edi
mov eax, dword [esp + 0x6c]
jae 0x4043d9
lea eax, [esp + 0x6c]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x60]
push ecx
push eax
push edx
push ebx
lea ecx, [esp + 0x5c]
call fcn.00402b20
test eax, eax
jne 0x404434
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov byte [esp + 0x17], 1
je 0x404412
lea ecx, [esp + 0xb8]
push ecx
push 0x64
push eax
call fcn.0042589b
add esp, 0xc
mov al, byte [esp + 0x18]
add al, 0x41
movsx edx, al
push edx
push str._MATCH_____c:_
push 0x44f378
mov byte [esi + 0x154], al
call fcn.00409510
add esp, 0xc
cmp dword [esp + 0x80], edi
jb 0x40444a
mov eax, dword [esp + 0x6c]
push eax
call fcn.0040a2c8
add esp, 4
cmp dword [esp + 0x9c], edi
mov esi, 0xf
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
jb 0x404477
mov ecx, dword [esp + 0x88]
push ecx
call fcn.0040a2c8
add esp, 4
cmp dword [esp + 0x64], edi
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
jb 0x40449f
mov edx, dword [esp + 0x50]
push edx
call fcn.0040a2c8
add esp, 4
cmp dword [esp + 0x48], edi
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
mov dword [esp + 0x1f0], 0xffffffff
jb 0x4044c9
mov eax, dword [esp + 0x34]
push eax
call fcn.0040a2c8
add esp, 4
mov edi, dword [esp + 0x28]
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
jmp 0x4044ed
push str.GetDisksProperty_ERROR__r_n
push 0x44f378
call fcn.00409510
add esp, 8
push ebp
call fcn.0040a2c8
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
add ecx, 1
cmp ecx, 0x20
mov dword [esp + 0x18], ecx
jb 0x404163
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x1e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1d0]
xor ecx, esp
call fcn.00425494
add esp, 0x1e0
ret 4