Function at 0x40a793
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 8
call fcn.0044b40f
add esp, 4
mov dword [ebp - 0x18], eax
mov edi, eax
mov esi, 0x4ab2e3
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov eax, 0x4ab2e2
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40a800
push ebx
call fcn.0044b409
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
push 0x80000301
push 0
push 0x1000
push 1
mov ebx, 0x1bc
call fcn.0044cf60
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40a83b
push ebx
call fcn.0044b409
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.0040af96
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
push eax
push 0x1000
push dword [ebp - 0x24]
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004026df
test eax, eax
je 0x40af0f
push 0x80000301
push 0
push 3
push 0x80000301
push 0
push 2
push VariantCopy
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40a89a
mov eax, 0x4ab2e3
push eax
push 3
mov ebx, 0x19c
call fcn.0044cc20
add esp, 0x28
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
cmp ecx, 0x80000101
jne 0x40a8ce
and eax, 0xff
jmp 0x40a923
cmp ecx, 0x80000201
jne 0x40a8d9
cwde
jmp 0x40a923
cmp ecx, 0x80000301
je 0x40a923
cmp ecx, 0x80000401
je 0x40a923
mov dword [ebp - 0x34], eax
cmp ecx, 0x80000501
je 0x40a913
cmp ecx, 0x80000601
je 0x40a918
push 0xd6
push 0x4020cac
push 2
call fcn.0044b415
add esp, 0xc
fld dword [ebp - 0x34]
jmp 0x40a91e
mov dword [ebp - 0x30], edx
fld qword [ebp - 0x34]
call fcn.004027be
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push dword [ebp - 0xc]
push 0x80000301
push 0
push 9
push VariantCopy
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40a94f
mov eax, 0x4ab2e3
push eax
push 3
mov ebx, 0x1a8
call fcn.0044cfd0
add esp, 0x28
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40a979
push ebx
call fcn.0044b409
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.0040afba
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40a99f
push ebx
call fcn.0044b409
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
cmp dword [ebp + 0x14], 0
jne 0x40aa01
mov dword [ebp - 0x24], esp
mov ebx, dword [ebp + 0x10]
push dword [ebx]
xor eax, eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x40a9dd
push 0x1b6
push 0x4020cac
push 6
call fcn.0044b415
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x40a9fc
push eax
mov ebx, eax
call fcn.00402e66
inc eax
push eax
call fcn.0044b40f
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40af19
push 0x80000301
push 0
push pe_nt_image_headers32
push 1
mov ebx, 0x1bc
call fcn.0044cf60
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40aa36
push ebx
call fcn.0044b409
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], esp
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40aa47
add eax, 8
push eax
push pe_nt_image_headers32
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x40aa73
push 0x222
push 0x4020cac
push 6
call fcn.0044b415
add esp, 0xc
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push dword [ebp - 0x14]
push VariantCopy
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x40aa93
mov eax, 0x4ab2e3
push eax
push 2
mov ebx, 0x1a0
call fcn.0044d020
add esp, 0x1c
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40aabd
push ebx
call fcn.0044b409
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push VariantCopy
push 0
push 0x4ab407
push VariantCopy
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x40aae6
mov eax, 0x4ab2e3
push eax
push 3
mov ebx, 0x1c4
call fcn.0044d050
add esp, 0x28
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x18]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40ab1e
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40ab1a
imul eax, dword [ebx]
jmp 0x40ab0f
mov ecx, eax
test ecx, ecx
je 0x40ab3d
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40ab36
push ebx
push eax
call fcn.0044b409
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40ab24
call fcn.0044b409
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x18]
call fcn.00401c0a
xor ecx, ecx
push eax
lea eax, [ebp - 0x1c]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x40aeba
push 0x80000301
push 0
push 0x80
push 1
mov ebx, 0x184
call fcn.0044c210
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40ab9d
push ebx
call fcn.0044b409
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x18]
call fcn.004011ef
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x40abc8
push 0x334
push 0x4020cac
push 4
call fcn.0044b415
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40abe5
push 0x334
push 0x4020cac
push 1
call fcn.0044b415
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x18]
call fcn.004011ef
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x40ac14
push 0x354
push 0x4020cac
push 4
call fcn.0044b415
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40ac31
push 0x354
push 0x4020cac
push 1
call fcn.0044b415
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
push 0x4ab411
mov ebx, dword [ebp - 0x28]
push dword [ebx]
mov ecx, 2
call fcn.0040a734
add esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40ac69
push ebx
call fcn.0044b409
add esp, 4
pop eax
mov ebx, dword [ebp - 0x24]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x18]
call fcn.004011ef
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x40ac96
push 0x38a
push 0x4020cac
push 4
call fcn.0044b415
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40acb3
push 0x38a
push 0x4020cac
push 1
call fcn.0044b415
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], esp
push 0x80
push dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
test eax, eax
je 0x40acd2
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x40acf9
push 0x38a
push 0x4020cac
push 6
call fcn.0044b415
add esp, 0xc
push reloc.oleaut32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push SysStringLen
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x40ad1e
mov eax, 0x4ab2e2
push eax
push SysStringLen
push 0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
jne 0x40ad34
mov eax, 0x4ab2e2
push eax
push 4
mov ebx, 0x148
call fcn.0044cdc0
add esp, 0x34
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x40aeb2
mov ebx, dword [ebp - 0x18]
call fcn.004011ef
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x40ad7b
push 0x448
push 0x4020cac
push 4
call fcn.0044b415
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40ad98
push 0x448
push 0x4020cac
push 1
call fcn.0044b415
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
push VariantCopy
push 0
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
test eax, eax
jne 0x40adb5
mov eax, 0x4ab2e3
push eax
push 1
mov ebx, 0x168
call fcn.0044c500
add esp, 0x10
mov dword [ebp - 0x28], eax
push reloc.oleaut32.dll_SysReAllocString
push 0
push 1
mov ebx, 6
call fcn.0040a78b
push SysStringLen
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x40adf4
mov eax, 0x4ab2e2
push eax
push SysStringLen
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x40ae08
mov eax, 0x4ab2e2
push eax
push SysStringLen
push 0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
jne 0x40ae1e
mov eax, 0x4ab2e2
push eax
push 6
mov ebx, 0x180
call fcn.0044d210
add esp, 0x4c
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40ae44
push ebx
call fcn.0044b409
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40ae5a
push ebx
call fcn.0044b409
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
mov dword [ebp - 0x24], esp
mov ebx, dword [ebp + 0x10]
push dword [ebx]
xor eax, eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x40ae8e
push 0x482
push 0x4020cac
push 6
call fcn.0044b415
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x40aead
push eax
mov ebx, eax
call fcn.00402e66
inc eax
push eax
call fcn.0044b40f
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40af19
pop eax
pop ebx
pop ecx
jmp 0x40ab5a
add esp, 0xc
mov dword [ebp - 0x24], esp
mov ebx, dword [ebp + 0x10]
push dword [ebx]
xor eax, eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x40aeeb
push 0x4d8
push 0x4020cac
push 6
call fcn.0044b415
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x40af0a
push eax
mov ebx, eax
call fcn.00402e66
inc eax
push eax
call fcn.0044b40f
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40af19
mov eax, 0x4ab2e2
jmp 0x40af19
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40af2a
push ebx
call fcn.0044b409
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40af3a
push ebx
call fcn.0044b409
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40af58
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40af54
imul eax, dword [ebx]
jmp 0x40af49
mov ecx, eax
test ecx, ecx
je 0x40af77
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40af70
push ebx
push eax
call fcn.0044b409
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40af5e
call fcn.0044b409
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40af8f
push ebx
call fcn.0044b409
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10