Function at 0x40e3f0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c4910
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x51eee0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, dword [0x520340]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x70], eax
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
mov ecx, 0x12
idiv ecx
mov esi, dword [ebp + 8]
cmp edx, 0xd
jne 0x40e456
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
push 0
lea ecx, [ebp - 0x80]
call fcn.00442860
mov dword [ebp - 4], 0
call fcn.00417bf0
test al, al
jne 0x40e47b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x520340], eax
push str.success
lea ecx, [ebp - 0x24]
call fcn.00442820
lea eax, [ebp - 0x24]
push eax
push 0x4d968c
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.00442d00
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.00442a70
push 0x4d9abc
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00442de0
sub esp, 0x18
mov ecx, eax
push esp
call fcn.004435b0
lea eax, [ebp - 0x68]
push eax
call fcn.0044ee90
add esp, 0x1c
mov esi, dword [ebp - 0x68]
push ecx
mov ecx, dword [esi - 0x10]
mov byte [ebp - 4], 3
mov eax, dword [ecx]
mov ebx, esp
call dword [eax + 0x10]
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
mov edx, eax
jl 0x40e507
cmp edx, dword [esi - 0x10]
jne 0x40e507
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40e543
mov eax, dword [edx]
push 2
push dword [esi - 0xc]
mov ecx, edx
call dword [eax]
mov edi, eax
test edi, edi
jne 0x40e51d
call fcn.0040c2e0
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov ecx, dword [esi - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push esi
push eax
lea eax, [edi + 0x10]
push eax
call fcn.004a7195
add esp, 0x10
lea eax, [edi + 0x10]
mov dword [ebx], eax
call fcn.0043a890
mov edx, dword [ebp - 0x68]
add edx, 0xfffffff0
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [edx + 0xc]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40e571
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0
call fcn.004449b0
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
mov byte [ebp - 4], 8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x68], esi
mov byte [ebp - 4], 9
call fcn.00417c50
test al, al
jne 0x40e5f9
xor edi, edi
call fcn.004a6f99
movd xmm0, eax
cvtdq2pd xmm0, xmm0
inc edi
movsd qword [ebp + edi*8 - 0x34], xmm0
cmp edi, 3
jb 0x40e5a6
xor ecx, ecx
mov eax, 2
cmp ecx, eax
jge 0x40e5f3
lea ebx, [ebx]
movsd xmm0, qword [ebp + eax*8 - 0x2c]
movsd xmm1, qword [ebp + eax*8 - 0x34]
comisd xmm0, xmm1
jbe 0x40e5ee
movsd qword [ebp + eax*8 - 0x2c], xmm1
movsd qword [ebp + eax*8 - 0x34], xmm0
dec eax
cmp eax, ecx
jg 0x40e5d0
inc ecx
cmp ecx, 3
jl 0x40e5c1
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.004478c0
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0xa
jb 0x40e617
mov edx, dword [edx]
sub esp, 0x18
mov edi, esp
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp byte [edx], 0
jne 0x40e6a2
xor ecx, ecx
jmp 0x40e6b0
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e6a7
sub ecx, ebx
push ecx
push edx
mov ecx, edi
call fcn.00401460
lea eax, [ebp - 0x6c]
push eax
call fcn.0044ee90
add esp, 0x1c
mov ecx, dword [eax]
lea edi, [esi - 0x10]
lea edx, [ecx - 0x10]
mov byte [ebp - 4], 0xb
cmp edx, edi
je 0x40e71a
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x40e70b
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x40e70b
push edx
call fcn.00404840
add esp, 4
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x40e703
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea esi, [ebx + 0x10]
mov dword [ebp - 0x68], esi
jmp 0x40e71a
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x68]
call fcn.00409950
mov esi, dword [ebp - 0x68]
mov edx, dword [ebp - 0x6c]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 0xa
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e73d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x18], 0x10
mov byte [ebp - 4], 9
jb 0x40e752
push dword [ebp - 0x2c]
call fcn.004a5bbe
add esp, 4
mov edi, dword [ebp - 0x70]
mov eax, 8
mov word [edi], ax
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x40e770
call fcn.0040c2e0
add esi, 0xfffffff0
mov dword [edi + 8], eax
mov byte [ebp - 4], 8
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x40e78e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x34], 0x10
mov byte [ebp - 4], 0
mov dword [ebp - 0x4c], 0x4d9684
jb 0x40e7aa
push dword [ebp - 0x48]
call fcn.004a5bbe
add esp, 4
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
call fcn.00444ab0
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], 0xffffffff
call fcn.00442a70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a63c4
mov esp, ebp
pop ebp
ret