Function at 0x42d1bf
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4e92dc
call fcn.004b48a0
sub esp, 0x68
push edi
xor edi, edi
lea ecx, [ebp + 8]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
call fcn.0041edaf
push 0xffffffffffffffff
mov eax, ecx
push eax
push str.force
call fcn.0044b960
mov byte [ebp - 0xd], al
push 1
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x2c], edi
call fcn.00428699
add esp, 0x18
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x40]
push dword [ebp + 8]
mov dword [ebp - 0x18], eax
call fcn.004565a0
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 8], eax
mov ax, word [ecx]
mov dword [ebp - 4], edi
call fcn.0041ed7f
test al, al
je 0x42d270
mov word [ecx], di
add dword [ebp - 0x18], 2
lea ecx, [ebp - 0x18]
call fcn.0041edaf
lea eax, [ebp - 0x5c]
push eax
mov eax, ecx
push eax
call fcn.0044ce60
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
push eax
call fcn.00423b98
add esp, 0xc
test al, al
je 0x42d270
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0044ce60
pop ecx
pop ecx
mov eax, dword [ebp - 0x58]
cmp dword [ebp - 0x50], eax
jg 0x42d288
mov ecx, dword [ebp - 0x5c]
jl 0x42d282
cmp dword [ebp - 0x54], ecx
jae 0x42d288
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], edi
jg 0x42d29e
jl 0x42d294
cmp dword [ebp - 0x54], edi
jae 0x42d29e
mov edi, 0x80070057
jmp 0x42d613
call fcn.00423f42
cmp dword [ebp - 0x50], edi
jg 0x42d2b7
jl 0x42d613
cmp dword [ebp - 0x54], edi
jbe 0x42d613
cmp byte [ebp - 0xd], 0
jne 0x42d2d1
cmp edx, dword [ebp - 0x50]
jb 0x42d2d1
ja 0x42d613
cmp eax, dword [ebp - 0x54]
jae 0x42d613
push ebx
push esi
push 0xe52
lea ecx, [ebp - 0x30]
call fcn.004494b0
mov ebx, dword [ebp - 0x30]
lea eax, [ebx + 0x20]
mov dword [ebp - 0x24], eax
lea eax, [ebx + 0x228]
mov dword [ebp - 0x2c], 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 - 0x30]
lea eax, [esi + 0x430]
add esi, 0x638
push ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], eax
mov word [esi], di
call fcn.004202a4
cmp byte [ebp - 0xd], 0
pop ecx
jne 0x42d362
xor ecx, ecx
cmp ecx, dword [ebp - 0x50]
jg 0x42d362
jl 0x42d33e
cmp eax, dword [ebp - 0x54]
jae 0x42d362
mov word [ebp - 0x4c], di
xor eax, eax
lea edi, [ebp - 0x4a]
stosd dword es:[edi], eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x54]
push ebx
call fcn.004207e6
mov ax, word [ebp + eax*2 - 0x4c]
add esp, 0xc
mov word [ebx], ax
xor edi, edi
mov ax, word [ebx]
cmp ax, di
je 0x42d602
mov ecx, dword [ebp + 8]
mov word [ecx], ax
mov eax, dword [ebp + 8]
add eax, 4
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, 0x104
push edi
push dword [ebp - 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
push dword [ebp - 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call edi
shl eax, 1
push 0
mov word [ebp - 0x64], ax
mov eax, dword [ebp - 0x64]
mov ebx, 0x100000
push ebx
push dword [ebp - 0x58]
add eax, 2
push dword [ebp - 0x5c]
mov word [ebp - 0x62], ax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x60], eax
call fcn.004b4970
push 0
push ebx
push dword [ebp - 0x50]
mov dword [ebp - 0x74], eax
push dword [ebp - 0x54]
mov dword [ebp - 0x70], edx
call fcn.004b4970
push str.NtCreatePagingFile
push str.NTDLL
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x42d602
push 2
push str.SeCreatePagefilePrivilege
call fcn.004226a0
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
call ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x4c], eax
jne 0x42d5fd
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
push str.PagingFiles
push str.SYSTEMCurrentControlSetControlSession_ManagerMemory_Management
push SysReAllocStringLen
mov dword [ebp - 0x14], 0x1450
call fcn.00444780
add esp, 0x18
test eax, eax
je 0x42d47b
mov dword [ebp - 0x14], ebx
mov word [esi + 0x208], bx
jmp 0x42d4a5
shr dword [ebp - 0x14], 1
je 0x42d4a5
mov eax, dword [ebp - 0x14]
cmp word [esi + eax*2 - 2], bx
jne 0x42d48f
dec dword [ebp - 0x14]
jne 0x42d480
cmp dword [ebp - 0x14], ebx
jbe 0x42d4a5
mov eax, dword [ebp - 0x14]
lea eax, [esi + eax*2]
cmp word [eax], bx
je 0x42d4a5
mov word [eax], bx
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov word [esi + eax*2], bx
mov eax, dword [ebp - 0x14]
push dword [ebp + 8]
lea eax, [esi + eax*2]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x3c], eax
call edi
mov dword [ebp - 0x34], eax
add eax, 0x3c
push eax
lea ecx, [ebp - 0x24]
call fcn.004494b0
push dword [ebp + 8]
mov esi, dword [ebp - 0x24]
push 0x4f6114
push esi
mov byte [ebp - 4], 2
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x4f6104
push dword [ebp - 0x58]
lea eax, [esi + eax*2]
push dword [ebp - 0x5c]
push eax
call fcn.004a4880
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push eax
call fcn.004a48b0
add esp, 0x28
push dword [ebp - 0x24]
call edi
and dword [ebp - 0x28], 0
mov esi, eax
lea ecx, [ebp - 0x20]
inc esi
call fcn.00449480
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x3c]
jae 0x42d55f
push dword [ebp - 0x34]
push dword [ebp + 8]
push eax
call fcn.0041ebf5
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
test al, al
je 0x42d553
mov eax, dword [ebp - 0x34]
mov ax, word [ecx + eax*2]
call fcn.0041ed7f
test al, al
je 0x42d553
cmp dword [ebp - 0x28], 0
je 0x42d565
jmp 0x42d5a8
push ecx
mov dword [ebp - 0x38], ecx
call edi
inc eax
mov dword [ebp - 0x2c], eax
jmp 0x42d577
cmp dword [ebp - 0x28], 0
jne 0x42d5bc
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 1
mov eax, esi
add eax, ebx
mov dword [ebp - 0x44], eax
add eax, 2
push eax
lea ecx, [ebp - 0x20]
call fcn.004494e0
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x38]
lea eax, [eax + ebx*2]
push eax
call fcn.00417dcd
mov eax, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x44]
add esp, 0xc
cmp dword [ebp - 0x1c], eax
jae 0x42d55f
push dword [ebp - 0x1c]
call edi
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 0x1c], eax
jmp 0x42d51d
mov eax, dword [ebp - 0x20]
and word [eax + ebx*2], 0
lea eax, [ebx + ebx + 2]
push eax
push dword [ebp - 0x20]
push 7
push str.PagingFiles
push str.SYSTEMCurrentControlSetControlSession_ManagerMemory_Management
push SysReAllocStringLen
call fcn.00444820
add esp, 0x18
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00443880
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00443880
mov edi, dword [ebp - 0x4c]
jmp 0x42d605
xor edi, edi
inc edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.00443880
pop esi
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00443880
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
leave
ret