Function at 0x454990
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x5155c0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
mov eax, dword [0x5566e0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [0x5737f4]
mov dword [esp + 0x1c], eax
call fcn.004c2ca4
xor ecx, ecx
xor esi, esi
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4549db
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x48], esi
call fcn.004c2ca4
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x454a09
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x48], 1
mov eax, dword [edi + 8]
xor ebx, ebx
xor ebp, ebp
test eax, eax
jle 0x454a95
test esi, esi
jl 0x454c87
cmp esi, eax
jge 0x454c87
mov ecx, dword [edi + 4]
lea eax, [ecx + esi*4]
push eax
lea ecx, [esp + 0x14]
call fcn.00404e60
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x454a8b
mov ecx, dword [esp + 0x28]
cmp ecx, ebp
jb 0x454a8b
mov eax, dword [esp + 0x24]
ja 0x454a79
cmp eax, ebx
jbe 0x454a8b
mov ebx, eax
lea eax, [esp + 0x10]
mov ebp, ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00404e60
mov eax, dword [edi + 8]
add esi, 1
cmp esi, eax
jl 0x454a29
push 0x637
lea ecx, [esp + 0x1c]
push ecx
call fcn.0041c760
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 2
call fcn.00404e60
mov byte [esp + 0x48], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x454ad8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.0041ac70
push 0x52aec4
push eax
lea ecx, [esp + 0x2c]
mov bl, 3
push ecx
mov byte [esp + 0x60], bl
call fcn.00404c80
add esp, 0x18
mov byte [esp + 0x48], 4
mov esi, dword [esp + 0x1c]
lea ecx, [esi + 0x3c]
push eax
call fcn.00404e60
mov byte [esp + 0x48], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x454b3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x48], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454b60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x638
lea ecx, [esp + 0x20]
push ecx
call fcn.0041c760
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 5
call fcn.00404e60
mov byte [esp + 0x48], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x454ba3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.0041ac70
push 0x52aec4
push eax
lea ecx, [esp + 0x34]
mov bl, 6
push ecx
mov byte [esp + 0x60], bl
call fcn.00404c80
add esp, 0x18
lea ecx, [esi + 0x40]
push eax
mov byte [esp + 0x4c], 7
call fcn.00404e60
mov byte [esp + 0x48], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x454c02
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x48], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454c27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x48], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454c4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454c74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
jmp fcn.004c463b