Function at 0x409a00
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5060a2
mov eax, dword fs:[0]
push eax
sub esp, 0x568
mov eax, dword [0x565680]
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
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 1
cmp dword [eax - 0xc], 0
je 0x409e27
lea eax, [ebp + 8]
push 0x51994c
push eax
call fcn.00402960
add esp, 8
test al, al
jne 0x409e27
lea eax, [ebp + 8]
push 0x519944
push eax
call fcn.00402960
add esp, 8
test al, al
jne 0x409e27
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
je 0x409e27
lea eax, [ebp + 0xc]
push 0x51994c
push eax
call fcn.00402960
add esp, 8
test al, al
jne 0x409e27
lea eax, [ebp + 0xc]
push 0x519944
push eax
call fcn.00402960
add esp, 8
test al, al
jne 0x409e27
call fcn.0040a360
test al, al
jne 0x409b05
mov edx, dword [0x566ac0]
xor ecx, ecx
jmp 0x409ad0
mov eax, dword [ebp + ecx*4 - 0x404]
add eax, dword [ebp + ecx*4 - 0x408]
add ecx, 4
add eax, dword [ebp + ecx*4 - 0x41c]
add eax, dword [ebp + ecx*4 - 0x420]
imul eax, eax, 0xee
add edx, eax
cmp ecx, 0x400
jb 0x409ad0
mov dword [0x566ac0], edx
push ecx
mov ecx, esp
mov dword [ebp - 0x570], esp
push 0x519ba0
call fcn.00401ba0
mov edx, dword [esi]
push ecx
push esp
mov ecx, esi
mov byte [ebp - 4], 2
call dword [edx + 0x14]
lea eax, [ebp - 0x554]
push eax
mov byte [ebp - 4], 1
call fcn.0048c6c0
add esp, 8
mov ecx, esp
mov dword [ebp - 0x574], esp
push 0x519ba0
mov byte [ebp - 4], 3
call fcn.00401ba0
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
mov byte [ebp - 4], 4
call fcn.004053a0
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea eax, [ebp - 0x56c]
push eax
mov byte [ebp - 4], 3
call fcn.0048c6c0
add esp, 8
mov ecx, esp
mov dword [ebp - 0x574], esp
push 0x519ba0
mov byte [ebp - 4], 5
call fcn.00401ba0
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
mov byte [ebp - 4], 6
call fcn.004053a0
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea eax, [ebp - 0x560]
push eax
mov byte [ebp - 4], 5
call fcn.0048c6c0
add esp, 0xc
mov eax, dword [ebp - 0x550]
sub eax, dword [ebp - 0x554]
mov byte [ebp - 4], 7
and eax, 0xfffffffc
cmp eax, 0x10
jne 0x409d3f
mov eax, dword [ebp - 0x568]
sub eax, dword [ebp - 0x56c]
and eax, 0xfffffffc
cmp eax, 0x10
jne 0x409d3f
mov eax, dword [ebp - 0x55c]
sub eax, dword [ebp - 0x560]
and eax, 0xfffffffc
cmp eax, 0x10
jne 0x409d3f
mov esi, dword [0x566ac0]
lea ecx, [esi + 1]
lea eax, [esi + 2]
imul eax, ecx
imul eax, esi
cdq
mov ecx, 0x16
idiv ecx
cmp edx, 0xe
jne 0x409c9e
xor esi, esi
lea ecx, [ecx]
call fcn.004e5d44
movd xmm0, eax
cvtdq2pd xmm0, xmm0
inc esi
movsd qword [ebp + esi*8 - 0x550], xmm0
cmp esi, 0xa7
jb 0x409c30
xor ecx, ecx
mov eax, 0xa6
cmp ecx, eax
jge 0x409c8f
lea ebx, [ebx]
movsd xmm0, qword [ebp + eax*8 - 0x548]
movsd xmm1, qword [ebp + eax*8 - 0x550]
comisd xmm0, xmm1
jbe 0x409c8a
movsd qword [ebp + eax*8 - 0x548], xmm1
movsd qword [ebp + eax*8 - 0x550], xmm0
dec eax
cmp eax, ecx
jg 0x409c60
inc ecx
cmp ecx, 0xa7
jl 0x409c51
mov esi, dword [0x566ac0]
mov ebx, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
xor edi, edi
jmp 0x409cb0
imul esi, esi
and esi, 0x8000000f
jns 0x409cc0
dec esi
or esi, 0xfffffff0
inc esi
cmp esi, 6
jne 0x409cd1
push 0
push 0
push 0
push 0
push 0
call ebx
mov ecx, dword [ebp - 0x56c]
mov eax, dword [ebp - 0x554]
add ecx, edi
add eax, edi
push ecx
push eax
call fcn.00402ca0
add esp, 8
test al, al
jne 0x409d3f
call fcn.0040a390
test al, al
jne 0x409d0a
push 4
call fcn.004e4ad7
mov ecx, dword [0x566ac0]
add esp, 4
mov dword [eax], ecx
mov ecx, dword [ebp - 0x560]
mov eax, dword [ebp - 0x554]
add ecx, edi
add eax, edi
push ecx
push eax
call fcn.00402d00
add esp, 8
test al, al
jne 0x409d3f
add edi, 4
cmp edi, 0x10
jge 0x409d3b
mov esi, dword [0x566ac0]
jmp 0x409cb0
mov bl, 1
jmp 0x409d41
xor bl, bl
mov eax, dword [ebp - 0x560]
mov byte [ebp - 4], 5
test eax, eax
je 0x409d8d
push dword [ebp - 0x55c]
lea ecx, [ebp - 0x560]
push eax
call fcn.00409f10
push dword [ebp - 0x560]
call fcn.004e4aa8
add esp, 4
mov dword [ebp - 0x560], 0
mov dword [ebp - 0x55c], 0
mov dword [ebp - 0x558], 0
mov eax, dword [ebp - 0x56c]
mov byte [ebp - 4], 3
test eax, eax
je 0x409dd9
push dword [ebp - 0x568]
lea ecx, [ebp - 0x56c]
push eax
call fcn.00409f10
push dword [ebp - 0x56c]
call fcn.004e4aa8
add esp, 4
mov dword [ebp - 0x56c], 0
mov dword [ebp - 0x568], 0
mov dword [ebp - 0x564], 0
mov eax, dword [ebp - 0x554]
mov byte [ebp - 4], 1
test eax, eax
je 0x409e29
push dword [ebp - 0x550]
lea ecx, [ebp - 0x554]
push eax
call fcn.00409f10
push dword [ebp - 0x554]
call fcn.004e4aa8
add esp, 4
mov dword [ebp - 0x554], 0
mov dword [ebp - 0x550], 0
mov dword [ebp - 0x54c], 0
jmp 0x409e29
xor bl, bl
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or esi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x409e4c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp + 0xc]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x409e6d
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.004e52a4
mov esp, ebp
pop ebp
ret 8