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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f85b8
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x6b000c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x434], ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x428], edi
test edi, edi
je 0x4a6c03
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebx, eax
cmp ebx, 1
je 0x4a6c03
test ebx, ebx
je 0x4a6c03
cmp ebx, 3
jne 0x4a6935
push edi
call fcn.004a7ae0
test eax, eax
je 0x4a693a
mov ebx, 2
jmp 0x4a6950
cmp ebx, 2
je 0x4a6950
cmp dword [0x6b8fe4], 0
jne 0x4a6c03
cmp ebx, 5
jne 0x4a6c03
mov si, word [0x639ee0]
lea eax, [ebp - 0x21a]
push 0x206
push 0
push eax
mov word [ebp - 0x21c], si
call fcn.00588800
add esp, 0xc
mov word [ebp - 0x424], si
lea eax, [ebp - 0x422]
push 0x206
push 0
push eax
call fcn.00588800
add esp, 0xc
mov dword [ebp - 0x444], 0
lea eax, [ebp - 0x424]
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x440], 0
push 0x103
push eax
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x444]
push eax
push 0x103
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4a6c03
push 0x38
call fcn.00560437
add esp, 4
mov dword [ebp - 0x438], eax
mov dword [ebp - 4], 0
mov ecx, eax
call fcn.004a5da0
mov dword [ebp - 0x430], eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x438], eax
test eax, eax
je 0x4a6c03
mov eax, dword [ebp - 0x434]
xor esi, esi
cmp dword [eax + 0x10], esi
jle 0x4a6a99
add eax, 0xc
mov dword [ebp - 0x42c], eax
nop word [eax + eax]
test esi, esi
js 0x4a6c23
cmp esi, dword [eax + 4]
jge 0x4a6c23
mov eax, dword [eax]
mov edi, dword [eax + esi*4]
test edi, edi
je 0x4a6a6b
push dword [ebp - 0x428]
mov ecx, edi
call fcn.004a7fd0
test eax, eax
je 0x4a6a7f
mov eax, dword [ebp - 0x434]
inc esi
cmp esi, dword [eax + 0x10]
jge 0x4a6a93
mov eax, dword [ebp - 0x42c]
jmp 0x4a6a40
mov ecx, dword [ebp - 0x42c]
push esi
call fcn.004a7e20
push ecx
mov ecx, edi
call fcn.004a6770
mov edi, dword [ebp - 0x428]
mov esi, dword [ebp - 0x430]
mov ecx, edi
mov dword [esi + 0x28], ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a6aa7
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.0040c9d0
lea ebx, [esi + 4]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x42c], ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a6ad1
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.0040c9d0
lea edx, [ebp - 0x424]
lea eax, [edx + 2]
lea ecx, [esi + 8]
mov dword [ebp - 0x430], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4a6b01
sub edx, dword [ebp - 0x430]
lea eax, [ebp - 0x424]
sar edx, 1
push edx
push eax
call fcn.0040c9d0
lea eax, [esi + 0x18]
push eax
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [esi + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov ecx, esi
call fcn.004a61d0
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x4a6bec
push 0x650a3c
mov edx, str.LocalDiskVolumeName
lea ecx, [ebp - 0x428]
call fcn.004db870
add esp, 4
mov dword [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [eax]
mov esi, dword [ebx]
sub esi, 0x10
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x4a6bca
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4a6bbb
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x4a6bbb
call fcn.0040c950
mov dword [ebp - 0x430], eax
mov ecx, edi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x4a6bae
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x430]
mov ecx, dword [ebp - 0x42c]
add eax, 0x10
mov dword [ecx], eax
jmp 0x4a6bca
push dword [edx - 0xc]
mov ecx, dword [ebp - 0x42c]
push edx
call fcn.0040c9d0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x428]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4a6bec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x434]
lea eax, [ebp - 0x438]
push eax
add ecx, 0x18
call fcn.004a7e80
jmp 0x4a6c05
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0055f9be
mov esp, ebp
pop ebp
ret 4
push 1
push 0xc000008c
call fcn.0040b220
int3