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

Disassembly:
mov eax, 0x4c03cb
call fcn.004bd430
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
sub esp, 0x44
push esi
xor esi, esi
cmp eax, esi
push edi
je 0x475fb0
mov eax, ebx
call fcn.0046f0a7
test eax, eax
je 0x475fb0
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov eax, ebx
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], esi
call fcn.0046f0a7
test eax, eax
jbe 0x475d55
mov esi, dword [ebp - 0x1c]
and dword [ebp - 0x34], 0
and dword [ebp - 0x30], 0
mov edi, ebx
call fcn.0042e6d7
push 3
pop ecx
lea edx, [ebp - 0x20]
call fcn.00403051
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
mov eax, dword [ebp - 0x20]
sete byte [ebp - 0x11]
add eax, 0xfffffff0
call fcn.004027f9
cmp byte [ebp - 0x11], 0
je 0x475cef
call fcn.0042e6d7
mov eax, dword [eax]
xor esi, esi
cmp eax, esi
je 0x475ce9
push esi
push esi
lea ecx, [ebp - 0x3c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x475ce9
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x30], eax
jmp 0x475cef
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov edi, dword [ebp - 0x48]
test edi, edi
mov edx, dword [ebp - 0x44]
je 0x475d22
mov eax, dword [ebp - 0x40]
mov ecx, edx
sub ecx, edi
sub eax, edi
sar ecx, 3
sar eax, 3
cmp ecx, eax
jae 0x475d22
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov dword [edx], eax
mov eax, dword [ebp - 0x44]
add edx, 8
mov dword [eax + 4], ecx
mov dword [ebp - 0x44], edx
jmp 0x475d42
cmp edi, edx
mov esi, edx
jbe 0x475d2d
call fcn.0049d680
push esi
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x4c]
call fcn.0047611c
inc dword [ebp - 0x1c]
mov eax, ebx
call fcn.0046f0a7
cmp dword [ebp - 0x1c], eax
jb 0x475c80
and dword [ebp - 0x1c], 0
xor eax, eax
cmp dword [ebp - 0x48], eax
je 0x475d69
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x48]
sar eax, 3
lea ecx, [eax - 1]
mov eax, dword [ebp - 0x1c]
cmp eax, ecx
jae 0x475ef8
lea esi, [eax + 1]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x30], esi
cmp dword [ebp - 0x48], 0
je 0x475dd7
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x48]
sar eax, 3
cmp esi, eax
jae 0x475dd7
mov edi, dword [ebp - 0x18]
cmp edi, eax
jb 0x475d9f
call fcn.0049d680
mov eax, dword [ebp - 0x48]
mov ecx, eax
test ecx, ecx
lea edi, [eax + edi*8]
je 0x475db7
mov eax, dword [ebp - 0x44]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x475dbf
call fcn.0049d680
mov ecx, dword [ebp - 0x48]
mov eax, dword [edi + 4]
cmp eax, dword [ecx + esi*8 + 4]
jg 0x475dd4
jl 0x475dd1
mov eax, dword [edi]
cmp eax, dword [ecx + esi*8]
jae 0x475dd4
mov dword [ebp - 0x18], esi
inc esi
jmp 0x475d80
mov esi, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], esi
je 0x475eed
mov edi, ebx
call fcn.0042e6d7
mov eax, dword [eax]
sub eax, 0x10
call fcn.0040317b
add eax, 0x10
mov dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0042e6d7
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
call fcn.0042e6d7
mov edi, eax
mov eax, dword [ebp - 0x24]
call fcn.0040308d
mov esi, dword [ebp - 0x18]
mov edi, ebx
call fcn.0042e6d7
mov edi, eax
lea eax, [ebp - 0x20]
call fcn.0040308d
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x475e45
mov edx, dword [ebp - 0x44]
mov ecx, edx
sub ecx, eax
sar ecx, 3
cmp dword [ebp - 0x1c], ecx
jb 0x475e50
call fcn.0049d680
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
mov esi, dword [ebp - 0x1c]
shl esi, 3
test eax, eax
mov ecx, dword [esi + eax]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [esi + eax + 4]
mov dword [ebp - 0x38], ecx
je 0x475e73
mov ecx, edx
sub ecx, eax
sar ecx, 3
cmp dword [ebp - 0x18], ecx
jb 0x475e7e
call fcn.0049d680
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
mov edi, dword [ebp - 0x18]
shl edi, 3
test eax, eax
lea ecx, [edi + eax]
mov dword [ebp - 0x24], ecx
je 0x475e98
sub edx, eax
sar edx, 3
cmp dword [ebp - 0x1c], edx
jb 0x475ea3
call fcn.0049d680
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
mov dword [esi + eax], edx
mov eax, dword [ecx + 4]
mov ecx, dword [ebp - 0x48]
mov dword [esi + ecx + 4], eax
cmp dword [ebp - 0x48], 0
je 0x475ec6
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x48]
sar eax, 3
cmp dword [ebp - 0x18], eax
jb 0x475ecb
call fcn.0049d680
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x3c]
mov dword [edi + ecx], eax
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x38]
mov dword [edi + eax + 4], ecx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.004027f9
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
jmp 0x475d59
cmp dword [ebp - 0x48], 0
je 0x475f97
mov esi, dword [ebp - 0x44]
mov eax, esi
sub eax, dword [ebp - 0x48]
sar eax, 3
je 0x475f97
cmp dword [ebp - 0x48], esi
jbe 0x475f1d
call fcn.0049d680
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x38], esi
push 0xffffffffffffffff
lea esi, [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
call fcn.0047632e
mov edi, dword [eax]
test edi, edi
mov esi, dword [eax + 4]
jne 0x475f3e
call fcn.0049d680
cmp esi, dword [edi + 8]
jb 0x475f48
call fcn.0049d680
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
shl eax, 0x14
cdq
cmp ecx, edx
jg 0x475f97
jl 0x475f5e
mov ecx, dword [esi]
cmp ecx, eax
jae 0x475f97
cmp dword [ebp - 0x48], 0
je 0x475f73
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x48]
sar eax, 3
je 0x475f73
sub dword [ebp - 0x44], 8
mov eax, ebx
call fcn.0046f0a7
test eax, eax
je 0x475ef8
mov eax, dword [ebx + 8]
push eax
add eax, 0xfffffffc
call fcn.00433bc4
add dword [ebx + 8], 0xfffffffc
jmp 0x475ef8
mov eax, ebx
call fcn.0046f0a7
test eax, eax
jne 0x475fc0
cmp dword [ebp - 0x48], eax
je 0x475fb0
push dword [ebp - 0x48]
call fcn.0049bd0b
pop ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
lea esi, [ebp - 0x34]
mov edi, ebx
call fcn.0041a94d
mov edi, dword [ebp - 0x30]
mov esi, dword [ebx + 8]
cmp dword [ebx + 4], esi
jbe 0x475fda
call fcn.0049d680
cmp dword [ebp - 0x34], 0
je 0x475fe5
cmp dword [ebp - 0x34], ebx
je 0x475fea
call fcn.0049d680
cmp edi, esi
je 0x476074
lea esi, [ebp - 0x34]
call fcn.004714f6
mov ecx, dword [ebp + 8]
push dword [ecx]
push eax
call fcn.00418143
test eax, eax
je 0x476027
mov esi, dword [ebp - 0x34]
test esi, esi
jne 0x476015
call fcn.0049d680
cmp edi, dword [esi + 8]
jb 0x47601f
call fcn.0049d680
add edi, 4
mov dword [ebp - 0x30], edi
jmp 0x475fcd
lea esi, [ebp - 0x34]
call fcn.004714f6
mov eax, dword [eax]
sub eax, 0x10
call fcn.0040317b
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
mov byte [ebp - 4], 2
push dword [ebx + 8]
lea ecx, [edi + 4]
mov eax, edi
call fcn.00476377
mov eax, dword [ebx + 8]
pop ecx
push eax
add eax, 0xfffffffc
call fcn.00433bc4
add dword [ebx + 8], 0xfffffffc
lea eax, [ebp + 8]
push eax
mov edi, ebx
call fcn.00467d1c
lea eax, [esi - 0x10]
call fcn.004027f9
cmp dword [ebp - 0x48], 0
je 0x476083
push dword [ebp - 0x48]
call fcn.0049bd0b
pop ecx
xor eax, eax
inc eax
jmp 0x475fb2