Function at 0x45d7f0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518766
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x56d06c]
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
push ecx
mov edx, 4
lea ecx, [ebp - 0x58]
call fcn.0043b100
sub esp, 0x14
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x45d84d
mov eax, dword [ecx]
jmp 0x45d84f
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x58]
push edx
push eax
call fcn.0041d980
lea ecx, [ebp - 0x28]
call fcn.004413f0
add esp, 0x14
mov byte [ebp - 4], 1
mov edx, 2
lea ecx, [ebp - 0x70]
call fcn.0043b100
add esp, 4
mov esi, eax
lea eax, [ebp - 0x58]
cmp eax, esi
je 0x45d8ba
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x45d89d
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.0041e1c0
xor eax, eax
mov dword [ebp - 0x44], 7
push esi
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.0041de40
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x45d8d3
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.0041e1c0
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x58]
push eax
call fcn.0041d980
lea ecx, [ebp - 0x40]
call fcn.004413f0
mov edi, dword [ebp - 0x30]
lea ecx, [ebp - 0x40]
mov ebx, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
add esp, 0x18
mov dword [ebp - 0x78], 0
cmp dword [ebp - 0x2c], 8
mov esi, edi
mov dword [ebp - 0x74], 0
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 8
cmovae edx, dword [ebp - 0x28]
cmp ebx, edi
cmovb esi, ebx
test esi, esi
jne 0x45d990
xor eax, eax
test eax, eax
jne 0x45d9b1
cmp ebx, edi
jb 0x45d9b1
ja 0x45d9b1
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x78]
push ecx
push 0
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x45da15
cmp dword [ebp - 0x74], 0
ja 0x45da15
jb 0x45da11
cmp dword [ebp - 0x78], 0x1f400000
jae 0x45da15
xor esi, esi
jmp 0x45da1a
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x45d9a3
add edx, 2
add ecx, 2
sub esi, 1
jmp 0x45d935
movzx eax, word [edx]
cmp ax, word [ecx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x45d939
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x78]
mov esi, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push 0
push 0
push eax
call esi
test eax, eax
je 0x45da15
cmp dword [ebp - 0x74], 0
ja 0x45d9e6
jb 0x45da11
cmp dword [ebp - 0x78], 0xfa00000
jae 0x45d9e6
xor esi, esi
jmp 0x45da1a
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x78]
push ecx
push 0
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 0
push eax
call esi
test eax, eax
je 0x45da15
cmp dword [ebp - 0x74], 0
ja 0x45da15
jb 0x45da11
cmp dword [ebp - 0x78], 0xfa00000
jae 0x45da15
xor esi, esi
jmp 0x45da1a
mov esi, 1
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x45da2f
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0041e1c0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x45da58
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0041e1c0
mov ecx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x45da81
inc ecx
push ecx
push dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call fcn.0041e1c0
mov eax, esi
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.00471876
mov esp, ebp
pop ebp
ret