Function at 0x452100
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4166
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x54006c]
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.0042eb00
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 0x45215d
mov eax, dword [ecx]
jmp 0x45215f
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x58]
push edx
push eax
call fcn.004159f0
lea ecx, [ebp - 0x28]
call fcn.00435310
add esp, 0x14
mov byte [ebp - 4], 1
mov edx, 2
lea ecx, [ebp - 0x70]
call fcn.0042eb00
add esp, 4
mov esi, eax
lea eax, [ebp - 0x58]
cmp eax, esi
je 0x4521ca
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x4521ad
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00418d80
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.00415130
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x4521e3
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00418d80
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.004159f0
lea ecx, [ebp - 0x40]
call fcn.00435310
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 0x4522a0
xor eax, eax
test eax, eax
jne 0x4522c1
cmp ebx, edi
jb 0x4522c1
ja 0x4522c1
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 0x452325
cmp dword [ebp - 0x74], 0
ja 0x452325
jb 0x452321
cmp dword [ebp - 0x78], 0x1f400000
jae 0x452325
xor esi, esi
jmp 0x45232a
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x4522b3
add edx, 2
add ecx, 2
sub esi, 1
jmp 0x452245
movzx eax, word [edx]
cmp ax, word [ecx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x452249
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 0x452325
cmp dword [ebp - 0x74], 0
ja 0x4522f6
jb 0x452321
cmp dword [ebp - 0x78], 0xfa00000
jae 0x4522f6
xor esi, esi
jmp 0x45232a
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 0x452325
cmp dword [ebp - 0x74], 0
ja 0x452325
jb 0x452321
cmp dword [ebp - 0x78], 0xfa00000
jae 0x452325
xor esi, esi
jmp 0x45232a
mov esi, 1
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x45233f
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00418d80
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 0x452368
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00418d80
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 0x452391
inc ecx
push ecx
push dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call fcn.00418d80
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.00465694
mov esp, ebp
pop ebp
ret