Function at 0x1001f3c6
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push edi
xor edi, edi
lea ecx, [ebp + 8]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
call fcn.1000f804
push 0xffffffffffffffff
mov eax, ecx
push eax
push str.force
call fcn.10048195
mov byte [ebp - 1], al
push 1
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x24], edi
call fcn.1001a65a
add esp, 0x18
push dword [ebp - 0x24]
lea ecx, [ebp - 0x34]
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
call fcn.10050208
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ax, word [ecx]
call fcn.10002df6
test al, al
je 0x1001f475
mov word [ecx], di
add dword [ebp - 0xc], 2
lea ecx, [ebp - 0xc]
call fcn.1000f804
lea eax, [ebp - 0x50]
push eax
mov eax, ecx
push eax
call fcn.100539de
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cx, word [eax]
push ecx
call fcn.10045b88
add esp, 0xc
test al, al
jne 0x1001f466
cmp cx, 0x28
jne 0x1001f475
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.100539de
pop ecx
pop ecx
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x44], eax
jg 0x1001f48d
mov ecx, dword [ebp - 0x50]
jl 0x1001f487
cmp dword [ebp - 0x48], ecx
jae 0x1001f48d
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], edi
jg 0x1001f4a3
jl 0x1001f499
cmp dword [ebp - 0x48], edi
jae 0x1001f4a3
mov edi, 0x80070057
jmp 0x1001f804
call fcn.10015470
cmp dword [ebp - 0x44], edi
jg 0x1001f4bc
jl 0x1001f804
cmp dword [ebp - 0x48], edi
jbe 0x1001f804
cmp byte [ebp - 1], 0
jne 0x1001f4d6
cmp edx, dword [ebp - 0x44]
jb 0x1001f4d6
ja 0x1001f804
cmp eax, dword [ebp - 0x48]
jae 0x1001f804
push ebx
push esi
push 0xe52
lea ecx, [ebp - 0x24]
call fcn.10046141
mov ebx, dword [ebp - 0x24]
lea eax, [ebx + 0x20]
mov dword [ebp - 0x18], eax
lea eax, [ebx + 0x228]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov ax, word [eax]
mov word [ebx], ax
mov eax, dword [ebp + 8]
mov ax, word [eax + 2]
mov word [ebx + 2], ax
mov word [ebx + 4], di
mov esi, dword [ebp - 0x24]
lea eax, [esi + 0x430]
add esi, 0x638
push ebx
mov dword [ebp - 0x14], eax
mov word [esi], di
call fcn.10010f0e
cmp byte [ebp - 1], 0
pop ecx
jne 0x1001f563
xor ecx, ecx
cmp ecx, dword [ebp - 0x44]
jg 0x1001f563
jl 0x1001f53f
cmp eax, dword [ebp - 0x48]
jae 0x1001f563
mov word [ebp - 0x40], di
xor eax, eax
lea edi, [ebp - 0x3e]
stosd dword es:[edi], eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x48]
push ebx
call fcn.100117d1
mov ax, word [ebp + eax*2 - 0x40]
add esp, 0xc
mov word [ebx], ax
xor edi, edi
mov ax, word [ebx]
cmp ax, di
je 0x1001f7f7
mov ecx, dword [ebp + 8]
mov word [ecx], ax
mov eax, dword [ebp + 8]
add eax, 4
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, 0x104
push edi
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
push dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call edi
shl eax, 1
push 0
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x58]
mov ebx, 0x100000
push ebx
push dword [ebp - 0x4c]
add eax, 2
push dword [ebp - 0x50]
mov word [ebp - 0x56], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x54], eax
call fcn.100b4200
push 0
push ebx
push dword [ebp - 0x44]
mov dword [ebp - 0x68], eax
push dword [ebp - 0x48]
mov dword [ebp - 0x64], edx
call fcn.100b4200
push str.NtCreatePagingFile
push str.NTDLL
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x30], eax
je 0x1001f7f7
push ebx
push 2
push str.SeCreatePagefilePrivilege
call fcn.10013699
add esp, 0xc
push ebx
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x58]
push eax
call dword [ebp - 0x30]
cmp eax, ebx
mov dword [ebp - 0x40], eax
jne 0x1001f7f2
lea eax, [ebp - 8]
push eax
push esi
push ebx
push str.PagingFiles
push str.SYSTEMCurrentControlSetControlSession_ManagerMemory_Management
push 0x80000002
mov dword [ebp - 8], 0x1450
call fcn.10040bf5
add esp, 0x18
test eax, eax
je 0x1001f67f
mov dword [ebp - 8], ebx
mov word [esi + 0x208], bx
jmp 0x1001f6a9
shr dword [ebp - 8], 1
je 0x1001f6a9
mov eax, dword [ebp - 8]
cmp word [esi + eax*2 - 2], bx
jne 0x1001f693
dec dword [ebp - 8]
jne 0x1001f684
cmp dword [ebp - 8], ebx
jbe 0x1001f6a9
mov eax, dword [ebp - 8]
lea eax, [esi + eax*2]
cmp word [eax], bx
je 0x1001f6a9
mov word [eax], bx
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
mov word [esi + eax*2], bx
mov eax, dword [ebp - 8]
push dword [ebp + 8]
lea eax, [esi + eax*2]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x30], eax
call edi
mov dword [ebp - 0x28], eax
add eax, 0x3c
push eax
lea ecx, [ebp - 0x18]
call fcn.10046141
push dword [ebp + 8]
mov esi, dword [ebp - 0x18]
push 0x100caae8
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x100caad8
push dword [ebp - 0x4c]
lea eax, [esi + eax*2]
push dword [ebp - 0x50]
push eax
call fcn.100a0df8
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push eax
call fcn.100a0e43
add esp, 0x28
push dword [ebp - 0x18]
call edi
and dword [ebp - 0x1c], 0
mov esi, eax
lea ecx, [ebp - 0x14]
inc esi
call fcn.10046123
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x30]
jae 0x1001f75b
push dword [ebp - 0x28]
push dword [ebp + 8]
push eax
call fcn.1000f6d2
mov ecx, dword [ebp - 0x10]
add esp, 0xc
test al, al
je 0x1001f74f
mov eax, dword [ebp - 0x28]
mov ax, word [ecx + eax*2]
call fcn.10002df6
test al, al
je 0x1001f74f
cmp dword [ebp - 0x1c], 0
je 0x1001f761
jmp 0x1001f7a4
push ecx
mov dword [ebp - 0x2c], ecx
call edi
inc eax
mov dword [ebp - 0x20], eax
jmp 0x1001f773
cmp dword [ebp - 0x1c], 0
jne 0x1001f7b8
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 1
mov eax, esi
add eax, ebx
mov dword [ebp - 0x38], eax
add eax, 2
push eax
lea ecx, [ebp - 0x14]
call fcn.10046168
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x2c]
lea eax, [eax + ebx*2]
push eax
call fcn.10005b3b
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x38]
add esp, 0xc
cmp dword [ebp - 0x10], eax
jae 0x1001f75b
push dword [ebp - 0x10]
call edi
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 0x10], eax
jmp 0x1001f719
mov eax, dword [ebp - 0x14]
add ebx, ebx
and word [ebx + eax], 0
add ebx, 2
push ebx
push dword [ebp - 0x14]
push 7
push str.PagingFiles
push str.SYSTEMCurrentControlSetControlSession_ManagerMemory_Management
push 0x80000002
call fcn.10040c59
add esp, 0x18
lea ecx, [ebp - 0x14]
call fcn.1003f96c
lea ecx, [ebp - 0x18]
call fcn.1003f96c
mov edi, dword [ebp - 0x40]
jmp 0x1001f7fa
xor edi, edi
inc edi
lea ecx, [ebp - 0x24]
call fcn.1003f96c
pop esi
pop ebx
lea ecx, [ebp - 0x34]
call fcn.1003f96c
mov eax, edi
pop edi
leave
ret