Function at 0x4257d0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
lea ebp, [esp - 0x754]
sub esp, 0x754
push 0xffffffffffffffff
push 0x5072e5
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x55406c]
xor eax, ebp
mov dword [ebp + 0x750], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
push 0xb
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x24]
push 0x5303e4
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
call fcn.00406aa0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
call fcn.0041eed0
mov ecx, eax
call fcn.0041ef90
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
cmp edx, 8
jb 0x425898
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42588e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x425c8b
push edx
push ecx
call fcn.004c2c30
add esp, 8
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
test edi, edi
je 0x4259b9
push str.SHGetFileInfoW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4259b9
xor eax, eax
mov dword [ebp + 0x2d0], 0
mov dword [ebp + 0x2d4], 0
mov dword [ebp + 0x2d0], 0
mov dword [ebp + 0x2d4], 7
mov word [ebp + 0x2c0], ax
mov dword [ebp - 4], 1
mov dword [ebp + 0x2e8], eax
mov dword [ebp + 0x2ec], eax
mov dword [ebp + 0x2e8], eax
mov dword [ebp + 0x2ec], 7
mov word [ebp + 0x2d8], ax
mov byte [ebp - 4], 2
mov dword [ebp + 0x300], eax
mov dword [ebp + 0x304], eax
mov dword [ebp + 0x300], eax
mov dword [ebp + 0x304], 7
mov word [ebp + 0x2f0], ax
mov dword [ebp - 4], 4
push 0x2b4
push eax
lea eax, [ebp]
push eax
call fcn.004da870
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x42596f
mov eax, dword [esi]
push 0x610
push 0x2b4
lea ecx, [ebp]
push ecx
push 0
push eax
call edi
test eax, eax
jne 0x4259c0
mov dword [ebp - 4], 6
lea ecx, [ebp + 0x2f0]
call fcn.00406a30
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x2d8]
call fcn.00406a30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x2c0]
call fcn.00406a30
xor al, al
jmp 0x425c68
lea ecx, [ebp + 0xc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4259c6
sub ecx, edx
lea eax, [ebp + 0xc]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp + 0x2c0]
call fcn.00406aa0
lea ecx, [ebp + 0x214]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4259f0
sub ecx, edx
lea eax, [ebp + 0x214]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp + 0x2d8]
call fcn.00406aa0
push 0x20a
lea eax, [ebp + 0x338]
push 0
push eax
call fcn.004da870
push 0x20a
lea eax, [ebp + 0x544]
mov dword [ebp + 0x2b4], 0
push 0
push eax
mov dword [ebp + 0x2b8], 0
mov dword [ebp + 0x2bc], 0
call fcn.004da870
add esp, 0x18
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x425a63
mov eax, dword [esi]
push 0x104
lea ecx, [ebp + 0x544]
push ecx
lea ecx, [ebp + 0x2bc]
push ecx
lea ecx, [ebp + 0x2b8]
push ecx
lea ecx, [ebp + 0x2b4]
push ecx
push 0x104
lea ecx, [ebp + 0x338]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x425b86
xor eax, eax
lea ecx, [ebp + 0x544]
mov word [ebp + 0x74c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425ab1
sub ecx, edx
lea eax, [ebp + 0x544]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp + 0x2f0]
call fcn.00406aa0
cmp dword [esi + 0x14], 8
mov byte [ebp + 0x320], 1
mov dword [ebp + 0x330], 0
mov dword [ebp + 0x334], 0
mov dword [ebp + 0x328], 0
mov dword [ebp + 0x32c], 0
jb 0x425b0a
mov esi, dword [esi]
lea eax, [ebp + 0x32c]
push eax
lea eax, [ebp + 0x328]
push eax
lea eax, [ebp + 0x334]
push eax
lea eax, [ebp + 0x330]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x425baa
mov esi, dword [ebp + 0x334]
mov eax, esi
mov edi, dword [ebp + 0x330]
imul eax, edi
push 0
push edi
mov dword [ebp + 0x308], eax
mov eax, dword [ebp + 0x32c]
mul esi
push edx
push eax
call fcn.004c31e0
mov dword [ebp + 0x310], eax
mov eax, dword [ebp + 0x328]
mov dword [ebp + 0x314], edx
mul esi
push 0
push edi
push edx
push eax
call fcn.004c31e0
mov dword [ebp + 0x318], eax
mov dword [ebp + 0x31c], edx
jmp 0x425baa
xorps xmm0, xmm0
mov dword [ebp + 0x308], 0
movlpd qword [ebp + 0x310], xmm0
movlpd qword [ebp + 0x318], xmm0
mov byte [ebp + 0x320], 0
lea eax, [ebp + 0x2c0]
cmp ebx, eax
je 0x425bd0
cmp dword [ebp + 0x2d4], 8
mov ecx, ebx
push dword [ebp + 0x2d0]
cmovae eax, dword [ebp + 0x2c0]
push eax
call fcn.00406aa0
lea ecx, [ebx + 0x18]
lea eax, [ebp + 0x2d8]
cmp ecx, eax
je 0x425bf7
cmp dword [ebp + 0x2ec], 8
push dword [ebp + 0x2e8]
cmovae eax, dword [ebp + 0x2d8]
push eax
call fcn.00406aa0
lea ecx, [ebx + 0x30]
lea eax, [ebp + 0x2f0]
cmp ecx, eax
je 0x425c1e
cmp dword [ebp + 0x304], 8
push dword [ebp + 0x300]
cmovae eax, dword [ebp + 0x2f0]
push eax
call fcn.00406aa0
mov eax, dword [ebp + 0x308]
mov dword [ebx + 0x48], eax
mov eax, dword [ebp + 0x310]
mov dword [ebx + 0x50], eax
mov eax, dword [ebp + 0x314]
mov dword [ebx + 0x54], eax
mov eax, dword [ebp + 0x318]
mov dword [ebx + 0x58], eax
mov eax, dword [ebp + 0x31c]
mov dword [ebx + 0x5c], eax
mov al, byte [ebp + 0x320]
mov byte [ebx + 0x60], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x2c0]
call fcn.00425ca0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x750]
xor ecx, ebp
call fcn.004c23b5
lea esp, [ebp + 0x754]
pop ebp
ret
call fcn.004e59ff
int3