Function at 0x476cc0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509ae1
mov eax, dword fs:[0]
push eax
sub esp, 0x44
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 dword [ebp - 0x18], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x4c], eax
mov eax, dword [0x5651b8]
mov ecx, 0x5651b8
xor ebx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 4], ebx
or edi, 0xffffffff
jmp 0x476d30
push 0x523b88
push dword [ebp - 0x48]
lea eax, [ebp - 0x3c]
inc ebx
push eax
mov dword [ebp - 0x28], ebx
call fcn.00402ae0
push eax
mov byte [ebp - 4], 1
call fcn.0040d850
mov edx, dword [ebp - 0x3c]
add esp, 0x10
test al, al
sete bl
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x476d77
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x47733f
push 0x523b88
push dword [ebp - 0x48]
lea eax, [ebp - 0x20]
push eax
call fcn.00402ae0
add esp, 0xc
mov edx, dword [0x566ac0]
mov byte [ebp - 4], 2
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
mov ecx, 0x14
idiv ecx
cmp edx, 3
jne 0x476dc6
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x20]
mov dword [ebp - 0x38], 0
call fcn.0043b5c0
add esp, 8
cmp dword [ebp - 0x38], 0
mov edi, eax
je 0x4772ac
test edi, edi
jne 0x47723b
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
push dword [ebp - 0x50]
lea eax, [ebp - 0x44]
push eax
call fcn.0047bb20
mov edi, dword [eax]
mov eax, dword [0x5651b8]
mov ecx, 0x5651b8
mov byte [ebp - 4], 6
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 7
test edi, edi
je 0x476e49
test edi, 0xffff0000
jne 0x476e49
movzx edi, di
push 0
push edi
call fcn.00402f50
add esp, 8
test eax, eax
je 0x476e52
push edi
push eax
lea ecx, [ebp - 0x30]
call fcn.004072e0
jmp 0x476e52
push edi
lea ecx, [ebp - 0x30]
call fcn.00402720
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
mov byte [ebp - 4], 9
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x476e73
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x30]
lea eax, [ebp - 0x14]
push eax
add ebx, 0xfffffff0
push ecx
mov ecx, dword [ebx]
mov dword [ebp - 0x1c], esp
mov eax, dword [ecx]
mov dword [ebp - 0x40], ebx
call dword [eax + 0x10]
cmp dword [ebx + 0xc], 0
lea edx, [ebx + 0xc]
mov ecx, eax
jl 0x476ea7
cmp ecx, dword [ebx]
jne 0x476ea7
mov edi, ebx
mov eax, 1
lock xadd dword [edx], eax
jmp 0x476ed6
mov eax, dword [ecx]
push 1
push dword [ebx + 4]
call dword [eax]
mov edi, eax
test edi, edi
je 0x477236
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
mov ecx, dword [ebx + 4]
inc ecx
push ecx
lea eax, [ebx + 0x10]
push eax
push ecx
lea eax, [edi + 0x10]
push eax
call fcn.004e5e78
add esp, 0x10
mov ecx, dword [ebp - 0x1c]
push 0x1f4
lea eax, [edi + 0x10]
mov edi, dword [ebp - 0x18]
mov dword [ecx], eax
push 3
push dword [ebp - 0x38]
mov ecx, edi
call fcn.0047ba40
push dword [ebp - 0x38]
mov ebx, eax
mov dword [ebp - 0x34], ebx
call fcn.0043b010
add esp, 4
test ebx, ebx
je 0x4771c7
cmp ebx, 1
jne 0x476fae
mov eax, dword [0x5651b8]
mov ecx, 0x5651b8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov eax, str.no_such_table
mov byte [ebp - 4], 0xa
test eax, 0xffff0000
jne 0x476f9c
movzx edi, ax
push 0
push edi
call fcn.00402f50
add esp, 8
test eax, eax
je 0x476f55
push edi
push eax
lea ecx, [ebp - 0x1c]
call fcn.004073a0
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
or eax, 1
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x4c], eax
test esi, esi
je 0x476fae
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jl 0x476fae
push esi
push eax
call fcn.004e5f62
add esp, 8
test eax, eax
je 0x476fae
sub eax, dword [ebp - 0x14]
sar eax, 1
cmp eax, 0xffffffff
jle 0x476fae
mov ecx, edi
call fcn.00480f90
test al, al
je 0x476fae
mov bl, 1
jmp 0x476fb0
push str.no_such_table
lea ecx, [ebp - 0x1c]
call fcn.004027b0
mov esi, dword [ebp - 0x1c]
jmp 0x476f58
xor bl, bl
mov eax, dword [ebp - 0x2c]
or edi, 0xffffffff
mov dword [ebp - 4], 9
test al, 1
je 0x476fe0
and eax, 0xfffffffe
lea edx, [esi - 0x10]
mov dword [ebp - 0x2c], eax
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x476fe0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x47720b
push 0x51781c
push str.table_addon_has_no_column_named
lea ecx, [ebp - 0x14]
call fcn.00407680
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x14]
push eax
call fcn.00420910
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
mov ebx, dword [eax - 0x10]
lea edx, [eax - 0x10]
je 0x477059
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x477039
cmp dword [eax - 8], 0
jl 0x4771b6
mov dword [eax - 0xc], 0
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov word [eax], cx
jmp 0x477059
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x47704c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x40]
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x477076
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x477096
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x28]
cmp ebx, 0x1e
jl 0x476d30
inc ebx
cmp ebx, 0x1e
jl 0x4771c0
push 0x51a1a4
lea ecx, [ebp - 0x20]
call fcn.00401ba0
push str.sqlite3_exec_when_installing_
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xc
call fcn.00401b10
push dword [ebp - 0x34]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004653f0
lea ecx, [ebp - 0x20]
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 0xe
call fcn.00465370
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 0xf
call fcn.00465370
add esp, 0x24
mov ecx, dword [ebp - 0x18]
push eax
mov byte [ebp - 4], 0x10
call fcn.004092d0
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xf
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47712f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xe
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47714f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xd
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47716f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xc
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47718f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4771af
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor bl, bl
jmp 0x477349
push 0x80070057
call fcn.00402fc0
mov bl, 1
jmp 0x477349
mov esi, dword [0x566ac0]
lea ecx, [esi + 1]
lea eax, [esi + 2]
imul eax, ecx
imul eax, esi
cdq
mov ecx, 0x13
idiv ecx
cmp edx, 0xc
jne 0x477208
xor edi, edi
test esi, esi
je 0x477202
lea esp, [esp]
mov eax, esi
mov ecx, esi
cdq
sub eax, edx
and ecx, 1
mov esi, eax
add edi, ecx
sar esi, 1
jne 0x4771f0
mov dword [0x566ac0], edi
or edi, 0xffffffff
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov bl, 1
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47731d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x47731d
call fcn.00409e90
push str.sqlite3_open16_when_installing_
lea ecx, [ebp - 0x28]
call fcn.00401b10
push edi
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 4
call fcn.004653f0
add esp, 0xc
mov ecx, dword [ebp - 0x18]
push eax
mov byte [ebp - 4], 5
call fcn.004092d0
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47728a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47731b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x47731b
push str.sqlite3_open16_when_installing
lea ecx, [ebp - 0x24]
call fcn.00401ba0
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 3
call fcn.004092d0
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4772ec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x566ac0]
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0x16
idiv ecx
cmp edx, 9
jne 0x47731b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x50
div ecx
inc edx
mov dword [0x566ac0], edx
xor bl, bl
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x477349
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x477349
mov ecx, dword [ebp - 0x18]
call fcn.00480f90
mov bl, al
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [edx + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x47736a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 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 0xc