Function at 0x414364
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push edi
xor edi, edi
lea ecx, [ebp + 8]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
call fcn.0040e58b
push 0xffffffffffffffff
mov eax, ecx
push eax
push str.force
call fcn.0042c9b5
mov byte [ebp - 1], al
push 1
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x20], edi
call fcn.004124b4
add esp, 0x18
push dword [ebp - 0x20]
lea ecx, [ebp - 0x2c]
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
call fcn.00424629
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ax, word [ecx]
call fcn.004213da
test al, al
je 0x41440b
mov word [ecx], di
add dword [ebp - 0xc], 2
lea ecx, [ebp - 0xc]
call fcn.0040e58b
lea eax, [ebp - 0x4c]
push eax
mov eax, ecx
push eax
call fcn.0042e332
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
push eax
call fcn.0040e5a7
add esp, 0xc
test al, al
je 0x41440b
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042e332
pop ecx
pop ecx
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x40], eax
jg 0x414423
mov ecx, dword [ebp - 0x4c]
jl 0x41441d
cmp dword [ebp - 0x44], ecx
jae 0x414423
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], edi
jg 0x414439
jl 0x41442f
cmp dword [ebp - 0x44], edi
jae 0x414439
mov edi, 0x80070057
jmp 0x41479d
call fcn.0040e916
cmp dword [ebp - 0x40], edi
jg 0x414452
jl 0x41479d
cmp dword [ebp - 0x44], edi
jbe 0x41479d
cmp byte [ebp - 1], 0
jne 0x41446c
cmp edx, dword [ebp - 0x40]
jb 0x41446c
ja 0x41479d
cmp eax, dword [ebp - 0x44]
jae 0x41479d
push ebx
push esi
push 0xe52
lea ecx, [ebp - 0x20]
call fcn.0042465d
mov ebx, dword [ebp - 0x20]
lea eax, [ebx + 0x20]
mov dword [ebp - 0x18], eax
lea eax, [ebx + 0x228]
mov dword [ebp - 0x1c], 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 - 0x20]
lea eax, [esi + 0x430]
add esi, 0x638
push ebx
mov dword [ebp - 0x28], eax
mov word [esi], di
call fcn.0040a9e6
cmp byte [ebp - 1], 0
pop ecx
jne 0x4144f9
xor ecx, ecx
cmp ecx, dword [ebp - 0x40]
jg 0x4144f9
jl 0x4144d5
cmp eax, dword [ebp - 0x44]
jae 0x4144f9
mov word [ebp - 0x3c], di
xor eax, eax
lea edi, [ebp - 0x3a]
stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x44]
push ebx
call fcn.0040ad58
mov ax, word [ebp + eax*2 - 0x3c]
add esp, 0xc
mov word [ebx], ax
xor edi, edi
mov ax, word [ebx]
cmp ax, di
je 0x414790
mov ecx, dword [ebp + 8]
mov word [ecx], ax
mov eax, dword [ebp + 8]
add eax, 4
push eax
push dword [ebp - 0x1c]
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 - 0x1c]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push edi
push dword [ebp - 0x18]
mov edi, dword [ebp - 0x28]
push edi
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov dword [ebp - 0x50], edi
xor edi, edi
push edi
shl eax, 1
mov ebx, 0x100000
push ebx
push dword [ebp - 0x48]
mov word [ebp - 0x54], ax
mov eax, dword [ebp - 0x54]
push dword [ebp - 0x4c]
add eax, 2
mov word [ebp - 0x52], ax
call fcn.00462a80
push edi
push ebx
push dword [ebp - 0x40]
mov dword [ebp - 0x64], eax
push dword [ebp - 0x44]
mov dword [ebp - 0x60], edx
call fcn.00462a80
push str.NtCreatePagingFile
push str.NTDLL
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], edx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ebx, eax
cmp ebx, edi
je 0x414790
push 2
push str.SeCreatePagefilePrivilege
call fcn.0040c09f
pop ecx
pop ecx
push edi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
call ebx
cmp eax, edi
mov dword [ebp - 0x3c], eax
jne 0x41478b
lea eax, [ebp - 8]
push eax
push esi
push edi
push str.PagingFiles
push str.SYSTEMCurrentControlSetControlSession_ManagerMemory_Management
push 0x80000002
mov dword [ebp - 8], 0x1450
call fcn.0042548c
add esp, 0x18
test eax, eax
je 0x414609
mov dword [ebp - 8], edi
mov word [esi + 0x208], di
jmp 0x414633
shr dword [ebp - 8], 1
je 0x414633
mov eax, dword [ebp - 8]
cmp word [esi + eax*2 - 2], di
jne 0x41461d
dec dword [ebp - 8]
jne 0x41460e
cmp dword [ebp - 8], edi
jbe 0x414633
mov eax, dword [ebp - 8]
lea eax, [esi + eax*2]
cmp word [eax], di
je 0x414633
mov word [eax], di
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
mov word [esi + eax*2], di
mov eax, dword [ebp - 8]
push dword [ebp + 8]
lea eax, [esi + eax*2]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x28], eax
call fcn.0046176a
mov edi, eax
pop ecx
lea eax, [edi + 0x3c]
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x34], edi
call fcn.0042465d
push dword [ebp + 8]
mov esi, dword [ebp - 0x18]
push 0x4780f0
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x4780e0
push dword [ebp - 0x48]
lea eax, [esi + eax*2]
push dword [ebp - 0x4c]
push eax
call fcn.0043413c
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push eax
call fcn.00434163
push dword [ebp - 0x18]
call fcn.0046176a
mov ebx, eax
xor esi, esi
add esp, 0x2c
lea ecx, [ebp - 0x14]
inc ebx
mov dword [ebp - 0x1c], esi
call fcn.0042460b
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x28]
jae 0x4146f0
push edi
push dword [ebp + 8]
push eax
call fcn.00424482
add esp, 0xc
test al, al
je 0x4146de
mov eax, dword [ebp - 0x10]
mov ax, word [eax + edi*2]
call fcn.004213da
test al, al
je 0x4146de
cmp dword [ebp - 0x1c], 0
je 0x4146f6
jmp 0x414738
mov eax, dword [ebp - 0x10]
push eax
mov dword [ebp - 0x24], eax
call fcn.0046176a
mov edi, eax
pop ecx
inc edi
jmp 0x414705
cmp dword [ebp - 0x1c], 0
jne 0x414750
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov edi, ebx
mov dword [ebp - 0x1c], 1
lea eax, [edi + esi]
mov dword [ebp - 0x30], eax
add eax, 2
push eax
lea ecx, [ebp - 0x14]
call fcn.00424699
mov eax, dword [ebp - 0x14]
push edi
push dword [ebp - 0x24]
lea eax, [eax + esi*2]
push eax
call fcn.0040391f
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x30]
add esp, 0xc
cmp dword [ebp - 0x10], eax
jae 0x4146f0
mov edi, dword [ebp - 0x34]
push dword [ebp - 0x10]
call fcn.0046176a
pop ecx
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 0x10], eax
jmp 0x4146ad
mov ecx, dword [ebp - 0x14]
lea eax, [esi + esi]
and word [eax + ecx], 0
add eax, 2
push eax
push dword [ebp - 0x14]
push 7
push str.PagingFiles
push str.SYSTEMCurrentControlSetControlSession_ManagerMemory_Management
push 0x80000002
call fcn.00425503
add esp, 0x18
lea ecx, [ebp - 0x14]
call fcn.00424686
lea ecx, [ebp - 0x18]
call fcn.00424686
mov edi, dword [ebp - 0x3c]
jmp 0x414793
xor edi, edi
inc edi
lea ecx, [ebp - 0x20]
call fcn.00424686
pop esi
pop ebx
lea ecx, [ebp - 0x2c]
call fcn.00424686
mov eax, edi
pop edi
leave
ret