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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fdc08
mov eax, dword fs:[0]
push eax
sub esp, 0x77c
mov eax, dword [0x536008]
xor eax, ebp
mov dword [ebp - 0x10], 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 - 0x778], 0
mov dword [ebp - 0x774], 0
lea ecx, [ebp - 0x788]
push str.Shell32.dll
mov dword [ebp - 0x778], 0
mov dword [ebp - 0x774], 7
mov word [ebp - 0x788], ax
call fcn.0040a350
mov dword [ebp - 4], 0
lea eax, [ebp - 0x788]
push eax
call fcn.004b99f0
mov ecx, eax
call fcn.004b9ab0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x788]
call fcn.0040a2e0
test edi, edi
je 0x4a3186
push str.SHGetFileInfoW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4a3186
xor eax, eax
mov dword [ebp - 0x498], 0
mov dword [ebp - 0x494], 0
mov dword [ebp - 0x498], 0
mov dword [ebp - 0x494], 7
mov word [ebp - 0x4a8], ax
mov dword [ebp - 4], 1
mov dword [ebp - 0x480], eax
mov dword [ebp - 0x47c], eax
mov dword [ebp - 0x480], eax
mov dword [ebp - 0x47c], 7
mov word [ebp - 0x490], ax
mov byte [ebp - 4], 2
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x464], 7
mov word [ebp - 0x478], ax
mov dword [ebp - 4], 4
push 0x2b4
push eax
lea eax, [ebp - 0x770]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4a3139
mov eax, dword [esi]
push 0x610
push 0x2b4
lea ecx, [ebp - 0x770]
push ecx
push 0
push eax
call edi
test eax, eax
jne 0x4a318d
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x478]
call fcn.0040a2e0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x490]
call fcn.0040a2e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4a8]
call fcn.0040a2e0
xor al, al
jmp 0x4a343b
lea ecx, [ebp - 0x764]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a3196
sub ecx, edx
lea eax, [ebp - 0x764]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4a8]
call fcn.0040a350
lea ecx, [ebp - 0x55c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a31c1
sub ecx, edx
lea eax, [ebp - 0x55c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x490]
call fcn.0040a350
push 0x20a
lea eax, [ebp - 0x430]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x20a
lea eax, [ebp - 0x220]
mov dword [ebp - 0x4b4], 0
push 0
push eax
mov dword [ebp - 0x4b0], 0
mov dword [ebp - 0x4ac], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4a3234
mov eax, dword [esi]
push 0x104
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x4ac]
push ecx
lea ecx, [ebp - 0x4b0]
push ecx
lea ecx, [ebp - 0x4b4]
push ecx
push 0x104
lea ecx, [ebp - 0x430]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4a3359
xor eax, eax
lea ecx, [ebp - 0x220]
mov word [ebp - 0x18], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a3280
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x478]
call fcn.0040a350
cmp dword [esi + 0x14], 8
mov byte [ebp - 0x448], 1
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0
jb 0x4a32d9
mov esi, dword [esi]
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x438]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x4a337d
mov esi, dword [ebp - 0x434]
mov eax, esi
mov edi, dword [ebp - 0x438]
imul eax, edi
push 0
push edi
mov dword [ebp - 0x460], eax
mov eax, dword [ebp - 0x43c]
mul esi
push edx
push eax
call fcn.004e7950
mov dword [ebp - 0x458], eax
mov eax, dword [ebp - 0x440]
mov dword [ebp - 0x454], edx
mul esi
push 0
push edi
push edx
push eax
call fcn.004e7950
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x44c], edx
jmp 0x4a337d
xorps xmm0, xmm0
mov dword [ebp - 0x460], 0
movlpd qword [ebp - 0x458], xmm0
movlpd qword [ebp - 0x450], xmm0
mov byte [ebp - 0x448], 0
lea eax, [ebp - 0x4a8]
cmp ebx, eax
je 0x4a33a3
cmp dword [ebp - 0x494], 8
mov ecx, ebx
push dword [ebp - 0x498]
cmovae eax, dword [ebp - 0x4a8]
push eax
call fcn.0040a350
lea ecx, [ebx + 0x18]
lea eax, [ebp - 0x490]
cmp ecx, eax
je 0x4a33ca
cmp dword [ebp - 0x47c], 8
push dword [ebp - 0x480]
cmovae eax, dword [ebp - 0x490]
push eax
call fcn.0040a350
lea ecx, [ebx + 0x30]
lea eax, [ebp - 0x478]
cmp ecx, eax
je 0x4a33f1
cmp dword [ebp - 0x464], 8
push dword [ebp - 0x468]
cmovae eax, dword [ebp - 0x478]
push eax
call fcn.0040a350
mov eax, dword [ebp - 0x460]
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 0x458]
mov dword [ebx + 0x50], eax
mov eax, dword [ebp - 0x454]
mov dword [ebx + 0x54], eax
mov eax, dword [ebp - 0x450]
mov dword [ebx + 0x58], eax
mov eax, dword [ebp - 0x44c]
mov dword [ebx + 0x5c], eax
mov al, byte [ebp - 0x448]
mov byte [ebx + 0x60], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4a8]
call fcn.004134e0
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 - 0x10]
xor ecx, ebp
call fcn.004e62ab
mov esp, ebp
pop ebp
ret