Function at 0x464eb0
Capabilities:
Get disk size
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x58]
call fcn.004651d0
cmp dword [ebp + 8], 0
je 0x464ed8
mov eax, dword [ebp + 8]
push eax
call fcn.004482e0
add esp, 4
test eax, eax
jne 0x464edf
xor eax, eax
jmp 0x4651bc
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x58]
add edx, 0x28
push edx
call fcn.00460b80
add esp, 8
mov ax, word [0x477da0]
mov word [ebp - 0x10], ax
mov cl, byte [0x477da2]
mov byte [ebp - 0xe], cl
mov edx, dword [ebp - 0x58]
mov al, byte [edx + 0x28]
mov byte [ebp - 0x10], al
push 0
push 0
mov ecx, dword [ebp - 0x58]
add ecx, 4
push ecx
mov edx, dword [ebp - 0x58]
push edx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x464f32
xor eax, eax
jmp 0x4651bc
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x58]
mov eax, dword [ecx]
imul eax, dword [edx + 4]
mov dword [ebp - 0x20], eax
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
mov ecx, dword [ebp - 0x58]
add ecx, 0x28
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x464f6d
xor eax, eax
jmp 0x4651bc
mov edx, dword [ebp - 0x58]
add edx, 8
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x464f93
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4651bc
mov dword [ebp - 0xc], 0x20
mov edx, dword [ebp - 0x20]
xor eax, eax
mov ecx, dword [ebp - 0x58]
add edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
adc ecx, eax
sub edx, 1
sbb ecx, 0
mov eax, dword [ebp - 0x20]
xor esi, esi
push esi
push eax
push ecx
push edx
call fcn.004443d0
push 0
push 0x10
push edx
push eax
call fcn.00444070
add eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0040e234
add esp, 4
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 8
lea ecx, [ebp - 8]
push ecx
push 0x90073
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x46518b
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov edx, dword [ebp - 0x58]
add eax, dword [edx + 8]
mov edx, dword [edx + 0xc]
adc edx, ecx
sub eax, 1
sbb edx, 0
mov ecx, dword [ebp - 0x20]
xor esi, esi
push esi
push ecx
push edx
push eax
call fcn.004443d0
mov edx, dword [ebp - 0x58]
mov dword [edx + 0x1c], eax
xor ecx, ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0x1c]
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040e234
add esp, 4
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x50]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x18], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
jmp 0x4650ac
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [eax]
jae 0x46518b
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x38]
cmp eax, dword [edx + 0x1c]
jae 0x46518b
mov ecx, dword [ebp - 0x34]
shl ecx, 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx + 0x18]
mov ecx, dword [edx + ecx + 0x1c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
jmp 0x465102
mov edx, dword [ebp - 0x48]
add edx, 1
mov eax, dword [ebp - 0x44]
adc eax, 0
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x34]
shl ecx, 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx + 0x10]
sub eax, dword [ebp - 0x30]
mov ecx, dword [edx + ecx + 0x14]
sbb ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp - 0x5c]
jg 0x46516f
jl 0x465131
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x60]
jae 0x46516f
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x38]
cmp edx, dword [ecx + 0x1c]
jae 0x46516f
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x40]
mov dword [ecx + edx*8], eax
mov eax, dword [ebp - 0x3c]
mov dword [ecx + edx*8 + 4], eax
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x40]
add edx, 1
mov eax, dword [ebp - 0x3c]
adc eax, 0
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], eax
jmp 0x4650f0
mov ecx, dword [ebp - 0x34]
shl ecx, 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx + 0x10]
mov ecx, dword [edx + ecx + 0x14]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
jmp 0x4650a3
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
push eax
call fcn.0040e26e
add esp, 4
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x58]
call fcn.00465230
test eax, eax
jne 0x4651b7
xor eax, eax
jmp 0x4651bc
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4