Function at 0x45e018
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x45e17e
mov eax, dword [ebp + 8]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xa0], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
movzx eax, byte [eax]
test eax, eax
je 0x45e173
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x45e110
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x45e0ee
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x45e0ee
mov dword [ebp - 0x24], 1
jmp 0x45e0f2
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp dword [ebp - 0x24], eax
jle 0x45e110
mov dword [ebp - 0x64], 1
jmp 0x45e114
and dword [ebp - 0x64], 0
cmp dword [ebp - 0x64], 3
jle 0x45e126
mov dword [ebp - 0xa8], 1
jmp 0x45e12d
and dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0x18]
imul eax, dword [eax], 0x3411
mov ecx, dword [ebp - 0x18]
cmp eax, dword [ecx]
jg 0x45e15c
mov dword [ebp - 0x44], 1
jmp 0x45e160
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
imul eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x98]
mov dword [ecx], eax
jmp 0x45e179
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
jmp 0x45e507
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x78], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0x2b79dc86
mov dword [ebp - 0x94], 0x4656e2e3
mov dword [ebp - 0x9c], 5
mov dword [ebp - 0x74], 0xffffffff
mov dword [ebp - 0x1c], 0
jmp 0x45e1bd
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 4
jge 0x45e1d0
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x40], 0xffffffff
jmp 0x45e1b6
mov dword [ebp - 8], 0
jmp 0x45e1e0
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 3
jg 0x45e3de
mov dword [ebp - 4], 0xa772304b
mov dword [ebp - 4], 3
jmp 0x45e201
mov eax, dword [ebp - 4]
dec eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x45e384
push 2
lea ecx, [ebp - 0x30]
call fcn.00416ef7
mov dword [ebp - 0x80], 0xcedb7758
mov dword [ebp - 0x20], 0
jmp 0x45e22c
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
jge 0x45e245
push dword [ebp - 0x20]
lea ecx, [ebp - 0x30]
call fcn.00416f95
mov dword [eax], 0xc0272a72
jmp 0x45e225
push 1
lea ecx, [ebp - 0x30]
call fcn.00416f95
mov dword [eax], 3
jmp 0x45e26f
push 1
lea ecx, [ebp - 0x30]
call fcn.00416f95
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x6c]
mov dword [ecx], eax
push 1
lea ecx, [ebp - 0x30]
call fcn.00416f95
cmp dword [eax], 0
jl 0x45e370
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x40]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0x40]
mov dword [ebp - 0xdc], eax
push 0
lea ecx, [ebp - 0x30]
call fcn.00416f95
push 1
lea ecx, [ebp - 0x30]
call fcn.00416f95
cmp dword [eax], 0
jne 0x45e2b9
cmp dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x30]
call fcn.00416f95
cmp dword [ebp - 4], 0x231
jle 0x45e2d5
mov dword [ebp - 0x68], 1
jmp 0x45e2d9
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x40]
cmp dword [ebp - 0x68], eax
jg 0x45e2ee
mov dword [ebp - 0x50], 1
jmp 0x45e2f2
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x50], eax
je 0x45e303
mov dword [ebp - 0x60], 1
jmp 0x45e307
and dword [ebp - 0x60], 0
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x40]
cmp dword [ebp - 0x60], eax
jg 0x45e321
mov dword [ebp - 0xb8], 1
jmp 0x45e328
and dword [ebp - 0xb8], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0xcc], eax
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x40]
mov dword [ebp - 0xec], eax
push 1
lea ecx, [ebp - 0x30]
call fcn.00416f95
cmp dword [eax], 0
jne 0x45e35e
mov eax, 0x4b5a
test eax, eax
jne 0x45e35e
and dword [ebp - 0x58], 0
jmp 0x45e365
mov dword [ebp - 0x58], 1
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x80], eax
jmp 0x45e257
mov dword [ebp - 0xc], 0xfffffff9
lea ecx, [ebp - 0x30]
call fcn.00416f90
jmp 0x45e1fa
cmp dword [ebp - 4], 0
je 0x45e3a0
mov byte [ebp - 0x12], 0
movzx eax, byte [ebp - 0x12]
test eax, eax
je 0x45e39e
push 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x45e3d9
mov dword [ebp - 0x84], 5
cmp dword [ebp - 0x84], 0
je 0x45e3bb
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
jmp 0x45e3d9
mov byte [ebp - 0x11], 0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x45e3d9
push 0x2230
push 0x12a3
push 0
call dword [sym.imp.GDI32.dll_PtInRegion]
jmp 0x45e1d9
push 4
pop eax
imul eax, eax, 3
mov eax, dword [ebp + eax - 0x40]
mov dword [ebp - 0xd4], eax
push 4
pop eax
imul eax, eax, 3
mov eax, dword [ebp + eax - 0x40]
mov dword [ebp - 0xe4], eax
push 4
pop eax
imul eax, eax, 3
mov eax, dword [ebp + eax - 0x40]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 8]
imul eax, dword [ebp - 0xc]
push 4
pop ecx
shl ecx, 0
sub eax, dword [ebp + ecx - 0x40]
push 4
pop ecx
shl ecx, 1
cmp eax, dword [ebp + ecx - 0x40]
jne 0x45e44b
mov dword [ebp - 0x48], 1
jmp 0x45e44f
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x48], eax
jne 0x45e460
mov dword [ebp - 0x4c], 1
jmp 0x45e464
and dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x7d38c461
jg 0x45e47f
mov dword [ebp - 0x8c], 1
jmp 0x45e486
and dword [ebp - 0x8c], 0
push 4
pop eax
imul eax, eax, 3
mov eax, dword [ebp + eax - 0x40]
mov dword [ebp - 0xd8], eax
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x40]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0x94]
dec eax
cmp eax, 6
jb 0x45e4bb
mov dword [ebp - 0x54], 1
jmp 0x45e4bf
and dword [ebp - 0x54], 0
imul eax, dword [ebp - 0x54], 0xffff
cmp eax, dword [ebp - 0x9c]
jl 0x45e4d7
mov dword [ebp - 0x5c], 1
jmp 0x45e4db
and dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x74], eax
push 0x58ad
push 0x3e8b
push 0x7658
push 0
push 0x58dc
push dword [ebp - 0x78]
push 0x3a0e
call fcn.00449c4b
add esp, 0x1c
mov esp, ebp
pop ebp
ret