Function at 0x657bd0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x27c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28c]
mov ebp, ecx
cmp byte [ebp + 0x10ed], 0
push edi
jne 0x657c0d
cmp dword [esp + 0x294], 0
jle 0x657c06
push 0
push esi
call fcn.00657bd0
test al, al
je 0x657fe2
mov byte [ebp + 0x10ed], 1
cmp byte [ebp + 0x1090], 0
jne 0x657fe2
cmp dword [ebp + 0x1068], 0
je 0x657fe2
cmp dword [ebp + 0x18], 0
je 0x657fe2
cmp dword [ebp + 0x107c], 0
je 0x657fe2
mov eax, dword [esi + 0x40]
test eax, eax
je 0x657c55
cmp dword [eax + 8], 8
sete al
test al, al
je 0x657c55
call fcn.004d1f10
mov eax, dword [ebp + 0x107c]
mov ecx, dword [esi + 0x44]
mov dword [eax + 0x20], ecx
push 0
mov eax, esi
lea edi, [esp + 0x14]
call fcn.004d3900
mov ecx, edi
call fcn.004d3a40
test al, al
je 0x657fe2
mov eax, dword [esp + 0x18]
mov edx, dword [ebp + 0x107c]
mov dword [edx], eax
mov eax, dword [esi]
add eax, 0xfffffff8
mov ebx, 2
cmp eax, ebx
ja 0x657cfd
mov ecx, dword [ebp + 0x107c]
mov edx, dword [esi + 0x48]
mov dword [ecx + 0x24], edx
mov eax, dword [ebp + 0x107c]
mov ecx, dword [esi + 0x4c]
push 0
lea edi, [esp + 0x14]
mov dword [eax + 0x28], ecx
call fcn.004d3a60
mov ecx, edi
call fcn.004d3a40
test al, al
je 0x657fe2
mov edx, dword [ebp + 0x107c]
mov eax, dword [esp + 0x18]
push 0
lea edi, [esp + 0x14]
mov dword [edx + 4], eax
call fcn.004d3b00
mov ecx, edi
call fcn.004d3a40
test al, al
je 0x657fe2
mov ecx, dword [ebp + 0x107c]
mov edx, dword [esp + 0x18]
mov dword [ecx + 8], edx
cmp dword [ebp + 0x1358], 0x6c
mov edi, dword [ebp + 0x107c]
jne 0x657d27
mov eax, dword [esi + 4]
mov dword [edi + 0x44], eax
mov ecx, dword [esi + 8]
mov dword [edi + 0x48], ecx
mov edx, dword [ebp + 0x1068]
mov eax, dword [edx + 0x8c]
mov dword [edi + 0x50], eax
cmp dword [ebp + 0x1360], 1
jne 0x657d48
cmp dword [ebp + 0x1358], 0xd
jne 0x657d48
mov ecx, dword [ebp + 0x1594]
imul ecx, ecx, 0x76
mov dword [edi + 0xa8], ecx
mov eax, dword [ebp + 0x1080]
test eax, eax
je 0x657d8e
mov esi, dword [ebp + 0x108c]
test esi, esi
je 0x657fe2
mov ecx, dword [ebp + 0x107c]
lea edx, [eax + 0x20]
push edx
mov edx, dword [ebp + 0x1068]
mov edx, dword [edx + 0x7c]
push edx
lea edx, [ecx + 0x20]
push edx
push ecx
mov edi, eax
call fcn.004a34b0
test eax, eax
jl 0x657fe2
mov edi, dword [ebp + 0x1080]
mov eax, dword [ebp + 0x15a0]
sub eax, 1
mov esi, 6
je 0x657daa
sub eax, 1
je 0x657da6
push ebx
jmp 0x657dab
push 1
jmp 0x657dab
push esi
push edi
call fcn.00605260
mov eax, dword [ebp + 0x15a0]
mov ecx, 1
sub eax, ecx
je 0x657e10
sub eax, ecx
je 0x657dea
mov eax, dword [ebp + 0x1068]
mov dword [eax + 0x188], ebx
mov edx, dword [ebp + 0x1068]
mov dword [edx + 0x180], ebx
mov eax, dword [ebp + 0x1068]
mov dword [eax + 0x184], ebx
jmp 0x657e34
mov edx, dword [ebp + 0x1068]
mov dword [edx + 0x188], ecx
mov eax, dword [ebp + 0x1068]
mov dword [eax + 0x180], ecx
mov edx, dword [ebp + 0x1068]
mov dword [edx + 0x184], ecx
jmp 0x657e34
mov eax, dword [ebp + 0x1068]
mov dword [eax + 0x188], esi
mov edx, dword [ebp + 0x1068]
mov dword [edx + 0x180], esi
mov eax, dword [ebp + 0x1068]
mov dword [eax + 0x184], esi
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 8]
test byte [eax + 0x1c], 0x20
je 0x657e6c
lea ecx, [esp + 0x28]
push ecx
call fcn.00605650
mov edx, dword [ebp + 0x1070]
or dword [esp + 0x4c], 1
mov eax, dword [edx]
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], 0x40
jmp 0x657f55
mov eax, dword [ebp + 0x1068]
mov esi, dword [eax + 0x6c]
mov eax, dword [eax + 0x68]
push esi
push eax
mov eax, dword [esp + 0x29c]
mov edx, 0x3e8
push edx
cdq
push ecx
push edx
push eax
call fcn.006053a0
mov dword [edi + 0x88], eax
mov dword [edi + 0x8c], edx
mov ecx, dword [ebp + 0x1078]
mov edx, dword [ebp + 0x1074]
mov eax, dword [ebp + 0x1068]
push edi
push ecx
push edx
push eax
call fcn.00605320
cmp dword [ebp + 0x1110], 1
mov edi, eax
je 0x657fc6
test edi, edi
jle 0x657fc6
lea ecx, [esp + 0x28]
push ecx
call fcn.00605650
mov ecx, dword [ebp + 0x1068]
mov eax, dword [ecx + 0x324]
test eax, eax
je 0x657f3b
mov esi, dword [eax + 0x88]
test esi, esi
mov eax, dword [eax + 0x8c]
jne 0x657eff
cmp eax, 0x80000000
je 0x657f24
mov edx, dword [ebp + 0x1070]
mov ebx, dword [edx + 0x2c]
mov edx, dword [edx + 0x28]
push ebx
push edx
mov edx, dword [ecx + 0x6c]
mov ecx, dword [ecx + 0x68]
push edx
push ecx
push eax
push esi
call fcn.006053a0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov edx, dword [ebp + 0x1068]
mov eax, dword [edx + 0x324]
cmp dword [eax + 0x54], 0
je 0x657f3b
or dword [esp + 0x4c], 1
mov ecx, dword [ebp + 0x1070]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x1074]
mov dword [esp + 0x48], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edi
lea ecx, [esp + 0x28]
push ecx
mov esi, ebp
call fcn.00658650
test eax, eax
je 0x657fc6
lea esi, [ebp + 0xdf4]
mov eax, esi
lea edi, [esp + 0x80]
call fcn.004ad090
cmp dword [ebp + 0x1110], 0
jne 0x657fb7
cmp word [esi], 0
je 0x657fb7
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
mov edx, edi
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x657fb7
cmp dword [esp + 0x24], 0
ja 0x657fb7
jb 0x657fe2
cmp dword [esp + 0x20], 0x19000
jb 0x657fe2
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x27c
ret 8
mov eax, dword [esp + 0x294]
mov dword [ebp + 0x10f0], eax
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x27c
ret 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x27c
ret 8